Consider the following code:
function foo()
throw("oh oh something went wrong")
end
And evaluate foo with julia-snail-send-top-level-form.
The resulting stack trace when running in the REPL is:
julia> foo()
ERROR: "oh oh something went wrong"
Stacktrace:
[1] foo() at /var/folders/lw/pcgd7z3n00bdlc8_jncyqw1m0000gn/T/julia-tmpBhAl8A:2
[2] top-level scope at REPL[1]:1
This can make it hard to figure out where is the error coming from in a more complicated situation (for example line numbers don't correspond to those in the actual source file).
I don't know if there is a way to somehow track the correct source file when evaluating code in the way snail does or how complicated it would be to do so. Maybe one can look into Revise for inspiration as it seems that there stack-traces point to the correct place after re-evaluation of the code (but maybe the re-evaluation mechanism is too different than Snail, I don't know).