-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
"unstable_dev" doesn't kill app server on exit (Windows) #6322
Comments
Looks like it is just the way execa and NodeJS works by default on Windows. The spawned process doesn't exit when the process is killed. To get this to work, See:
Despite it saying that a new console would open, I haven't seen another console open with this disabled. |
possibly fixed by #6289 which is available in |
This isn't about the development loop (restart app server on changes). This is when you kill the development process altogether. The child process (app server) is not killed with the dev server. The app server process is left running and you can't start up a new process ( |
Just to confirm. I installed the latest nightly and it is still happening. For more context this is what I'm doing:
Adding remix/packages/remix-dev/devServer_unstable/index.ts Lines 69 to 77 in d8bcdc1
Example: let newAppServer = execa.command(command, {
stdio: "pipe",
env: {
NODE_ENV: "development",
PATH:
bin + (process.platform === "win32" ? ";" : ":") + process.env.PATH,
REMIX_DEV_HTTP_ORIGIN: stringifyOrigin(httpOrigin),
},
windowsHide: false
});
|
Thanks for the great detective work @trevor-hackett ! Adding this to the dev server TODOs |
Can confirm to have the same issue. Starting the server once is OK, killing it and starting again getting me that error:
I then have to kill the port manually with |
@trevor-hackett merged #6322, so you'll be able to try this fix out on I'm working on getting Parallels setup for local Windows dev on my mac, but haven't done so yet. So in the meantime, any feedback from you or others using Windows is invaluable! |
🤖 Hello there, We just published version Thanks! |
🤖 Hello there, We just published version Thanks! |
🤖 Hello there, We just published version Thanks! |
What version of Remix are you using?
1.16.0
Are all your remix dependencies & dev-dependencies using the same version?
Steps to Reproduce
On a Windows machine, create a new Remix app with unstable_dev enabled. (ex:
npx create-remix@latest --template https://github.com/remix-run/remix/tree/templates_v2_dev/templates/remix my-app
)Run the app. (
npm run dev
)Kill the process (ex:
CTRL-C
)Expected Behavior
Dev server and app server should exit
Actual Behavior
Dev server exits but app server process continues to run and has to be killed separately.
The text was updated successfully, but these errors were encountered: