Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Time-grunt stopped working after updating to grunt 0.4.2 #15

Closed
opus131 opened this issue Nov 25, 2013 · 13 comments
Closed

Time-grunt stopped working after updating to grunt 0.4.2 #15

opus131 opened this issue Nov 25, 2013 · 13 comments

Comments

@opus131
Copy link

opus131 commented Nov 25, 2013

It appears that process.on('exit' ...) is never called. I could fix it by reverting a change in grunt.js (calling process.exit(0); rather than util.exit(0)): https://github.com/gruntjs/grunt/blob/master/lib/grunt.js#L147

So probably a grunt issue?

@sindresorhus
Copy link
Owner

cowboy/node-exit#4

@vladikoff
Copy link

Discussion on a fix for this is in cowboy/node-exit#7

@kud
Copy link

kud commented Nov 27, 2013

Doesn't work at all here. MacOSX 10.9

@Guuz
Copy link

Guuz commented Nov 29, 2013

Not working here either. Win8.1 and latest version of grunt.

@eddiemonge
Copy link

not liminited to windows. Grunt 0.4.2 in general breaks it.

@scottnonnenberg
Copy link

Also getting no time-grunt output on Grunt 0.4.2 on OSX 10.9

@binarykitchen
Copy link

Thanks for the update @sindresorhus, the times are shown again. But the grunt tasks are never exited now. Always have to CTRL-C to make them quit.

@sindresorhus
Copy link
Owner

@binarykitchen do you have a testcase? Works fine for https://github.com/sindresorhus/time-grunt/blob/master/Gruntfile.js

@binarykitchen
Copy link

Just tested again in the office. Weird. It is working on my office machine (Linux) but not on my home machine (Mac OS X). Will have to check again from home ...

@sindresorhus
Copy link
Owner

@binarykitchen a5a4592, just npm cache clean and reinstall.

@binarykitchen
Copy link

Right, I did that on my office machine and then it worked.

Man, why do I have to clear npm's cache? Shouldn't it invalidate older versions automatically?

@sindresorhus
Copy link
Owner

@binarykitchen it should, but there's a reason there's a command like that, sometimes it doesn't. A better question is; Why is everything with programming and computers broken?

@binarykitchen
Copy link

Haha ... I get it ;) No further questions ... thx!

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

8 participants