-
Notifications
You must be signed in to change notification settings - Fork 182
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
not updating race condition fix #249
Conversation
lgtm! somewhat related, how do you feel about scheduling the update event on a debounce instead of a throttle? |
oh wait... if you choose not to call |
…n bundle event causes test suite to fail
When I put |
Ah because this line in browserify should read I'm stuck at work right now, but I can fix that later tonight. |
Fixed upstream issue in browserify 11.0.1. |
Nice! Just tried 227be4e and the tests pass now 😄 |
shoot, looks like this didn't fix my issue... Maybe it's related to the fsevents issue :( It seems only a couple files don't trigger rebuilds |
This patch fixes #216 by tracking the updating status and refusing to close watchers while the new bundle is being generated. Previously, a race condition would remove watchers from
fwatchers
when 2 parallel 'update' events would use the same data structures.This issue is easy to replicate on a big project by doing:
while true; do touch main.js; done
. Before, this would stop watchify from tracking changes tomain.js
very quickly. With this fix, watchify keeps on cranking.