-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
nodemon opens windows-kill.exe but doesn't restart process #1903
nodemon opens windows-kill.exe but doesn't restart process #1903
Comments
👋🏻 Something similar is happening to me. I get a I am not an engineer/developer but a colleague of mine who is told me that the issue is most likely to be with nodemon, and advised me to add a comment to this issue. Can someone help? |
@mchammer01 we were able to work around this issue by doing the following (you mentioned you're not a developer, but maybe this will still be helpful)
(apologies for the hard ping) @remy I noticed there was no further patches recently after the release to bundle this locally (v0.2.8), so I want to try to understand why we could still be seeing this? |
@xsalazar 👋🏻 - thanks for the tip, I will definitely give your workaround a go! |
I can confirm that adding |
@mchammer01 if I can get the time today, I'll push a debug version of nodemon to npm that switches to using this signal on Windows by default to see if we can nail this issue once and for all. |
👋🏻 @remy, gentle bump... is this something you've been able to look into or may be able to look into soon? 🙏🏻 |
Also had this issue and the |
One other potential workaround: we've tried starting our server with |
I've been revisiting these as dropping briefly and I can't replicate at all. Here's a screenshot showing my windows version, which is pretty darn close to the versions originally posted: The one big difference I noticed is that the screenshots of the OP had the node debugger attaching, which mine didn't - but I followed the directions but kept inside of powershell rather than spawning from VSCode as I wanted to ensure I had the right version. So, either we put this down to the FAQ, or someone can provide the missing bit so I can replicate fully (sorry). |
@remy would you be able to see if you can replicate the issue inside VSCode? Anecdotally, this DID work prior to the windows-kill changes and only broke after, so it seems related. |
@xsalazar I couldn't run PowerShell 5 in VSC, it was running PS7 - I'm not in Windows often enough to know why or how to change it. But agree - there's definitely a link to the windows-kill - but prior to that, the reports were that the sub process wouldn't shutdown - so I think it goes deeper. I'll try VSC now - again though - I need other's help to find and solve this as I've been coming up empty on these related issues for months now. |
@remy Thanks for the response; super appreciate it. I'll try to find some time this week to dig in again -- it sounds like the only thing missing from your test above is the VSCode debugger, so maybe that's where the breakdown is happening? |
i solved this issue inside this pr : #1938 |
Can people following this thread test with |
We tried. Technically, I remote-tried asking a Windows contributor to try |
Just to clarify, are you saying it's working as expected with that build? |
@xsalazar are you able to test with the debug build too - as you had the original problem? |
🎉 This issue has been resolved in version 2.0.14 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Yes. |
@remy Yes! This did fix this particular issue, with the sample project attached. No more |
Yes this worked for me too. |
Versions
[email protected], [email protected]
nodemon -v
:Commit: c3f126316369cd610563c75b1b1725e0679adfb3
Date: 2021-07-14T22:10:15.214Z
Electron: 12.0.13
Chrome: 89.0.4389.128
Node.js: 14.16.0
V8: 8.9.255.25-electron.0
OS: Windows_NT x64 10.0.19043
Expected behaviour
Application would restart as normal, killing process and rerunning
npm start
which kicks offnodemon
usingnodemon.json
configActual behaviour
Application starts as normal and I see the proper output in VSCode debug console.
Changing the
src/index.ts
(uncommenting the code to add the "Hello World" endpoint) and saving the file does the following:[nodemon] restarting due to changes...
to the VSCode debug windowwindows-kill.exe
window, minimized on my toolbarThe changes are not redeployed, and the only way to proceed is to kill the process manually.
Steps to reproduce
I have attached this sample project here as the most basic application I could get to reproduce this issue.
Manual Steps
If you wish to do this from scratch, the steps I followed were:
npm init -y
npm i -D typescript ts-node nodemon @types/node @hapi/hapi
npx tsc --init
nodemon.json
package.json
start script.vscode/launch.json
The text was updated successfully, but these errors were encountered: