You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am running bacon --headless run-long on a docker dev container to hot reload. Container is using volume mounted from Windows host and bacon should be watching the files on that volume. Running on windows and running on linux works fine. But for some reason file watcher doesn't seem to work on this specific case.
I think bacon checks for the file changes by listening inotify events. Is there any option that uses polling instead that I have missed?
The text was updated successfully, but these errors were encountered:
Canop
changed the title
File watcher doesn't work on mounted files on Docker
File watcher doesn't work on mounted files on Docker (Windows host)
Jan 21, 2025
I checked out how notify-rs defines watchers. And how bacon uses notify. RecommendedWatcher fallsback to PollWatcher when the target is not available. Also it's advised to use PollWatcher in such cases; https://docs.rs/notify/latest/notify/#network-filesystems
Still didn't work. I thought if I could be sure that PollWatcher works for every system. I could just add a new option like --poll <seconds`> or add some logic that checks for wsl. But, oh well...
I am running
bacon --headless run-long
on a docker dev container to hot reload. Container is using volume mounted from Windows host and bacon should be watching the files on that volume. Running on windows and running on linux works fine. But for some reason file watcher doesn't seem to work on this specific case.I think bacon checks for the file changes by listening inotify events. Is there any option that uses polling instead that I have missed?
The text was updated successfully, but these errors were encountered: