Skip to content
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

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

Closed
axos88 opened this issue Aug 20, 2023 · 9 comments · Fixed by #27018
Closed

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

axos88 opened this issue Aug 20, 2023 · 9 comments · Fixed by #27018
Labels
area: @angular/cli feature: insufficient votes Label to add when the not a sufficient number of votes or comments from unique authors feature Issue that requests a new feature

Comments

@axos88
Copy link

axos88 commented Aug 20, 2023

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

@alan-agius4 alan-agius4 added feature Issue that requests a new feature area: @angular/cli labels Sep 22, 2023
@angular-robot angular-robot bot added the feature: votes required Feature request which is currently still in the voting phase label Sep 22, 2023
@angular-robot
Copy link
Contributor

angular-robot bot commented Sep 22, 2023

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.

Copy link
Contributor

angular-robot bot commented Nov 1, 2023

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.

@angular-robot angular-robot bot removed the feature: votes required Feature request which is currently still in the voting phase label Nov 20, 2023
Copy link
Contributor

angular-robot bot commented Nov 20, 2023

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.

@angular-robot angular-robot bot added the feature: insufficient votes Label to add when the not a sufficient number of votes or comments from unique authors label Nov 20, 2023
@marvhen
Copy link

marvhen commented Nov 25, 2023

Here is my upvote for this.

@alan-agius4
Copy link
Collaborator

alan-agius4 commented Feb 1, 2024

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

@marvhen
Copy link

marvhen commented Feb 1, 2024

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

@alan-agius4
Copy link
Collaborator

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

@marvhen
Copy link

marvhen commented Feb 1, 2024

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.

@alan-agius4 alan-agius4 reopened this Feb 1, 2024
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Feb 1, 2024
…cly cleaning the terminal screen during rebuilds

When setting `"clearScreen": true` to the appliction builder during rebuilds the terminimal screen will be cleaned.

```json
{
  "projects": {
    "my-app": {
      "projectType": "application",
      "root": "",
      "sourceRoot": "src",
      "architect": {
        "build": {
          "builder": "@angular-devkit/build-angular:application",
          "options": {
            "clearScreen": true
          }
        }
      }
    }
  }
}
```

Closes angular#25699
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Feb 1, 2024
…cally cleaning the terminal screen during rebuilds

When setting `"clearScreen": true` to the appliction builder during rebuilds the terminimal screen will be cleaned.

```json
{
  "projects": {
    "my-app": {
      "projectType": "application",
      "root": "",
      "sourceRoot": "src",
      "architect": {
        "build": {
          "builder": "@angular-devkit/build-angular:application",
          "options": {
            "clearScreen": true
          }
        }
      }
    }
  }
}
```

Closes angular#25699
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Feb 1, 2024
…cally cleaning the terminal screen during rebuilds

When setting `"clearScreen": true` to the appliction builder during rebuilds the terminimal screen will be cleaned.

```json
{
  "projects": {
    "my-app": {
      "projectType": "application",
      "root": "",
      "sourceRoot": "src",
      "architect": {
        "build": {
          "builder": "@angular-devkit/build-angular:application",
          "options": {
            "clearScreen": true
          }
        }
      }
    }
  }
}
```

Closes angular#25699
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Feb 1, 2024
…cally cleaning the terminal screen during rebuilds

When setting `"clearScreen": true` to the appliction builder during rebuilds the terminimal screen will be cleaned.

```json
{
  "projects": {
    "my-app": {
      "projectType": "application",
      "root": "",
      "sourceRoot": "src",
      "architect": {
        "build": {
          "builder": "@angular-devkit/build-angular:application",
          "options": {
            "clearScreen": true
          }
        }
      }
    }
  }
}
```

Closes angular#25699
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Feb 1, 2024
…cally cleaning the terminal screen during rebuilds

When setting `"clearScreen": true` to the appliction builder during rebuilds the terminimal screen will be cleaned.

```json
{
  "projects": {
    "my-app": {
      "projectType": "application",
      "root": "",
      "sourceRoot": "src",
      "architect": {
        "build": {
          "builder": "@angular-devkit/build-angular:application",
          "options": {
            "clearScreen": true
          }
        }
      }
    }
  }
}
```

Closes angular#25699
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Feb 2, 2024
…cally cleaning the terminal screen during rebuilds

When setting `"clearScreen": true` to the appliction builder during rebuilds the terminimal screen will be cleaned.

```json
{
  "projects": {
    "my-app": {
      "projectType": "application",
      "root": "",
      "sourceRoot": "src",
      "architect": {
        "build": {
          "builder": "@angular-devkit/build-angular:application",
          "options": {
            "clearScreen": true
          }
        }
      }
    }
  }
}
```

Closes angular#25699
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Feb 2, 2024
…cally cleaning the terminal screen during rebuilds

When setting `"clearScreen": true` to the appliction builder during rebuilds the terminimal screen will be cleaned.

```json
{
  "projects": {
    "my-app": {
      "projectType": "application",
      "root": "",
      "sourceRoot": "src",
      "architect": {
        "build": {
          "builder": "@angular-devkit/build-angular:application",
          "options": {
            "clearScreen": true
          }
        }
      }
    }
  }
}
```

Closes angular#25699
alan-agius4 added a commit that referenced this issue Feb 2, 2024
…cally cleaning the terminal screen during rebuilds

When setting `"clearScreen": true` to the appliction builder during rebuilds the terminimal screen will be cleaned.

```json
{
  "projects": {
    "my-app": {
      "projectType": "application",
      "root": "",
      "sourceRoot": "src",
      "architect": {
        "build": {
          "builder": "@angular-devkit/build-angular:application",
          "options": {
            "clearScreen": true
          }
        }
      }
    }
  }
}
```

Closes #25699
@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Mar 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: @angular/cli feature: insufficient votes Label to add when the not a sufficient number of votes or comments from unique authors feature Issue that requests a new feature
Projects
None yet
3 participants