I am having trouble with
Revise.jl. I have files setup like this:
module Tvaccine using Parameters using Distributions include("entities.jl") export main, world function main() println("Hello world.") end end
function world() println("Hello world from included file.") end
Then I have the
run.jl file that sets up
using Revise includet("Tvaccine.jl") using .Tvaccine
Now if I change something in
main() or add a new function in the
Tvaccine.jl file (the one that was included using
includet, everything works as expected. Upon saving my edits, the REPL is updated with the changes.
However, if I edit anything in the
entities.jl file, it seems that Revise dosn’t pick up on the changes. If I made an edit to the already exported function, it dosn’t reflect in the REPL. If I add a new function, I get a
MethodError: no method matching....
Is the expectation to fully code a program in one file?
My “second” attempt: I
generate a new folder, and
activate . which allows me to using
using mypkg. (
Revise.jl is already loaded from the start). Everything works as expected except when I make a new file and include that in the main module using
include. Revise dosn’t seem to bring in the functions defined in the new file.
Note that this is different if the files are already included at the
using mypkg stage. I hope I make sense, seems like I am kind of rambling on here.