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

Watch.zig: fixes for windows implementation #20907

Merged
merged 1 commit into from
Aug 14, 2024

Conversation

jayrod246
Copy link
Contributor

Using --watch I noticed a couple of issues with my initial attempt.

  1. The index I used as 'completion key' was not stable over time, when directories are being added/removed the key no longer corresponds with the intended dir.
  2. There exists a race condition in which we receive a completion notification for a directory that was removed.

My solution is to generate a key value and associate it with each Directory.

Using --watch I noticed a couple of issues with my initial attempt. 1) The index I used as 'completion key' was not stable over time, when directories are being added/removed the key no longer corresponds with the intended dir. 2) There exists a race condition in which we receive a completion notification for a directory that was removed. My solution is to generate a key value and associate it with each Directory.
@andrewrk andrewrk merged commit 9be10ea into ziglang:master Aug 14, 2024
10 checks passed
@andrewrk
Copy link
Member

Nice 👍

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

Successfully merging this pull request may close these issues.

2 participants