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?