New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stops piping after error when gulp-watch is used #86
Comments
Why don't you switch onto |
I've tried to switching to As far as this issue go, switching to callback fixed the issue: gulp.task "watch-sass", ->
watch filePath.appDir + "/**/*.scss", (files) ->
files.pipe plumber()
.pipe sass()
.pipe using prefix: "Writing sass"
.pipe gulp.dest('.build/') Shouldn't this work in the pipe mode as well? |
Filed this issue in dlmanning/gulp-sass#90 as well, since the poblem goes away when I replace |
I have exactly the same issue and I'm compiling snockets (through2 and using snockets module directly) so I don't think it has anything to do with gulp-sass |
This also happens when not using gulp-watch. |
Sorry my bad. It does work with plumber() (it doesn't work with just catching the error though). The problem in my case was that I was using a sync function in a through2 stream and didn't bother to try..catch 😑 |
I have some issue with pipe watch(directory.src, {
name: 'Watcher "Copy"',
verbose: true
}, function (files, cb) {
gulp.start('copy', cb);
}).pipe(plugins.fncallback(function (file, enc, cb) {
console.log('fire');
if (file.event === 'deleted') {
console.log('deleted');
if (plugins.cached.caches && plugins.cached.caches['copy-files'] && plugins.cached.caches['copy-files'][file.path]) {
console.log('Forget ' + file.path);
delete plugins.cached.caches['copy-files'][file.path];
plugins.remember.forget('copy-files', file.path);
}
}
cb();
})); pipe not fire after next run |
I guess this is not problem with gulp-watch (from @demisx comment). Feel free to reopen if it is not. @sheo13666 try to update on |
I have a strange issue, that
gulp-sass()
stops piping files after a SASS error when used withgulp-watch
(v0.7.1).*.scss
file.gulp-plumber
as I should..build/
directory. I need to restartgulp watch-sass
to make things go back to normal.Please note, that this doesn't happen if I use the
gulp.watch
method instead (see code snippets below).This is where the problem described above takes place:
However, no such problem using
gulp.watch
:The text was updated successfully, but these errors were encountered: