Hi,
Thanks for continuing to invest time in this nice package!
I think I might encountered an issue with julia-snail-send-top-level and julia-snail-send-region when used with a module which includes several files.
Say I have the following module defined in TestSnail.jl:
module TestSnail
include("foo.jl")
end
where the contents of foo.jl are:
function foo()
println("foo")
end
After running julia-snail-send-buffer-file in TestSnail.jl, the TestSnail module is loaded and I can call TestSnail.foo() in the REPL.
I do some change in the function foo and try to evaluate it using either julia-snail-send-top-level-form or julia-snail-send-region (which are supposed to be module aware according to docs)
This seems to be evaluate the definition of foo in the Main module instead of in TestSnail (i.e. a new function will be defined in the main scope).
Hi, Thanks for continuing to invest time in this nice package!
I think I might encountered an issue with
julia-snail-send-top-level
andjulia-snail-send-region
when used with a module which includes several files.Say I have the following module defined in
TestSnail.jl
:where the contents of
foo.jl
are:julia-snail-send-buffer-file
inTestSnail.jl
, theTestSnail
module is loaded and I can callTestSnail.foo()
in the REPL.foo
and try to evaluate it using eitherjulia-snail-send-top-level-form
orjulia-snail-send-region
(which are supposed to be module aware according to docs)foo
in theMain
module instead of inTestSnail
(i.e. a new function will be defined in the main scope).