Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing error show internal confusion #35312

Closed
vtjnash opened this issue Mar 30, 2020 · 1 comment · Fixed by #35315
Closed

missing error show internal confusion #35312

vtjnash opened this issue Mar 30, 2020 · 1 comment · Fixed by #35315
Labels
bug Indicates an unexpected problem or unintended behavior display and printing Aesthetics and correctness of printed representations of objects. error messages Better, more actionable error messages

Comments

@vtjnash
Copy link
Member

vtjnash commented Mar 30, 2020

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
@vtjnash vtjnash added bug Indicates an unexpected problem or unintended behavior display and printing Aesthetics and correctness of printed representations of objects. error messages Better, more actionable error messages labels Mar 30, 2020
@JeffBezanson
Copy link
Member

Beautifully perverse :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior display and printing Aesthetics and correctness of printed representations of objects. error messages Better, more actionable error messages
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants