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

Cmder and gulp, not friend? #725

Closed
kud opened this issue Nov 21, 2015 · 14 comments
Closed

Cmder and gulp, not friend? #725

kud opened this issue Nov 21, 2015 · 14 comments
Labels
👆 clink Upstream issue in clink.

Comments

@kud
Copy link

kud commented Nov 21, 2015

[00:45:53] Using gulpfile D:\Projects\_kud\kud.github.io\gulpfile.js
[00:45:53] Starting 'server'...
[00:45:53] Running server on: http://localhost:3000
[00:45:53] Finished 'server' after 41 ms
[00:45:53] Starting 'clean'...
[00:45:53] Finished 'clean' after 38 ms
[00:45:53] Starting 'static'...
[00:45:53] Starting 'images'...
[00:45:53] Starting 'validate'...
[00:45:53] Starting 'styles'...
[00:45:54] Finished 'validate' after 950 ms
[00:45:54] Starting 'scripts'...
[00:45:55] Finished 'styles' after 1.41 s
[00:45:55] Finished 'scripts' after 930 ms
[00:45:55] Finished 'static' after 2.21 s
[00:45:55] gulp-imagemin: Minified 6 images (saved 487.55 kB - 5.3%)
[00:45:55] Finished 'images' after 2.59 s
[00:45:55] Starting 'compile'...
[00:45:55] Finished 'compile' after 5.36 μs
[00:45:55] Starting 'watch'...
[00:45:55] Finished 'watch' after 119 ms
^CTerminate batch job (Y/N)? ^CTerminate batch job (Y/N)?
D:\Projects\_kud\kud.github.io (sources)
λ git st
Terminate batch job (Y/N)?

Everytime I quit the watch mode in gulp, it makes me stuck on Terminate batch job (Y/N) and I can't do anything more. Do you know why?

@Wind4
Copy link

Wind4 commented Nov 29, 2015

You can modify the settings file: config/settings

terminate_autoanswer = 2

@kud
Copy link
Author

kud commented Nov 29, 2015

I've set it as 1. Why 2?

@MartiUK MartiUK added the 👆 clink Upstream issue in clink. label Nov 30, 2015
@MartiUK
Copy link
Member

MartiUK commented Nov 30, 2015

You've got it set correctly, setting it to 1 auto-answers yes, but 2 auto-answers no.

Without seeing the gulp file there's no way I can help you with this, perhaps check how your gulpfile is starting the watch process, if it starts it in an extra cmd.exe it will auto answer this first cmd.exe but fail on the second one.

@kud
Copy link
Author

kud commented Nov 30, 2015

Okay thank you I will check this. ;)

@kud
Copy link
Author

kud commented Nov 30, 2015

@MartiUK
Copy link
Member

MartiUK commented Nov 30, 2015

try running gulp like gulp watch < nul or use PowerShell 😎

@kud
Copy link
Author

kud commented Nov 30, 2015

Interesting, thanks. Why PowerShell? I don't mind using it but why it could solve my problem?

@MartiUK
Copy link
Member

MartiUK commented Nov 30, 2015

You'll avoid the terminate batch job (Y/N)? prompts altogether. It's newer, and much more user friendly. The problem is Microsoft never updates it on your machine through windows update, so you can install the latest "stable" version here: https://www.microsoft.com/en-gb/download/details.aspx?id=40855

@kud
Copy link
Author

kud commented Nov 30, 2015

Okay thank you. :) I'll check all these things when I'll be back on my windows.

@kud
Copy link
Author

kud commented Dec 1, 2015

Okay I've tried with PowerShell and I've got the same problem.

The only difference is that the shell isn't stuck but on every command I type it gives me terminate batch job (Y/N)? so in fact I can't use the shell anymore too. Even if I choose Y or N.

It seems that I can't quit easily a gulp watch via ctrl+c.

@kud
Copy link
Author

kud commented Dec 1, 2015

@kud
Copy link
Author

kud commented Dec 18, 2015

@kud
Copy link
Author

kud commented Dec 18, 2015

Works like a charm.

[23:57:31] Starting 'compile'...
[23:57:31] Finished 'compile' after 20 μs
[23:57:31] Starting 'watch'...
[23:57:31] Finished 'watch' after 9.48 ms
[23:58:52] '^C', exiting

D:\Projects\_kud\diary (feat.reorganise)
λ

@kud kud closed this as completed Dec 18, 2015
@DRSDavidSoft
Copy link
Contributor

Duplicate of: #1666.

Here's the write-up for future visitors:
https://github.com/cmderdev/cmder/wiki/Customization#terminate-batch-job-yn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👆 clink Upstream issue in clink.
Projects
None yet
Development

No branches or pull requests

4 participants