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

Limit the amount of printed warnings/errors #1323

Closed
Awjin opened this issue May 21, 2021 · 3 comments
Closed

Limit the amount of printed warnings/errors #1323

Awjin opened this issue May 21, 2021 · 3 comments

Comments

@Awjin
Copy link
Contributor

Awjin commented May 21, 2021

In #1319, an overwhelming number of deprecation warnings were printed to the terminal, forcing the user to end the process.

We should add a ceiling to the number of warnings that get printed to the terminal—100?—that, when surpassed, just prints the remaining count. Something along the lines of:

Warning: This is warning #1.

Warning: This is warning #2.

...

Warning: This is warning #${ceiling}.

${remaining count} more warnings.
@stof
Copy link
Contributor

stof commented May 21, 2021

Rendering the remaining count will be tricky: warnings are rendered during the compilation, not at the end.

For errors, it is impossible to have multiple ones: reaching an error means the end of the compilation.

@Awjin
Copy link
Contributor Author

Awjin commented May 21, 2021

We will also need a way to explicitly enable printing all warnings (e.g. with a --verbose flag).

@tobiasweibel
Copy link

Is there an option to hide all the deprecation warnings for version 1.*? In one of my projects we do have a dependency to bootstrap-sass which probably won't get fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants