Gulp tasks finish but the process never exits.
See original GitHub issueAs of about two days ago, my gulp tasks are finishing but the process is not exiting. I’ve tried narrowing down what changed between before and now, but nothing I try can get me back to the original working behavior.
I first noticed this after upgrading to 3.8.11, but I’ve since downgraded and the problem persists. I tried on a different computer that had the same repo checked out and it worked fine. Then after running npm install
and upgrading all packages, I get the same issue. Again, I’ve tried downgrading and attempting to get back to the working behavior, but I can’t seem to no matter what I try.
As a reduced test case, I created the following task:
gulp.task('noop', function() {});
I then ran gulp noop
with the following output:
[16:57:46] Using gulpfile ~/Projects/solved-by-flexbox/gulpfile.js
[16:57:46] Starting 'noop'...
[16:57:46] Finished 'noop' after 41 μs
But the process never exits. Has anyone else experienced this?
I’m not sure if it matters, but I’m running iojs v1.2.0 and gulp v3.8.11. I’ve tried using node v0.10.29 and gulp v3.8.10 (which was working the other day), but it still doesn’t work.
Issue Analytics
- State:
- Created 9 years ago
- Comments:10 (5 by maintainers)
Top GitHub Comments
Just to let you know, I ran into a similar issue with nunjucks. If you are using nujucks.configure, make sure you add
watch: false
as an option.Yep. The culprit is always a library that is keeping an extra handle open. I’ve run into this with database drivers and libraries that implement their own watching mechanisms. Glad you tracked it down.