angular / angular-cli

CLI tool for Angular
https://cli.angular.io
MIT License
26.74k stars 11.98k forks source link

CLI ng s cant be killed #26178

Closed web-dave closed 11 months ago

web-dave commented 11 months ago

Command

serve

Is this a regression?

The previous version in which this bug was not present was

16.x

Description

When starting the dev process with ng server. This process can't be stoped. only tasmkananger process kill works

Minimal Reproduction

ng s

Exception or Error

No response

Your Environment

_                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/

Angular CLI: 17.0.0-rc.2
Node: 18.18.2
Package Manager: npm 9.8.1
OS: darwin arm64

Angular: 17.0.0-rc.1
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, platform-server
... router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1700.0-rc.2
@angular-devkit/build-angular   17.0.0-rc.2
@angular-devkit/core            17.0.0-rc.2
@angular-devkit/schematics      17.0.0-rc.2
@angular/cli                    17.0.0-rc.2
@angular/ssr                    17.0.0-rc.2
@schematics/angular             17.0.0-rc.2
rxjs                            7.8.1
typescript                      5.2.2
zone.js                         0.14.1

Anything else relevant?

Sometimes this works like charm.

reproduce it: ng s wait some time. strg+c no luck

alan-agius4 commented 11 months ago

@web-dave, unfortunely I am not able to replicate this. Are you able to reproduce this on a new application?

sod commented 11 months ago

try ctrl+c instead of cmd+c 😬

web-dave commented 11 months ago

@alan-agius4 It is a new Project. created a few minutes ago. No other dependencies added. did ng new cli-test ssr Yes style scss

even if i close the terminal, the process is still running.

You can see this problem in my vod from monday. (https://www.twitch.tv/videos/1964316115) start ng s at 00:27:10. try to stop with strg+C 00:28:20

@sod sorry, typo. i did strg+c.

web-dave commented 11 months ago

@alan-agius4

new informations. this doesn't happen without ssr.

ng new cli-test-no-ssr
styling scss
ssr No
alan-agius4 commented 11 months ago

@web-dave, can you please check if this is still a problem with @angular-devkit/build-angular version 17.0.0-rc.3?

web-dave commented 11 months ago

@alan-agius4 solved in rc.3 🎉

angular-automatic-lock-bot[bot] commented 10 months ago

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.