-
Notifications
You must be signed in to change notification settings - Fork 108
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
WireIt doesn't kill ng serve
properly
#540
Comments
@aomarks Still happening. |
As promised in #568 I created a small repo to demo the issue I have. git clone git@github.com:SanderElias/wireiProblemRepo.git
cd wireiProblemRepo
npm i
npm run start That should bring up the Now open the file an additional problem is, that It would help to have the option to kill (BTW, I'm on Ubuntu 22.10) |
Previously, if a failure occurred in a persistent (i.e. top-level) service's dependencies, and if we were in watch mode on the 2nd or later iteration, then we completely forgot about the previously running service. This had two similar effects, both of which could manifest as e.g. "port not available" errors: - If the dependency was eventually fixed, we would try to start the service again, even though the previous version was still running. - If the user exited wireit with Ctrl-C, we would not shut down the child process because we lost track of it. This PR fixes these problems by transitioning to a new "started-broken" state when a failure in an already-running service's dependency occurs, which keeps a reference to the child process. This PR also fixes some failure logging issues, where we would sometimes log the same failure multiple times, or sometimes log a failure at the very end of execution instead of as soon as it actually happens. Fixes #568 Fixes #540 cc @SanderElias @deebloo @justinfagnani If you'd like to test out this fix early, I've published a pre-release as `wireit@0.9.2-pre.1`. If you try it, let me know how it goes!
Fix released in 0.9.2 |
This the follow-up on the discussion in #33
I think your guess is right, and the problem is that WireIt doesn't seem able to kill
ng serve
properly.If you look at this screenshot:
This happened after I killed WireIt Manually, and restarted the watch mode.
I
^c
'd it, and usepkill
to kill theng serve
command. That resulted in 2 lines that seems to originate from WireIt.The text was updated successfully, but these errors were encountered: