Debug.jl icon indicating copy to clipboard operation
Debug.jl copied to clipboard

Debug not working with Julia v0.5

Open varnerlab opened this issue 9 years ago • 9 comments

Installed v0.5 via homebrew, and added Debug via Pkg.add("Debug"). Ran some existing plotting code that was fine under 0.46 and got the following error:

INFO: Precompiling module Debug. WARNING: symbol is deprecated, use Symbol instead. in depwarn(::String, ::Symbol) at ./deprecated.jl:64 in symbol(::String, ::Vararg{String,N}) at ./deprecated.jl:30 in include_from_node1(::String) at ./loading.jl:488 in include_from_node1(::String) at /Applications/Julia-0.5.app/Contents/Resources/julia/lib/julia/sys.dylib:? in include_from_node1(::String) at ./loading.jl:488 in include_from_node1(::String) at /Applications/Julia-0.5.app/Contents/Resources/julia/lib/julia/sys.dylib:? in macro expansion; at ./none:2 [inlined] in anonymous at ./:? in eval(::Module, ::Any) at ./boot.jl:234 in eval(::Module, ::Any) at /Applications/Julia-0.5.app/Contents/Resources/julia/lib/julia/sys.dylib:? in process_options(::Base.JLOptions) at ./client.jl:239 in _start() at ./client.jl:318 in _start() at /Applications/Julia-0.5.app/Contents/Resources/julia/lib/julia/sys.dylib:? while loading /Users/jeffreyvarner/.julia/v0.5/Debug/src/AST.jl, in expression starting on line 62 WARNING: Method definition is_evaluable(Debug.AST.Node{Debug.AST.Location}) in module AST at /Users/jeffreyvarner/.julia/v0.5/Debug/src/AST.jl:120 overwritten at /Users/jeffreyvarner/.julia/v0.5/Debug/src/AST.jl:121. ERROR: LoadError: LoadError: UndefVarError: SymbolNode not defined in include_from_node1(::String) at ./loading.jl:488 in include_from_node1(::String) at /Applications/Julia-0.5.app/Contents/Resources/julia/lib/julia/sys.dylib:? in include_from_node1(::String) at ./loading.jl:488 in include_from_node1(::String) at /Applications/Julia-0.5.app/Contents/Resources/julia/lib/julia/sys.dylib:? in macro expansion; at ./none:2 [inlined] in anonymous at ./:? in eval(::Module, ::Any) at ./boot.jl:234 in eval(::Module, ::Any) at /Applications/Julia-0.5.app/Contents/Resources/julia/lib/julia/sys.dylib:? in process_options(::Base.JLOptions) at ./client.jl:239 in _start() at ./client.jl:318 in _start() at /Applications/Julia-0.5.app/Contents/Resources/julia/lib/julia/sys.dylib:? while loading /Users/jeffreyvarner/.julia/v0.5/Debug/src/Analysis.jl, in expression starting on line 51 while loading /Users/jeffreyvarner/.julia/v0.5/Debug/src/Debug.jl, in expression starting on line 7 ERROR: LoadError: Failed to precompile Debug to /Users/jeffreyvarner/.julia/lib/v0.5/Debug.ji. in compilecache(::String) at ./loading.jl:593 in require(::Symbol) at ./loading.jl:422 in require(::Symbol) at /Applications/Julia-0.5.app/Contents/Resources/julia/lib/julia/sys.dylib:? in include_from_node1(::String) at ./loading.jl:488 in include_from_node1(::String) at /Applications/Julia-0.5.app/Contents/Resources/julia/lib/julia/sys.dylib:? while loading /Users/jeffreyvarner/Desktop/Desktop - Jeffrey’s MacBook Pro/julia_work/bigmac_julia_hybrid_fibrinolysis_v2/src/PlotAICPredictions.jl, in expression starting on line 3

varnerlab avatar Sep 28 '16 18:09 varnerlab

I think this issue is very important. I am seeing a lot of bugs from Gallium.jl and I don't think Gallium is any useful at the moment.

deltakam avatar Sep 29 '16 04:09 deltakam

The Symbol error is easy to fix. In AST.jl there are a few references to deprecated symbol instead of Symbol. But after that, you will find that SymbolNode is equally undefined and I can't figure out what its replacement is.

BCRARL avatar Oct 05 '16 21:10 BCRARL

@toivoh Users need a working Debugger.

AStupidBear avatar Oct 08 '16 06:10 AStupidBear

Same here

ERROR: LoadError: LoadError: UndefVarError: SymbolNode not defined
 in include_from_node1(::String) at ./loading.jl:488
 in include_from_node1(::String) at /usr/local/Cellar/julia/0.5.0/lib/julia/sys.dylib:?
 in include_from_node1(::String) at ./loading.jl:488
 in include_from_node1(::String) at /usr/local/Cellar/julia/0.5.0/lib/julia/sys.dylib:?
 in macro expansion; at ./none:2 [inlined]
 in anonymous at ./<missing>:?
 in eval(::Module, ::Any) at ./boot.jl:234
 in eval(::Module, ::Any) at /usr/local/Cellar/julia/0.5.0/lib/julia/sys.dylib:?
 in process_options(::Base.JLOptions) at ./client.jl:239
 in _start() at ./client.jl:318
 in _start() at /usr/local/Cellar/julia/0.5.0/lib/julia/sys.dylib:?
while loading /Users/adrian/.julia/v0.5/Debug/src/Analysis.jl, in expression starting on line 51
while loading /Users/adrian/.julia/v0.5/Debug/src/Debug.jl, in expression starting on line 7
------ ErrorException ------------------ Stacktrace (most recent call last)

 [1] — require(::Symbol) at sys.dylib:?

 [2] — require(::Symbol) at loading.jl:422

 [3] — compilecache(::String) at loading.jl:593

Failed to precompile Debug to /Users/adrian/.julia/lib/v0.5/Debug.ji.

essenciary avatar Oct 13 '16 10:10 essenciary

I'm having the exact same problem as essenciary.

tueboesen avatar Oct 27 '16 01:10 tueboesen

+1

edljk avatar Nov 03 '16 07:11 edljk

I can't really help but this was the PR which removed SymbolNode: https://github.com/JuliaLang/julia/pull/15609

It introduced a new Slot which features sometimes where SymbolNode was before. Maybe that works?

mauro3 avatar Nov 04 '16 10:11 mauro3

Same issue here. I have to stay on Julia 0.4.7 until Gallium is ready for use or Debug.jl can be used in Julia 0.5

Mattri avatar Nov 08 '16 07:11 Mattri

I've switched my project to Gallium - it has a different workflow coming from Debug so it takes a bit of a change in mindset and possibly changes in code to accommodate. But it works great and it's the future (and present) of Julia debugging, so it's worth taking the time to switch.

essenciary avatar Nov 08 '16 20:11 essenciary