Skip to content

Commit

Permalink
fix __END__ WARNING for Method definition showerror(IO, LoadError, Any)
Browse files Browse the repository at this point in the history
  • Loading branch information
wookay committed Jan 1, 2024
1 parent 29e145d commit 70ae332
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: runtests - dev .
run: |
julia -e 'using Pkg; pkg"dev ."'
julia -e 'using Pkg; Pkg.develop(".")'
cd test
julia --color=yes -pauto runtests.jl jive/s jive/m start=2
julia --color=yes -pauto -e 'using Jive; runtests(@__DIR__, skip=["Example", "errors", "jive/onlyonce/heavy.jl", "jive/__END__/included.jl", "jive/s", "jive/__REPL__"], node1=["jive/m"])'
Expand Down
12 changes: 6 additions & 6 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ test = ["Test", "Logging"]

[compat]
julia = "1.0.2"
Distributed = "1.6, 1.7, 1.8, 1.9, 1.11"
FileWatching = "1.6, 1.7, 1.8, 1.9, 1.11"
Pkg = "1.6, 1.7, 1.8, 1.9, 1.11"
Printf = "1.6, 1.7, 1.8, 1.9, 1.11"
REPL = "1.6, 1.7, 1.8, 1.9, 1.11"
Test = "1.6, 1.7, 1.8, 1.9, 1.11"
Distributed = "1.6, 1.7, 1.8, 1.9, 1.10, 1.11"
FileWatching = "1.6, 1.7, 1.8, 1.9, 1.10, 1.11"
Pkg = "1.6, 1.7, 1.8, 1.9, 1.10, 1.11"
Printf = "1.6, 1.7, 1.8, 1.9, 1.10, 1.11"
REPL = "1.6, 1.7, 1.8, 1.9, 1.10, 1.11"
Test = "1.6, 1.7, 1.8, 1.9, 1.10, 1.11"
8 changes: 0 additions & 8 deletions src/__END__.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,6 @@ end
`throw(Jive.EndError())`
"""
macro __END__()
@eval function Base.showerror(io::IO, ex::LoadError, bt; backtrace=true)
if isenderror(ex)
printstyled(io, "@__END__", color=:cyan)
print(io, " at ", basename(ex.file), ":", ex.line)
else
print(io, "Error while loading expression starting at ", ex.file, ":", ex.line)
end
end
throw(EndError())
end

Expand Down

0 comments on commit 70ae332

Please sign in to comment.