Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revise doesn't update methods when code is modified outside of edit() #653

Closed
palumbom opened this issue Nov 10, 2021 · 2 comments
Closed

Comments

@palumbom
Copy link

Revise no longer updates methods when I modify my source code outside of the edit() function on the REPL. Following from the cookbook example in the documentation, everything works as expected when I use the edit() function:

julia> using Revise
julia> using MyPkg
[ Info: Precompiling MyPkg [5f54f0b3-6509-4233-9053-0bcdb092dc6f]
julia> MyPkg.greet()
Hello World!
julia> edit(MyPkg)

julia> MyPkg.greet()
Hello Revised World!

In my preferred workflow, I already have the source open in another pane (specifically I'm modifying the code on a remote server using Sublime Text with SFTP). In this scenario I get the following:

julia> using Revise
julia> using MyPkg
[ Info: Precompiling MyPkg [5f54f0b3-6509-4233-9053-0bcdb092dc6f]
julia> MyPkg.greet()
Hello World!

If I then make changes in my editor without invoking edit(), I get the following output:

julia> MyPkg.greet()
Hello World!

I've tried updating to the latest version of Revise (3.1.20), but this hasn't remedied the issue either. For reference, I am running Julia 1.6.2.

@timholy
Copy link
Owner

timholy commented Dec 3, 2021

You shouldn't need to call edit---any mechanism of editing works for me. What's your platform? WSL2 by any chance? See #514

@palumbom
Copy link
Author

palumbom commented Dec 3, 2021

Sorry, I totally forgot I had opened this issue. It turns out this "bug" was due to a change on the server I use, not an issue with Revise. Calling edit just happened to be a workaround. I am not using WSL2.

@palumbom palumbom closed this as completed Dec 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants