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

REPL console does not report source file location of julia exceptions; no stacktrace #135

Closed
mattcbro opened this issue May 8, 2018 · 1 comment

Comments

@mattcbro
Copy link

mattcbro commented May 8, 2018

The console in the atom/Juno window behaves differently from a pure julia session in bash. It fails to show where in the source file an error actually occurs.

Here is an example from something I ran recently:
Juno console:
julia> include("calsim.jl")
Calibration gain error = -74.77519048362441 dB
ERROR: LoadError: ArgumentError: squeezed dims must all be size 1
while loading /data/projects/Maestro/calsim.jl, in expression starting on line 102

From a normal julia session launched from bash:
julia> include("calsim.jl")
Calibration gain error = -70.78762965234019 dB
ERROR: LoadError: ArgumentError: squeezed dims must all be size 1
Stacktrace:
[1] squeeze(::Array{Float64,2}, ::Tuple{Int64}) at ./abstractarraymath.jl:70
[2] learnantpos(::Array{Complex{Float64},3}, ::Array{Float64,2}, ::Algo_Chan.ChanPrams, ::GeoAlgos.AlgoPrams) at /data/projects/Maestro/GeoAlgos.jl:187
[3] include_from_node1(::String) at ./loading.jl:576
[4] include(::String) at ./sysimg.jl:14
while loading /data/projects/Maestro/calsim.jl, in expression starting on line 102

The Juno sessions does not include the stacktrace and hence the source information needed to track down the bug.

@pfitzseb
Copy link
Member

This is fixed on master (and in the next release, which should hopefully be out today).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants