-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
Auto refresh change detection fails #415
Comments
I have the same issue when using neovim! Saving the file doesn't seem to update the viewer. |
Apparently, you can trigger the |
Yup that has the same effect as |
This solution worked for me too! |
OK good news that there is a workaround. This is weird though. It appears that one "correct" solution would be to catch Also, could one of you please test with various |
I'm observing this on Linux.
Adding some print statements to the file watcher thread:
When I edit a sketch in neovim, I see this:
Further changes to the file are undetected.
It seems that:
watchfiles
removes a file from its watch list when it detects that it's been deletedAdding
force_polling=True
to thewatchfiles.watch(self._path, stop_event=self):
line seems to fix it. Haven't tested for more than 5 minutes though.For a fix, maybe this could be combined with #88 and a setting for polling could be added along with the setting to disable/enable file watching.
The text was updated successfully, but these errors were encountered: