mauro3 / SimpleTraits.jl

Simple Traits for Julia
MIT License
159 stars 14 forks source link

Backtraces not working with Julia 0.7 #49

Closed mauro3 closed 4 years ago

mauro3 commented 6 years ago

See https://github.com/mauro3/SimpleTraits.jl/blob/03890bd0c48012ad41f5947461d4bb6651f6f825/test/backtraces.jl#L31

@timholy, maybe you can help, I have no idea what the problem is, apart from that they are not there. Here the top of output from running the foo from the tests on 0.7:

julia> StackTraces.lookup.(foo(1))                                                                                                                                       
18-element Array{Array{StackFrame,1},1}:                                                                                                                                 
 StackFrame[foo at SimpleTraits.jl:299 [inlined], foo(::Int64) at SimpleTraits.jl:307]                                                                                   
 StackFrame[ip:0x7fd53c42abb2]                                                                                                                                           
 ...

vs from 0.6:

julia> StackTraces.lookup.(foo(1))         
22-element Array{Array{StackFrame,1},1}:                     
 StackFrame[jl_backtrace_from_here at stackwalk.c:103]      
 StackFrame[foo at backtraces.jl:6 [inlined], foo at SimpleTraits.jl:299 [inlined], foo(::Int64) at SimpleTraits.jl:307]
 StackFrame[ip:0x7fbe8f9bb6f5]          
...
mauro3 commented 4 years ago

This was fixed in #73.