-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Deno.watchFs is not working in WSL environment #6966
Comments
@aaronwlee please specify which version of Windows you are using, as it didn't always have support for these events (see https://devblogs.microsoft.com/commandline/wsl-adds-inotify-filesystem-change-notification-support/ ) |
@Spoonbender I'm using Windows 10 19041.388 OS build and using wsl2. what I'm claiming that it was working with the previous version. |
Probably related: notify-rs/notify#254 I believe that problem affects Running Deno inside Docker on Windows with WSL2 enabled, |
same problem here 02/june/2022 |
Same here:
Inside WSL2, |
This won't work* as long as you don't want to add a workaround by either switching to a polling-based change detection, through some sort of flag, or detecting WSL2 and then using the workaround. Notify simply won't receive file-events for windows-owned files inside WSL2. *or wait for WSL2 to maybe fix that problem |
@0xpr03 yeah I assumed as much. |
I'm thinking about adding some runtime-detection based fallback to notify. This could also contain a WSL detection. But truth be told: If you want "performance", don't use the pollwatcher, if you want full compatibility, use it. So either way it is a trade-off. |
You can use WSL 1 as a workaround for this issue |
Deno.watchFs is not working in WSL(Ubuntu 18.04 LTS Bionic) environment.
Literally, there are no event messages after changing any files.
The text was updated successfully, but these errors were encountered: