Revise not working with module scripts

Nathan_Boyer
Mon, 04 Aug 2025 15:40:08 +0000
General Usage

I am trying to compare two versions of a script. I wrapped them in modules so I can compare their intermediate values by name in the REPL, but the values are not updated when I save. Is that expected? Is there a better workflow for this process?

module A
...
x = 1.0
y = 2x
...
end

module B
...
x = 2.0
y = 2x
...
end

julia> using Revise

julia> includet("FileA.jl")

julia> includet("FileB.jl")

julia> A.x ≈ B.x
false

Now changing x and saving the file isn’t updating the values in my REPL session.

2 posts - 2 participants