I have recently noticed that error messages (the red pop-up thingies) in Juno are having some kind of problem.
The MWE
throw(ErrorException("test"))
creates this error message
MethodError: no method matching -(::Nothing, ::Int64)
Closest candidates are:
-(!Matched::Complex{Bool}, ::Real) at complex.jl:298
-(!Matched::Missing, ::Number) at missing.jl:93
-(!Matched::Base.CoreLogging.LogLevel, ::Integer) at logging.jl:107
This problem does not occur when I run the code in the REPL (both in a seperate terminal and in Juno).
I use julia-0.7.0 with all packages up to date.
Edit: as discussed below, this is not a Juno problem but an issue with the julia binaries provided by Arch Linux. I haven’t filed a bug report with the Arch repo yet, but if the problem doesn’t disappear in 1.0, I will.
Update: still doesn’t work with the new julia 1.0 package (julia-2:1.0.0-1) – I have filed a bug report with the Arch package maintainer, we’ll have to wait and see what happens.
Julia Client – Internal Error
MethodError: no method matching -(::Nothing, ::Int64)
Closest candidates are:
-(!Matched::Complex{Bool}, ::Real) at complex.jl:298
-(!Matched::Missing, ::Number) at missing.jl:93
-(!Matched::Base.CoreLogging.LogLevel, ::Integer) at logging.jl:107
...
try_yieldto(::typeof(Base.ensure_rescheduled), ::Base.RefValue{Task}) at event.jl:196
wait() at event.jl:255
wait(::Condition) at event.jl:46
_wait(::Task) at task.jl:189
macro expansion at task.jl:205 [inlined]
(::getfield(Atom, Symbol("##107#112")))(::Dict{String,Any}) at eval.jl:82
handlemsg(::Dict{String,Any}, ::Dict{String,Any}) at comm.jl:168
(::getfield(Atom, Symbol("##14#17")){Array{Any,1}})() at task.jl:262
And in the REPL Console, I get the expected error:
Possibly using the unstable branch? I don’t know much about Manjaro, but according to their wiki the unstable repo is < 3 days behind the Arch stable repos, so julia should already be at least at 0.7
Left is how it should look, right is what the Arch repo version gives. I suspect that happens because the directory structure is so radically different, but who knows.