winnfsd / vagrant-winnfsd

Manage and adds support for NFS for Vagrant on Windows.
Other
567 stars 62 forks source link

Filesystem changes and watches #121

Closed martixy closed 6 years ago

martixy commented 6 years ago

This is more of a question, as I don't understand all the intrinsics of how things work and I am not entirely sure if this is the correct place in the whole entire stack that creates a working dev environment, but it is a likely place to at least receive correct info.

I use vagrant+virtualbox on windows to develop web apps using things like node and webpack. Not a unique setup by a long shot.

The problem I face in the whole thing is that file watchers don't work. For example when using webpack, watching for file changes doesn't work, because somewhere along the chain something breaks down. The problem itself is far from new either: https://github.com/webpack/webpack/issues/425 What led me to posting here is a comment in that thread about the VM guest possibly not receiving inotify events. Could this be a job for winnfsd or the plugin?

marcharding commented 6 years ago

Hey, sorry that wont be possible.

See this stack overflow answer which explains it nicely https://stackoverflow.com/a/4231277.

I just let the watcher (gulp etc.) run on the windows side of things (cmd.exe or powershell) which works fine (and it also much faster).

martixy commented 6 years ago

I see. Thankfully node is being extra helpful in this case, and it is faster indeed, so no big deal. Might it warrant a short mention in the readme?