dowjones / gulp-bundle-assets

Create static asset (js, css) bundles from a config file: a common interface to combining, minifying, revisioning and more
MIT License
133 stars 36 forks source link

bundle.watch tends to crash when a watched file is deleted #61

Open senritsu opened 9 years ago

senritsu commented 9 years ago

On deleting any file or folder in the watched set, usually the bundle.watch crashes with the following error message:

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: watch EPERM
  at errnoException (fs.js:1031:11)
  at FSEvent.FSWatcher._handle.onchange (fs.js:1049:26)

Process terminated with code 8.

Error message suggests it is a permission problem (which is not the case), and makes it seem like it is on the node fs side, but could be caught and handled by the bundle watcher

The enhancement discussed in https://github.com/dowjones/gulp-bundle-assets/issues/53 would probably also sort of fix this issue.

chmontgomery commented 9 years ago

Can you post your gulpfile, OS, version of gulp?

Also, since bundle.watch is simply using gulp.watch under the covers, do any of these help you?

senritsu commented 9 years ago

gulpfile, not sure if i am allowed to post it publicly, company policy and all that. Have to check in with my superior about it.

OS is windows 8.1 x64, local filesystem, full admin permissions gulp dependency is ^3.8.10

removing a leading dot from the glob, or changing

**/*

to

**/*.*

had no effect. Still got a crash after deleting 2 or 3 files.

nghilevi commented 8 years ago

Any news on this? I have the same problem.