gcv / julia-snail

An Emacs development environment for Julia
GNU General Public License v3.0
235 stars 23 forks source link

Problem with output of "missing"? #143

Closed dojt closed 7 months ago

dojt commented 8 months ago

Is it possible that producing the output "missing" via C-c C-l or C-c C-r doesn't work? The following is displayed in the *julia* error buffer:

TypeError: non-boolean (Missing) used in boolean context

format(obj::Missing, width::Int64, height::Int64) at JuliaSnail.jl:148
eval_tmpfile(tmpfile::String, modpath::Vector{Symbol}, realfile::String, linenum::Int64, popup_params::Main.JuliaSnail.PopupDisplay.Params) at JuliaSnail.jl:265
top-level scope at none:1
eval at boot.jl:385 [inlined]
eval_in_module(fully_qualified_module_name::Vector{Symbol}, expr::Expr) at JuliaSnail.jl:226
(::Main.JuliaSnail.var"#30#36"{Sockets.TCPSocket})() at JuliaSnail.jl:913

What I did to produce that was to load a file containing nothing else but the word "missing" (plus newline), start julia-snail-mode, open the *julia* buffer with C-c C-z and then hit C-c C-l on the line with the word "missing".

My Julia Snail version:

My Emacs:

gcv commented 7 months ago

Should be fixed in https://github.com/gcv/julia-snail/commit/ce6994a548c3da051eb9104cad2c1056aa3cf4c1. It's in MELPA now. Please let me know if it works for you.

gcv commented 7 months ago

Please reopen if this is still a problem.