-
Notifications
You must be signed in to change notification settings - Fork 5
unhandled rejection from local-fs #41
Comments
we get an event on a folder we configured chokidar to ignore? so this is a bug in chokidar? |
Probably we have to rename issue. We had bug in ignoring, thats why I moved to micromatch and yet we had issue with that. So now we don't have unexpected event (cause I've fixed bugs I mentioned above), but if for some reason (it could be a lot of them) I'd prefer to have a special kissfs api event for that, but we have discussion in PR #42 about that.. so we have probability of errors there which we don't have API to handle. yet. |
a concrete scenario in the form of code would help me understand better |
umm. scenario of possibility?
|
I think I follow. |
@amir-arad so.. if we're
I suggest to add that event to API back. |
👍 |
so we have:
|
thats because of diff? |
yes |
think this is possible only with placing watcher as constructor option with chokidar default. |
What's the problem with with this scenario using chokidar the same way as it is done today? |
@amir-arad I need test suite when we will trigger events from watcher |
@tyv that will not really simulate a change to the file system, only a change event (or the absence of change events). |
@amir-arad how you can see that I will emulate this?
|
as we need an |
we have unhandled rejection here in
loadTextFile
: https://github.com/wix/kissfs/blob/master/src/local-fs.ts#L69-L83it happens if watcher for some reason have event from ignored folder.
The text was updated successfully, but these errors were encountered: