-
Notifications
You must be signed in to change notification settings - Fork 19
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
Deno processes spawned using deno task
do not exit when the parent process exits on Windows
#33
Comments
Maybe this issue belongs in https://github.com/denoland/deno_task_shell? |
…nated on Windows Closes denoland#33
This comment was marked as resolved.
This comment was marked as resolved.
Known issue denoland/deno_task_shell#33 but still okay-ish for CI pipeline
Following! Whats the status on this? |
I think I'm also running into this – It's possible this is why Deno.serve sometimes and says the address is already in use when in --watch mode (denoland/deno#16699) For instance, right now my Deno.serve is still running even though I've exited out of the terminal that ran the deno task to start it. |
I just ran into this as well! EDIT: this is on MacOS 14.6.1 with Deno 1.46.1. |
Same here on Deno 2.0.x - We ran into this porting a nextjs project, and afiact |
Running into this is a really bad "first experience with deno" for people .... 😿 I created a git repo showing the problem I had.... note that "npm run docker-compose" works perfectly and "deno task docker-compose" breaks: |
I guess npm run uses sh as a shell and there the behavior is to "kill all processes in the foreground process group": @dsherret did you attempt to fix this bug in PR #35 2.5 years ago but it never got merged or was that a different issue? |
deno task
do not exit when the parent process exitsdeno task
do not exit when the parent process exits on Windows
deno task
do not exit when the parent process exits on Windowsdeno task
do not exit when the parent process exits
deno task
do not exit when the parent process exitsdeno task
do not exit when the parent process exits on Windows
Let's keep this issue focused on Windows because Windows is very specific here and requires a solution like #35 For other operating systems, please follow: denoland/deno#18445 which has a pending solution in #131 (edit: and now at denoland/deno#27141) |
Consider this example:
deno.jsonc:
script.ts:
reproduction.ts:
Here's the behavior using the
BROKEN
cmd inreproduction.ts
:Here's the same execution but this time using the
WORKING
cmd:The text was updated successfully, but these errors were encountered: