-
Notifications
You must be signed in to change notification settings - Fork 111
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
JULIA_REVISE_POLL=1
needed on WSL2
#514
Comments
See the note at the very bottom of the page: https://timholy.github.io/Revise.jl/stable/config/#Polling-and-NFS-mounted-code-directories:-JULIA_REVISE_POLL-1 |
Ah, I hadn't read the note carefully enough and did mix up NTFS and NFS. Consider this a bug report then: Revise does not work for me on the new WSL2 without polling, but works once I enable polling. (Note that WSL2 is different than WSL1 and as far as I remember, Revise works just fine on WSL1). |
Interesting. Thanks for the bug report, then. Might be microsoft/WSL#4293? Do you see any warnings? |
No, it just silently didn’t update. And during my debugging attempts, I saw |
Having it in Line 49 in 8336b10
Does FileWatching pass its tests on this system? |
Yep:
Yep:
However, |
So I checked with Anything else I can try? |
The plot thickens 😄. Perhaps the next easy step would be to set Because it may be frustrating to wait for me to respond to individual queries, perhaps I should let you know that the main watching code is here. You could sprinkle |
I came across this bug report because I'm having the same kind of problem with
|
@nhabedi, thanks for the update, and sorry I never responded. It seems like it might be good to file this as a Julia bug. Would you have time to do so? I can copy/paste your report but then I can't easily perform any followup. |
Sure, no problem. I just did that: JuliaLang/julia#37029 |
See also #615 (closed as a dup but it does have some extra information). |
I've been hit by this for the past year or so, and only found the solution here now: I think it would be nice to add to the documentation that (as long as microsoft/WSL#4739 is an upstream WSL2 bug) Revise will not work properly when edits are made in the local/native Windows file system and Julia is running under WSL2. I.e., Revise will work fine under WSL2 if the tracked packages are in the associated Linux filesystem (e.g., under |
The new "Windows subsystem for linux 2" (WSL2, which has some docs here: https://docs.microsoft.com/en-us/windows/wsl/wsl2-index) is nice in that it lets you use the same filesystem for your windows install and for linux running on top (compared to WSL1 which used a separate filesystem for linux). It seems that one needs
JULIA_REVISE_POLL=1
since I think it works like an NTFS mounted network drive. I think the docs in https://timholy.github.io/Revise.jl/stable/config/#Polling-and-NFS-mounted-code-directories:-JULIA_REVISE_POLL-1 could then be updated for WSL2.The text was updated successfully, but these errors were encountered: