-
-
Notifications
You must be signed in to change notification settings - Fork 586
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
Either watchpack or chokidar is locking files in Windows #446
Comments
That's unlikely. I think that's watchpack-related. |
This is probably why: #320? |
No, not in terms of anything chokidar has control over. Try using chokidar in isolation (without watchpack) to see if you can reproduce the issue. You could start with the example.js script in the repo. If it does occur just from watching with chokidar, then the issue is somewhere in the realm of node.js core |
I'm indirectly using
chokidar
throughwatchpack
. File watching appears to be causing files to be locked in Windows. For example, if I'm running the dev webpack server and do annpm install
orgit rebase
, their attempts to update or delete files sometimes receive access permission errors.My issue was originally filed with
watchpack
, but it was closed because file watching is implemented throughchokidar
. But I'm not sure whether the bug is inchokidar
or in the way it is being used. Here's howwatchpack
is usingchokidar
.https://github.com/webpack/watchpack/blob/master/lib/DirectoryWatcher.js#L48
Is it possible that
chokidar
is opening files/directories in an overly-restrictive manner? As far as I can tell, OS X developers on my team do not have this same issue.The text was updated successfully, but these errors were encountered: