-
Notifications
You must be signed in to change notification settings - Fork 76
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
Terminate in Console View leaves node.exe running when using Run Configuration NPM /project/package.json
start
(similar to npm start
)
#190
Comments
Stefan, if the issue is still on with 4.5 Mars ? |
Alright, I just tested again with:
I created a new Node.js Express Project (File -> New -> Node.js Express Project). Then executed the npm install run command, then created a new npm start command. Now the behaviour is even more strange:
This behaviour is reproducable. |
I was playing today with debugging, stopping and restarting I see the key point is
That is your software is server in wait cycle, and KILL signal is only processed after waiter got response. This is dummy guessing, and also not in line with Node.js event loop model. note, that Nodeclipse itself does nothing special to kill process. It is done by eclipse APIs. |
Why do you need that? When you create Express project via IDE you should get modules already downloaded. I usually do right-clicking on
How do you do this? |
Usually I start express with In eclipse I do this with a new
|
OK, this way I also got 2 node processes and unable to stop from Eclipse Also if running from command line So I guess, we should check npm docs or sources for what it actually does. For you I would suggest to use right-clicking on I don't think and don't want to spend time for launching debugging via |
/project/package.json
start
(similar to npm start
)
related to #177 |
This is my setup:
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.
The text was updated successfully, but these errors were encountered: