Skip to content
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

Gulp tasks finish but the process never exits. #903

Closed
philipwalton opened this issue Feb 14, 2015 · 10 comments
Closed

Gulp tasks finish but the process never exits. #903

philipwalton opened this issue Feb 14, 2015 · 10 comments

Comments

@philipwalton
Copy link

As 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.

@phated
Copy link
Member

phated commented Feb 14, 2015

Post the whole gulpfile, not just the task please.

@philipwalton
Copy link
Author

https://github.com/philipwalton/solved-by-flexbox/blob/master/gulpfile.js

Which doesn't include the noop task, but none of the existing tasks are completing either.

@heikki
Copy link
Contributor

heikki commented Feb 14, 2015

I haven't seen that myself but someone on StackOverflow had the same problem couple of months ago. I got the impression that something non-gulp related was going on because I couldn't reproduce it at all.

@heikki
Copy link
Contributor

heikki commented Feb 14, 2015

SO questions I was talking about:

@philipwalton Does your reduced test case gulpfile include only this:

var gulp = require('gulp');
gulp.task('noop', function() {});

@philipwalton
Copy link
Author

Okay, I found the culprit. Upgrading nunjucks from 1.1.0 to 1.2.0 was causing the problem. I'll file a bug with them.

@phated
Copy link
Member

phated commented Feb 14, 2015

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.

@troch
Copy link

troch commented Apr 10, 2015

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.

nunjucks.configure('template', {watch: false});

@greypants
Copy link

☝️ Just did the same thing with nunjucks. Thanks @troch for the reminder!

@kud
Copy link

kud commented Oct 27, 2016

Came back here for #903 (comment)

Thanks.

@callumacrae
Copy link
Member

Please use emoji reactions 🎉 instead of leaving a comment and sending notifications (and emails ✉️😰), thank you! ✌️

@gulpjs gulpjs locked and limited conversation to collaborators Oct 28, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants