npm-run-all icon indicating copy to clipboard operation
npm-run-all copied to clipboard

Parallel tasks can't be killed in Webstorm Terminal on Windows

Open coryhouse opened this issue 8 years ago • 14 comments

This is admittedly Webstorm specific, but as FYI:

This is the same issue that I reported in Issue 32, but it occurs in Webstorm's terminal on Windows. Hitting Ctrl+C produces the prompt for "Terminate batch job (Y/N)?", but answering "Y" doesn't actually get you back a usable command line. It appears to be using the native Window command line behind the scenes since this is shown when I open the Webstorm terminal:

Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved.

The result of hitting Ctrl+C: ^C^C^CTerminate batch job (Y/N)? Terminate batch job (Y/N)? ^CTerminate batch job (Y/N)? ^^CCTerminate batch job (Y/N)? Terminate batch job (Y/N)? Terminate batch job (Y/N)? ^CTerminate batch job (Y/N)? Terminate batch job (Y/N)? Y

It becomes frozen after answering Y.

coryhouse avatar Mar 24 '16 20:03 coryhouse

Thank you for this issue.

Mmm, I don't have WebStorm...

mysticatea avatar Mar 25 '16 07:03 mysticatea

There's a free trial at the link I provided in the issue. :+1:

coryhouse avatar Mar 25 '16 13:03 coryhouse

Sorry, I had used the trial version before, so I cannot use it now.

mysticatea avatar Mar 25 '16 13:03 mysticatea

A free open source license is available. Details at: https://www.jetbrains.com/buy/opensource/?product=webstorm

dasa avatar Jun 10 '16 23:06 dasa

Oh, thank you for the information!

mysticatea avatar Jun 11 '16 11:06 mysticatea

Thank you. I got the WebStorm Free Open Source License for npm-run-all.

  1. I tried the npm start of react-slingshot in WebStorm's terminal. Fortunately (or unfortunately), it worked fine. ws-terminal
  2. I checked out a commit of March. But it failed to compile some native modules... :cry:

@coryhouse Could you reproduce this issue currently?

mysticatea avatar Jun 14 '16 10:06 mysticatea

It's still occurring for me on Windows 7. What version of Windows are you on?

coryhouse avatar Jun 16 '16 12:06 coryhouse

I'm using:

  • Windows 7 (Japanese)
  • WebStorm 2016.1.3
  • Node 6.2.0
  • npm 3.9.0

mysticatea avatar Jun 16 '16 13:06 mysticatea

Odd, I'm running the exact same setup. I'm stumped why we're seeing different results.

coryhouse avatar Jun 16 '16 19:06 coryhouse

Weird 😓. I will continue to investigate...

mysticatea avatar Jun 16 '16 20:06 mysticatea

The same behavior with FAR Manager and Windows 10:

  1. npm-run-all -l -p dev:*
  2. CTRL+C and say Y Result: task was killed...
  3. F10 to exit FAR Manager Result: failed, FAR not closed...

Broken FAR process: image

Normal FAR process: image

zont avatar Jan 17 '17 12:01 zont

The same behavior with cmd and Windows 10:

  • npm-run-all -l -p dev:*
  • CTRL+C and say Y

Result: task was killed...

  • type exit to close cmd window

Result: failed, window not closed...

zont avatar Feb 17 '17 11:02 zont

I have quite similar issue. I use npm-run-all to run Angular (ng serve), Laravel (php artisan server) and pug-cli simultaneously like this (a package.json fragment):

"scripts": {
…
    "serve": "ng serve --proxy-config proxy.conf.json",
    "sleep": "sleep 3",
    "serve:postponed": "run-s -s sleep serve",
    "start": "run-p pugw laravel serve:postponed",
    "laravel": "php ../lar/artisan serve",
    "pug": "pug src",
    "pugw": "pug src -P -w"
  },

If I hit Ctrl+Cas many times I want – nothing happens. If I hitCtrl+C and Enter, I finally can see the bash prompt. However, all stuff (php.exe and ng, pug, etc.) continue work in background, and bash freezes

PS. Win 10

zhekaus avatar Dec 08 '17 09:12 zhekaus

We have the same issue on MacOS. Even though we're pressing Ctrl+C like mad, the processes continue to run. Restarting will pile up more and more of those processes bringing everything slowly to a halt.

SargoDarya avatar Mar 16 '18 07:03 SargoDarya