From 12ab1e347eb16f3c4dcca66518c3b0892ed132c7 Mon Sep 17 00:00:00 2001 From: Fons van der Plas Date: Fri, 4 Oct 2024 09:43:55 +0200 Subject: [PATCH] Remove `Main.var"workspace#5"` from stack traces (#3044) --- src/runner/PlutoRunner/src/display/Exception.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runner/PlutoRunner/src/display/Exception.jl b/src/runner/PlutoRunner/src/display/Exception.jl index bc494b656..835c500ce 100644 --- a/src/runner/PlutoRunner/src/display/Exception.jl +++ b/src/runner/PlutoRunner/src/display/Exception.jl @@ -65,7 +65,7 @@ function format_output(val::CapturedException; context=default_iocontext) pm = VERSION >= v"1.9" && method isa Method ? parentmodule(method) : nothing Dict( - :call => pretty_stackcall(s, s.linfo), + :call => replace(pretty_stackcall(s, s.linfo), r"Main\.var\"workspace#\d+\"\." => ""), :inlined => s.inlined, :from_c => s.from_c, :file => basename(String(s.file)),