External tool process does not terminate?

Hello, I'm running an external tool (a CoffeeScript Cake file) and am having a problem in IDEA. I have this set up as a batch file, and if I run the batch file directly, it works fine, and when I end it (Control-C), the spawned Node processes terminate correctly. However, if I set this batch file up as an External Tool, when I end it (press the Stop button), the console says "Process finished with exit code 1", and the spawned Node processes do not terminate.

I've tried a number of things to get the processes to terminate (including listening for events as described at http://youtrack.jetbrains.com/issue/WEB-1913), but nothing seems to work. Is there some way to properly terminate the spawned processes? Or is this some limitation of the Java Runtime?

Thanks,

Brian

5 comments
Comment actions Permalink

Ah, ok. Thanks, I hadn't seen that ticket just the other one I linked to. I'll keep an eye out for the fix.

0
Comment actions Permalink

Wow, I ran into the same problem doing the same thing - doing a watch of my coffeescript files dir to compile them into my JS directory via bat file and noticed the node processes weren't getting cleaned up in task manager.

I hope they fix this soon :(  Quite annoying.

Did you find a workaround for this?

0
Comment actions Permalink

Looks like it is fixed in 12.1. The ticket isn't updated, but terminating the process in 12.1 seems to kill it correctly.

0
Comment actions Permalink

Ok, I may check out the EAP then.  Thanks!

0

Please sign in to leave a comment.