shama / gaze

:crystal_ball: A globbing fs.watch wrapper built from the best parts of other fine watch libs.
MIT License
1.15k stars 168 forks source link

Extremely slow on Windows #224

Closed zwhitchcox closed 8 years ago

zwhitchcox commented 8 years ago

So, I've got a script

console.log(process.cwd())
gaze([path.join(__dirname, '..')+'/src/utils/**.js'], function(err, watcher) {
  console.log('watching')
  this.on('ready',function(){console.log('ready')})
  this.on('all', function (event, filepath) {
    console.log('2')
    var testFile = path.basename(filepath);
    console.log(filepath);
  });
});

and there are a total of 6 files in this directory. I get the 'watching' on the console, but I've been waiting for like ten minutes, and it hasn't said 'ready' yet. I'm not sure if it's something I'm doing or not. I've used this before on linux, and it worked fine, but now that I'm on a windows machine, it's not working.

zwhitchcox commented 8 years ago

So, just an update....left this script running all night, and it still hasn't finished globbing those six files!

zwhitchcox commented 8 years ago

Ok, it's working now...don't know what happened