-
-
Notifications
You must be signed in to change notification settings - Fork 578
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
Chokidar 3.1.1 no longer react to file changes #888
Comments
Please try it with chokidar 3.1.0, not 3.1.1. |
I think you're using wrong globs or something like that. We've changed path handling in 3.1.1. Will investigate. |
In all above examples, I am using blob string: What would be the proper blob string for cases like that then? |
I can reproduce the issue on Windows 10 with Node v12.10.0 with the example.js from the repo. I changed to first line to global.watcher = require('./').watch('./lib/*.js', { Then I ran
I played a bit around. The following line changes the paths from Line 359 in 31fd30a
I tried changing it to use
If you think this fix is acceptable, I'm happy to submit a PR for it. Would be great to have a test for this as well, but I had trouble getting the tests to run properly on Windows. Are there any known issues here? |
I looked a bit more into this. Using
See here, which tests would be affected by the change: master...frigus02:fix-watching-windows. Notice that I also had to normalize paths in I'm not sure what the best course of action here is. I don't fully understand the issue #871, which was fixed by normalizing paths. Normalizing paths does not fix the "Expected pattern to be a non-empty string" error for me. I can still reproduce that with a path like I wonder if the issue #871 has been fixed by something else and we can just revert the change here and not normalize paths. I feel like that's all I can do here. Need @paulmillr's help now 🙂. |
I just saw the commits, it seems paulmillr has fixed the issue? I personally don't mind if the emitted path become UNIX-like on Windows because ... But hey, that's just my opinion. 😄 |
Not really — Still debugging this shit |
* v1.0.0 * refractofing watch mode * downgrade chokidar version due to paulmillr/chokidar#888 * added option to stop auto error check (the detaulf is ON)
@ryanelian fixed in master, I think |
Could someone test this? |
Sure. I tried using Looks like it's working on Windows. Haven't tested on other platforms. |
@countnazgul how's your project doing? |
@paulmillr it seems it's working again. |
@paulmillr just tested with v3.2.0 and it seems to work nicely! Thanks for the quick response! |
Describe the bug
I am using code like this:
The glob pattern is something like this:
The chokidar event no longer fires. Version 3.0.2 works just fine.
Versions (please complete the following information):
To Reproduce
Use something like above code / glob to detect file changes.
Expected behavior
File change triggers.
Additional context
EDIT: off-topic, just realized this issue number is 888. lucky? 😄
The text was updated successfully, but these errors were encountered: