Skip to content
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

Watcher.subscribe might miss some of many fast subsequent changes #183

Open
cdietrich opened this issue Aug 9, 2024 · 5 comments
Open

Comments

@cdietrich
Copy link

Originally reported as microsoft/vscode#220039

when we do a huge number of file changes then Watcher.subscribe might not always produce all events
and thus we miss relevant file changes

a reproducer can be found at https://github.com/cdietrich/parcel-watcher-bug

  • on mac air m1 i can see it quite reliably
  • on mac m2 pro less
  • on linux mint (t480s) rarely but can be seen
@ocallesp
Copy link

This issue is impacting the Test Explorer in the C# Dev Kit Extension. Missing these events causes some tests to be skipped or not recognized properly, leading to a frustrating user experience. We already have a GitHub issue reported here: microsoft/vscode-dotnettools#996

It would be amazing if this could be looked into, as fixing it would really help improve the reliability of the Test Explorer.

@ocallesp
Copy link

ocallesp commented Dec 9, 2024

@cdietrich I was wondering if there are any updates or plans to address this issue. This bug affects the Test Explorer in C# Dev Kit extension, causing tests to be skipped or not recognized properly. Resolving it would significantly improve reliability for users.

Looking forward to any updates. Thank you.

@j-nolan
Copy link

j-nolan commented Dec 11, 2024

When running @cdietrich 's demo script, it sometimes (10%?) counts 0 files, and unsubscribe() hangs indefinitely on my Linux machine. I don't know if this is the same problem that was originally reported, but FWIW, upgrading to 2.5.0 fixes this specific issue for me. I believe it may be thanks to this particular fix.

BTW, thanks for the nice demo script Christian, I found it useful to debug on my side.

@cdietrich
Copy link
Author

@ocallesp i just reported the issue as I am affected over a longer dependency chain

@bpasero
Copy link
Contributor

bpasero commented Dec 11, 2024

Fyi VS Code is trying to update to 2.5.0 for our 1.97.x January release: microsoft/vscode@679a9f1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants