-
-
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
fix(cli.rs): terminate the beforeDevCommand, closes #2794 #2883
Conversation
steps I took to produce the issue or at least one of them:
results:
|
@amrbashir Could be this: |
yeah I think it is related, I talked about it in discord before. |
This issue is driving me crazy, I managed to reproduce it with |
A bit of an update, in svelte official template, I found out that they are using Switching it to |
@probablykasper can you still reproduce this issue? I couldn't after a lot of attempts. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to work wonderfully on windows 🥳
@lucasfernog Yes. Tried running |
I tried the same steps but I couldn't reproduce it. |
Unable to reproduce it both with this PR and without? |
Looks like we need a better script to kill child processes on Unix (currently |
I don't think there's a better way to do it than that. As long as Best bet might be to instead use a different Svelte template in |
Yeah but I think we can fix this on our end, I'm testing atm. |
@probablykasper try again, it works now! |
tooling/cli/scripts/kill-children.sh
Outdated
done | ||
} | ||
|
||
kill -9 $(getcpid $1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change is you're calling 9 (SIGKILL) instead of SIGTERM, right? I'm not sure that's a great idea :/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let me try with SIGTERM again
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm I think there's no other way, either we leave Svelte users with this super annoying bug or we use SIGKILL
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wouldn't want to risk using SIGKILL, could have some rough consequences since it takes away processes' ability to shut down properly :/
As Amr pointed out, the Svelte template might just be spawning it's child process incorrectly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'll just revert it, maybe there's a place for us to document it
This reverts commit b689271.
What kind of change does this PR introduce? (check at least one)
Does this PR introduce a breaking change? (check one)
The PR fulfills these requirements:
fix: #xxx[,#xxx]
, where "xxx" is the issue number)If adding a new feature, the PR's description includes:
Other information: