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
after hitting ctrl-s on the watched file once, this is added:
[14:53:22] Starting 'series'...
[14:53:22] Starting 'compile-main'...
[14:53:23] Finished 'compile-main' after 119 ms
[14:53:23] Finished 'series' after 120 ms
but then each subsequent ctrl-s is ignored.
removing the { since: gulp.lastRun('compile-main') } has no effect.
i know that my editor saves by writing to a tempfile and moving the tempfile to where the original file is, in order to make saves atomic in case of errors.
using a glob instead of a path fixes this, so i guess the problem is that using a path makes the watcher watch a file handle instead of the directory.
The text was updated successfully, but these errors were encountered:
flying-sheep
changed the title
Gulp 4: Watch only fires once
Gulp 4: Watch only fires once when used with paths instead of globs
Oct 11, 2015
Seems related to paulmillr/chokidar#237, which is caused by editor atomic save weirdness combined with watching a single file. You already happened upon the workaround solution, which is to force a watcher to be attached at the directory level by using a glob pattern (even a pattern that matches only the particular file like [f]ile.txt will work for this purpose). Some other potential workaround solutions discussed in the linked thread (such as enabling polling or using a different editor).
Hi, with gulp-babel and gulp 4:
this is the output:
after hitting ctrl-s on the watched file once, this is added:
but then each subsequent ctrl-s is ignored.
removing the
{ since: gulp.lastRun('compile-main') }
has no effect.i know that my editor saves by writing to a tempfile and moving the tempfile to where the original file is, in order to make saves atomic in case of errors.
using a glob instead of a path fixes this, so i guess the problem is that using a path makes the watcher watch a file handle instead of the directory.
The text was updated successfully, but these errors were encountered: