@@ -100,9 +100,9 @@ function showerror(io::IO, ex, bt; backtrace=true)
100100 end
101101end
102102
103- function stacktrace_path (file:: Union{Nothing, String} , line:: Union{Nothing, Int64 } )
103+ function stacktrace_path (file:: Union{Nothing, String} , line:: Union{Nothing, Int } )
104104 realfile = if ! isnothing (file) && file != " " && ! startswith (String (file), " REPL" )
105- fixup_stdlib_path ( String (file))
105+ String (file) |> fixup_stdlib_path |> find_source_file
106106 end
107107 pathstr = file
108108 if ! isnothing (pathstr)
@@ -802,7 +802,8 @@ function print_stackframe(io, i, frame::StackFrame, n::Int, ndigits_max, modulec
802802 print (io, if inlined AnnotatedString (" [inlined]" , [(1 : 9 , :face => :julia_stacktrace_inlined )]) else " " end )
803803end
804804
805- function print_module_path_file (io, modul, file, line; modulecolor = :bright_black , digit_align_width = 0 )
805+ function print_module_path_file (io:: IO , modul:: Module , file:: Union{Nothing, String} , line:: Union{Nothing, Int} ;
806+ modulecolor = :bright_black , digit_align_width = 0 )
806807 print (io, ' ' ^ digit_align_width, AnnotatedString (" @" , [(1 : 1 , :face => :julia_stacktrace_location )]))
807808 if modul != = nothing && modulecolor != = nothing
808809 mstr = string (modul)
0 commit comments