-
Notifications
You must be signed in to change notification settings - Fork 12.8k
File watcher not working on network file system #7420
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
Comments
For the record, there's a few things we should note about Watchman as a solution. From their Installation page:
Which sounds to me like you'll have sub-optimal results, but at least it won't crash. 😄 Additionally, their Windows support is in alpha stages (see facebook/watchman#19). |
Actually the "operating system facilities for file notification" is the very thing that is lacking here, so that may be an issue too. I wonder what VSCode uses for their own file watching, which may have considered this case already. |
So I was trying to use a simple try/ catch to detect if |
You probably want to track this open item for watchman: facebook/watchman#201 if you're interested in better support for network shares. |
@wez thanks for the heads up! |
Yes I think so. |
Currently the file watcher cannot work properly on network file systems, or file systems that doesn't support the underlying change notification mechanism that node's
fs.watch
relies on. This could lead to the language service crashing (#6726).The alternative solution is to consider third party file watcher libraries. As suggested by Daniel (#7376 (comment)), Watchman or similar product can be used for the purpose. It may worth some research.
The text was updated successfully, but these errors were encountered: