-
-
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
Windows 7, Chokidar exits with error when remove a directory #88
Comments
This is node.js core error nodejs/node-v0.x-archive#4337 But we need to handle this one, yes |
…or when remove a directory
Would you like to pull this fix into the main repository? |
The fix is already merged into the main repository (#112), but unfortunately it got a few improvements, so that it isn't working any longer. |
Bug see #112 |
@dwittner please verify whether 2913fae does the trick |
@es128, it seems to work now, at least i don't get an error anymore. Thus it is an improvement in any case. Can you tell me, when the fix will be released? |
Additional comment: I had to put a try... catch around _handleFile and _handleDir calls in the _handle Subroutine, but unfortunately I was not able to track down the error in Detail. |
I don't think I have npm rights on chokidar yet, but I'd probably want to take another week or so to fix any other issues I can track down and try to make sure it's stable before I recommend an 0.10 release. |
even with my try... catch Approach, I don't manage to handle all "unhandled 'error' events" |
it's now limited to Windows Network Shares, and happens sporadically during the _handle.onchange Event. |
hm... i think now it says EPERM again while lstat'ting: Cannot call method "emit" of undefined, in chokidar\index.js:294 tracing back to index.js:286, where it emits something ALTHOUGH I'm on Windows, and it clearly says ...raised an error: EPERM, lstat |
@Cominch please provide code and describe steps to reproduce |
@es128, 0.10.1 works fine for me now. Thx a lot! |
Necro, but still relevant. This error may be caused by deleting a file from within an application being run as a different user on the system. E.g. running a text editor as Administrator (Windows) and deleting the file from within this editor will trigger the error. |
chokidar file remove and unwatch is not working if i add a function to watch but after this i try to remove it or unwatch it but it didnt remove it not unwatch it can you please help |
Hi,
On Windows 7, lastest nodejs, latest chokidar
I have this simple test file:
When I run the script I have:
If I add a directory
mkdir a
, I have:But if I remove the dir
rm -rf ./a
I have this error and the script exitsThe text was updated successfully, but these errors were encountered: