Skip to content

Angular 13 CLI not stopping after ctrl + c #22216

Description

@danielehrhardt

🐞 Bug report

Command (mark with an x)

  • new
  • build
  • serve
  • test
  • e2e
  • generate
  • add
  • update
  • lint
  • extract-i18n
  • run
  • config
  • help
  • version
  • doc

Is this a regression?

Yes, the previous version in which this bug was not present was: v 12

Description

With Angular 13 i have on Windows and Mac the Problem that the ng:serve command does not stop after i press ctrl + c.
After i press ctrl+c in the Terminal the Angular CLI still produce cli output.

🔬 Minimal Reproduction

npm start
press ctrl+c or command+c
wait a bit and see the console output in the Terminal.

🔥 Exception or Error





🌍 Your Environment




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

Angular CLI: 13.0.2
Node: 16.13.0
Package Manager: yarn 1.22.17
OS: darwin arm64

Angular: 13.0.1
... animations, cdk, common, compiler, compiler-cli, core, forms
... material, platform-browser, platform-browser-dynamic
... platform-server, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1300.2
@angular-devkit/build-angular   13.0.2
@angular-devkit/core            13.0.2
@angular-devkit/schematics      8.3.29
@angular/cli                    13.0.2
@nguniversal/builders           13.0.1
@nguniversal/express-engine     13.0.1
@schematics/angular             13.0.2
rxjs                            7.4.0
typescript                      4.4.4

Anything else relevant?

Activity

  1. alan-agius4 commented on Nov 23, 2021

    @alan-agius4
    Collaborator

    This is related/caused by sindresorhus/ora#156 and unfortunately there is no easy way to address this.

    Note: the build will be cancelled, but it with a delayed.

  2. johannesnormannjensen commented on Nov 24, 2021

    @johannesnormannjensen

    Experiencing the same thing with both build and serve.

    If I try to stop the process with Ctrl + c in phase: setup it looks like the process stopped until it suddenly reaches phase: building

  3. added this to the Backlog milestone on Nov 25, 2021
  4. spock123 commented on Nov 26, 2021

    @spock123

    Same issue here. Sometimes the process doesn't die properly, so builds fail due to an ongoing ngcc process already running. I don't know if this helps but I don't recall this to be an issue in ng12.

  5. Th3CracKed commented on Dec 15, 2021

    @Th3CracKed

    I experienced the same issue with ng serve

  6. danielehrhardt commented on Jun 18, 2022

    @danielehrhardt
    Author

    Still present with Angular 14 and on Mac

  7. mpumford commented on Jun 23, 2022

    @mpumford

    Not specific to windows. Happens with ng serve and ng build on linux as well (Ubuntu 18)

    For a production build the delay can be quite long so this is more than irritating.

  8. self-assigned this
    on Jun 24, 2022
  9. added a commit that references this issue on Jun 27, 2022
    fd359a3
  10. added 2 commits that reference this issue on Jun 27, 2022
    4fcfc37
    694b73d
  11. added 3 commits that reference this issue on Jun 28, 2022
    0ebb81f
    8372d24
    aaaa223
  12. added 2 commits that reference this issue on Jun 28, 2022
    6d47821
    2b96254
  13. angular-automatic-lock-bot commented on Jul 28, 2022

    @angular-automatic-lock-bot

    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.

  14. locked and limited conversation to collaborators on Jul 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions