JuliaLang/julia — Issue #361: trim stack trace output
Author: StefanKarpinski
Created: 2012-02-10 01:12:51+00:00
State: open
Labels: enhancements

This looks really terrible in blog posts and examples, not to mention at the repl:

julia> run(ignorestatus(`notaprogram`))
exec: No such file or directory
failed process: `notaprogram`
in error, /Users/stefan/projects/julia/j/error.j:5
in run, /Users/stefan/projects/julia/j/process.j:470
in _jl_eval_user_input, /Users/stefan/projects/julia/j/client.j:59
in run_repl, /Users/stefan/projects/julia/j/client.j:92
in _start, /Users/stefan/projects/julia/j/client.j:206

Since `error` and everything after `_jl_eval_user_input` will be common to every single stack trace, they provide zero useful information. The ideal stack trace would include only this:

julia> run(ignorestatus(`notaprogram`))
exec: No such file or directory
failed process: `notaprogram`
in run, /Users/stefan/projects/julia/j/process.j:470

That's way more readable.