Julia: missing error show internal confusion

Created on 30 Mar 2020  路  1Comment  路  Source: JuliaLang/julia

julia> missing("")
ERROR: MethodError: 
Stacktrace:
 [1] top-level scope at REPL[1]:1
SYSTEM (REPL): showing an error caused an error
ERROR: TypeError: non-boolean (Missing) used in boolean context
Stacktrace:
 [1] showerror(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::MethodError) at ./errorshow.jl:320
 [2] (::Base.var"#675#676"{MethodError})(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}) at ./errorshow.jl:159
 [3] with_output_color(::Function, ::Symbol, ::IOContext{REPL.Terminals.TTYTerminal}; bold::Bool) at ./util.jl:388
 [4] with_output_color(::Function, ::Symbol, ::IOContext{REPL.Terminals.TTYTerminal}) at ./util.jl:386
 [5] showerror(::IOContext{REPL.Terminals.TTYTerminal}, ::MethodError, ::Array{Base.StackTraces.StackFrame,1}; backtrace::Bool) at ./errorshow.jl:158
 [6] show_exception_stack(::IOContext{REPL.Terminals.TTYTerminal}, ::Array{Any,1}) at ./errorshow.jl:806
 [7] display_error(::IOContext{REPL.Terminals.TTYTerminal}, ::Array{Any,1}) at ./client.jl:104
 [8] #invokelatest#1 at ./essentials.jl:710 [inlined]
 [9] invokelatest at ./essentials.jl:709 [inlined]
 [10] print_response(::IO, ::Any, ::Bool, ::Bool, ::Any) at /Users/jameson/julia/usr/share/julia/stdlib/v1.5/REPL/src/REPL.jl:229
 [11] print_response(::REPL.AbstractREPL, ::Any, ::Bool, ::Bool) at /Users/jameson/julia/usr/share/julia/stdlib/v1.5/REPL/src/REPL.jl:219
 [12] (::REPL.var"#do_respond#52"{Bool,Bool,REPL.var"#62#71"{REPL.LineEditREPL,REPL.REPLHistoryProvider},REPL.LineEditREPL,REPL.LineEdit.Prompt})(::Any, ::Any, ::Any) at /Users/jameson/julia/usr/share/julia/stdlib/v1.5/REPL/src/REPL.jl:816
 [13] #invokelatest#1 at ./essentials.jl:710 [inlined]
 [14] invokelatest at ./essentials.jl:709 [inlined]
 [15] run_interface(::REPL.Terminals.TextTerminal, ::REPL.LineEdit.ModalInterface, ::REPL.LineEdit.MIState) at /Users/jameson/julia/usr/share/julia/stdlib/v1.5/REPL/src/LineEdit.jl:2354
 [16] run_frontend(::REPL.LineEditREPL, ::REPL.REPLBackendRef) at /Users/jameson/julia/usr/share/julia/stdlib/v1.5/REPL/src/REPL.jl:1137
 [17] (::REPL.var"#36#40"{REPL.LineEditREPL,REPL.REPLBackendRef})() at ./task.jl:358
bug display and printing error messages

Most helpful comment

Beautifully perverse :)

>All comments

Beautifully perverse :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

TotalVerb picture TotalVerb  路  3Comments

sbromberger picture sbromberger  路  3Comments

ararslan picture ararslan  路  3Comments

dpsanders picture dpsanders  路  3Comments

tkoolen picture tkoolen  路  3Comments