You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Versions (please complete the following information):
Chokidar version 3.5.3
To Reproduce:
constFS=require("fs");constChokidar=require("chokidar");constwatcher=Chokidar.watch(["file-1","file-2"]);watcher.on("add",(path)=>console.log(path));// BTW, on("ready") doesn't work either.setTimeout(()=>{FS.writeFileSync("file-2","");// file-1 would work.},1000);
Expected behavior
All previously non-existing files should receive "add" event on creation.
Additional context
I traced down to the NodeFsHandler#_handleRead() method and the way it throttles is the cause:
Versions (please complete the following information):
To Reproduce:
Expected behavior
All previously non-existing files should receive "add" event on creation.
Additional context
I traced down to the
NodeFsHandler#_handleRead()
method and the way it throttles is the cause:chokidar/lib/nodefs-handler.js
Lines 456 to 463 in 0f163b8
The text was updated successfully, but these errors were encountered: