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

always print error backtrace #456

Closed
wants to merge 1 commit into from
Closed

Conversation

nolta
Copy link
Member

@nolta nolta commented Feb 24, 2012

When an error happens in the repl you get a full backtrace:

$ julia -q -L program.j
julia> test()
type CompositeKind has no field __pl_style_func
 in set at subgrid.j:690
 in page_compose at program.j:1207
 in show at program.j:1220
 in test at program.j:1441

But when evaluating a cmdline expr, you don't:

$ julia -q -L program.j -e "test()"
type CompositeKind has no field __pl_style_func

I'm not sure if this patch is the right approach, but it passes the test suite, and appears to do the right thing:

$ julia -q -L program.j -e "test()"
type CompositeKind has no field __pl_style_func
 in set at subgrid.j:690
 in page_compose at program.j:1207
 in show at program.j:1220
 in test at program.j:1441
 in process_options at /Users/nolta/julia/j/client.j:131
 in _start at /Users/nolta/julia/j/client.j:201

@ViralBShah
Copy link
Member

Seems like a good idea to me. Will let Jeff decide if this is the right way to address this though.

@JeffBezanson
Copy link
Sponsor Member

I will fix this a different way, since this approach doesn't give backtraces in some other cases during loading.

JeffBezanson added a commit that referenced this pull request Feb 24, 2012
StefanKarpinski pushed a commit that referenced this pull request Feb 8, 2018
cmcaine pushed a commit to cmcaine/julia that referenced this pull request Nov 11, 2022
Keno pushed a commit that referenced this pull request Oct 9, 2023
This supports SSAValue args for cglobal while also fixing a bug
in which a GotoIfNot ended up going to the wrong statement.
The latter was a consequence of incorrect :call unnesting.

Fixes #455
Fixes #454
Fixes #415
Fixes JuliaDebug/Debugger.jl#275
Improves #354
ViralBShah pushed a commit that referenced this pull request Oct 16, 2023
… 3582898 (#51726)

Stdlib: SparseArrays
URL: https://github.com/JuliaSparse/SparseArrays.jl.git
Stdlib branch: main
Julia branch: vs/suitesparse-7.2.1
Old commit: 7add142
New commit: 3582898
Julia version: 1.11.0-DEV
SparseArrays version: 1.11.0
Bump invoked by: @ViralBShah
Powered by:
[BumpStdlibs.jl](https://github.com/JuliaLang/BumpStdlibs.jl)

Diff:
JuliaSparse/SparseArrays.jl@7add142...3582898

```
$ git log --oneline 7add142..3582898
3582898 Don't materialize when adding/subtracting an `Array` (#456)
```

Co-authored-by: Dilum Aluthge <dilum@aluthge.com>
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

Successfully merging this pull request may close these issues.

3 participants