parcel-bundler / watcher

👀 A native C++ Node module for querying and subscribing to filesystem events
MIT License
656 stars 45 forks source link

Negated entries provided to "ignore" option are making the watcher not detecting any changes #174

Open antoine-coulon opened 4 months ago

antoine-coulon commented 4 months ago

Hello,

I'm using @parcel/watcher for skott and the library is nice, thank you!

As it was reported by a skott's user it seems that using negated entries in the ignore option is causing a weird behavior where the watcher does not detect any change. Another issue (#166) was opened by @arciisine close to that topic but the issue is just mentioning a lack of support (that is being able to not ignore some of the entries) and in my case it is causing the watcher to not detect changes at all.

I would either expect:

I created a repo to reproduce the issue with .vscode entries initially coming from .gitignore, provided down to the ignore of @parcel/watcher#subscribe method. You can find all information in the README.md to reproduce the problem.