Skip to content

Terminate in Console View leaves node.exe running when using Run Configuration NPM /project/package.json start (similar to npm start) #190

@skleeschulte

Description

@skleeschulte

This is my setup:

  • Eclipse Luna SR2 (4.4.2) under Windows 7 x64 with jre1.8.0_45
  • Eclipse was setup this way: extracted eclipse-platform-4.4.2-win32-x86_64.zip, installed Eclipse Marketplace Client, then installed Nodeclipse via Drag&Drop from nodeclipse.org
  • node version v0.12.2
  • express-generator is installed globally (version 4.12.1)

Now in eclipse I created a new Node.js Express Project. The default run configuration is package.json with goal "install". I changed goal from "install" to "start". This works perfectly - the start command in package.json is "node ./bin/www" and I can see this command appear in the console view when I run the project. I also see the log output when request are made to the express app. However, if I click the red icon "Terminate" inside the console view (as described here: http://www.nodeclipse.org/usage), node.exe does not exit. It looks like the console is somehow "detached" and the debug view says that package.json terminated. But if I try to start the app again, it says that the port is already in use, and I can see node.exe is still running in windows task manager. After I kill the process in windows task manager, I can run the project again in eclipse.

If I run the project via windows command line ("npm start") and then exit with Ctrl+C, node.exe is terminated properly.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions