-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
FileSystemWatcher may miss event when many changes are happening in a short order #220039
Comments
This bug is also affecting the Test Explorer in C# DevKit (microsoft/vscode-dotnettools#996), causing it to miss some test methods. This issue is disrupting the user experience significantly on our end. I have a repro case in VS Code v1.92.0-insider (Universal) where after opening a solution with 10 projects and performing a build, the Test Explorer shows incomplete test projects. @bpasero is there any milestone set for resolving this bug ? |
Would be great to distill a reproducible case using https://github.com/parcel-bundler/watcher, which is the file watcher we leverage so that it can be reported upstream, if it turns out to be. |
@bpasero maybe https://github.com/cdietrich/parcel-watcher-bug helps as we seem to have problems also on linux (but i dont see it with the test above - ok sometimes it gets 0 changes). i also need to further investigate. does vscode use a specific backend for linux? |
@cdietrich here is my output on macOS:
What do you get? We use the standard backend for parcel watcher, so it would be |
if i run multiple times it will say counter 567 on linux its much much more seldom |
from my m2 pro
on my private m1 air much more often. |
@cdietrich got it, I would think you can report this with your repro at https://github.com/parcel-bundler/watcher |
Thanks a ton for the issue and repro, thats helpful, I am going ahead and close this as upstream. I am monitoring the parcel repository for fixes. |
Re-opening to keep understanding the issue microsoft/vscode-dotnettools#996 and whether that is the same underlying problem. @ocallesp curious if you can be certain that this issue is really the same issue? |
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines. Happy Coding! |
Register a file System watcher
do a deletion of a huge number of files (would also happen on creation)
then the watch may omit some changes
(when used together with a language server/vscode-language-client this will be bad a the state in the server might become out of sync)
here is an attempt to write a reproducing test
https://github.com/cdietrich/fs-watcher-bug/blob/main/src/test/extension.test.ts
originally reported as microsoft/vscode-languageserver-node#1503
cc @dbaeumer
The text was updated successfully, but these errors were encountered: