haskell-fswatch / hfsnotify

Unified Haskell interface for basic file system notifications
BSD 3-Clause "New" or "Revised" License
136 stars 40 forks source link

Q: Is `/mnt/c/` with WSL supported? #74

Open Wizek opened 6 years ago

Wizek commented 6 years ago

I'm trying to use GHCid with Windows Subsystem for Linux, and I am running into file changes only being picked up when I set --poll. Is hfsnotify supposed to work on mounted drives on WSL like /mnt/c? Or is this known to being not yet supported?

Here is the relevant GHCid issue: https://github.com/ndmitchell/ghcid/issues/121

dten commented 6 years ago

also got this issue, i notice hinotify (the package fsnotify uses) works fine on /mnt/c/ paths

dten commented 6 years ago

it seems that CloseWrite is never fired (when editing from windows) on wsl from hinotify and so no modified events are sent https://github.com/Microsoft/WSL/issues/2507

thomasjm commented 6 years ago

See also https://github.com/emcrisostomo/fswatch/issues/132

thomasjm commented 6 years ago

Thanks for the research @dten! Given that fswatch doesn't support WSL, I think this will be a wontfix for fsnotify as well, for now at least. We should revisit this if/when the WSL inotify system has its bugs ironed out.

TerrorJack commented 6 years ago

I'm on Windows 10 17751, and confirm that ghcid works for /mnt/c/ paths out of the box. fsnotify version is 0.3.0.1.

dten commented 6 years ago

This is exciting! Thanks for reporting