Skip to content

ng build/serve --watch should have a switch to clear the screen before each rebuild #25699

Description

@axos88

Command

build, serve

Description

Reviving #21559, as I'd like to see the same thing implemented, to always have a clear view of what is actually an error and what has already been addressed. Without this it's very confusing to scroll back and forth to see where the last batch of errors are starting, and what was the output from the last build.

Description of #21559 below:

When I'm refactoring large code-base i revised folowing process:

i have ng serve running
i do some changes in bulk without save
save all
i stop the process
clear the console
then start the ng serve again
I'm doing this to see in isolation what I break, fixed what are new issues etc. So I can focus only on what is relevant

Describe the solution you'd like

it would be nice to have a switch to run ng serve which would clear console everytime it detects change

Describe alternatives you've considered

Currently I'm doing it manually - stopping the process, clearing console and starting ng serve again

Activity

  1. angular-robot commented on Sep 22, 2023

    @angular-robot
    Contributor

    This feature request is now candidate for our backlog! In the next phase, the community has 60 days to upvote. If the request receives more than 20 upvotes, we'll move it to our consideration list.

    You can find more details about the feature request process in our documentation.

  2. angular-robot commented on Nov 1, 2023

    @angular-robot
    Contributor

    Just a heads up that we kicked off a community voting process for your feature request. There are 20 days until the voting process ends.

    Find more details about Angular's feature request process in our documentation.

  3. angular-robot commented on Nov 20, 2023

    @angular-robot
    Contributor

    Thank you for submitting your feature request! Looks like during the polling process it didn't collect a sufficient number of votes to move to the next stage.

    We want to keep Angular rich and ergonomic and at the same time be mindful about its scope and learning journey. If you think your request could live outside Angular's scope, we'd encourage you to collaborate with the community on publishing it as an open source package.

    You can find more details about the feature request process in our documentation.

  4. marvhen commented on Nov 25, 2023

    @marvhen

    Here is my upvote for this.

  5. alan-agius4 commented on Feb 1, 2024

    @alan-agius4
    Collaborator

    Starting from version 17.1, pressing c followed by Enter will clear the console when using the Vite-based development server.

  6. marvhen commented on Feb 1, 2024

    @marvhen

    @alan-agius4 does c need to be pressed each time we want to clear the console? Or does it tell the cli to clear on each rebuild?

  7. alan-agius4 commented on Feb 1, 2024

    @alan-agius4
    Collaborator

    C+ENTER will need to be pressed everytime you'd want to clear the screen.

  8. marvhen commented on Feb 1, 2024

    @marvhen

    But this is not much different than my current capability. I can already press CTRL+L to clear my screen as needed. The desired behavior is for it to automatically clear each time it begins to rebuild, without the need for user interaction.

  9. added 7 commits that reference this issue on Feb 1, 2024
    6b45af2
    d5981e8
    1441a7e
    6cc799b
    17a0966
    1caaf09
    5e50842
  10. added a commit that references this issue on Feb 2, 2024
    7a12074
  11. angular-automatic-lock-bot commented on Mar 4, 2024

    @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.

  12. locked and limited conversation to collaborators on Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: @angular/clifeatureLabel used to distinguish feature request from other issuesfeature: insufficient votesLabel to add when the not a sufficient number of votes or comments from unique authors

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions