ava icon indicating copy to clipboard operation
ava copied to clipboard

Report Chokidar errors

Open novemberborn opened this issue 8 years ago • 1 comments

Watch mode uses chokidar to detect changes. Chokidar can emit error events. Currently these are ignored. We should report them to the user instead as they may include clues as to why the watcher isn't detecting changes.

For example #1030 was due to Chokidar watching more files than the system allowed.

I'm thinking this should be part of the watcher's debug output, but that still takes some effort to find. Should it go in the verbose output instead?

We'll have to reproduce #1030 with this reporting enabled to see if Chokidar actually reports the errors and if it's informative enough.

novemberborn avatar Oct 09 '16 14:10 novemberborn

Kind of tangential and I'm biased on this, but it might be worth exploring replacing chokidar with watcher, which could be more refined for what this library needs (native watching under windows, much better handling of EMFILE errors, rename detection...).

fabiospampinato avatar Jul 23 '21 23:07 fabiospampinato

This would be irrelevant if https://github.com/avajs/ava/pull/3123 is completed.

novemberborn avatar Oct 23 '22 16:10 novemberborn