analog icon indicating copy to clipboard operation
analog copied to clipboard

Cant stop ng serve

Open web-dave opened this issue 1 year ago • 5 comments
trafficstars

Please provide the environment you discovered this bug in.

https://stackblitz.com/github/web-dave/analog-project

Which area/package is the issue in?

create-analog

Description

I created the project. Played with analog js (wich is nice btw) but cant stop ng serve

Please provide the exception or error you saw

cli doen not stop running

Other information

All my Angular v18 projects work fine

I would be willing to submit a PR to fix this issue

  • [ ] Yes
  • [X] No

web-dave avatar May 27 '24 18:05 web-dave

+1

dalenguyen avatar May 27 '24 18:05 dalenguyen

I've noticed this also. Its something to do with the wrapper around the vite builder. Pressing CTRL+C twice stops it.

brandonroberts avatar May 27 '24 19:05 brandonroberts

ctrl+C twice Doesn't work for me.

even q does not work.

web-dave avatar May 27 '24 20:05 web-dave

Oh interesting, If you run npx vite instead can you stop it normally? Are you on Windows?

brandonroberts avatar May 27 '24 20:05 brandonroberts

I wonder if we could just add a process.on('SIGINT') and exit the process manually.

It's quite possible, that if the wrapper does not pass down the stdin, the sigkill is just not received by the code that could have received it and gracefully (or not) finish.

gultyayev avatar Jul 02 '24 19:07 gultyayev

This could be due to us wrapping the Nx executors for supporting ng commands. Usually ctrl+c twice works across environments.

brandonroberts avatar Aug 30 '24 13:08 brandonroberts