Skip to content

Conversation

davidmorgan
Copy link
Contributor

For #4127

Changes to make failures more prominent/actionable:

  • move blocks of log output that do not contain errors before the status line; only errors go after the status line
  • remove "log output for" and "on" from the block header, move the filename first so it's " ", and make the filename bold red if the block contains any error
  • make the "E" prefix that indicates an error bold red

And, remove the "deleting declared outputs" warning, it's not actionable.

Copy link

github-actions bot commented Sep 5, 2025

PR Health

Changelog Entry ✔️
Package Changed Files

Changes to files need to be accounted for in their respective changelogs.

This check can be disabled by tagging the PR with skip-changelog-check.

@davidmorgan davidmorgan force-pushed the really-tweak-warnings-errors branch from 6bb1939 to 0ace907 Compare September 5, 2025 08:05
@davidmorgan davidmorgan marked this pull request as ready for review September 5, 2025 08:32
@davidmorgan davidmorgan requested a review from jensjoha September 5, 2025 08:32
var first = true;
for (final line in message.text.split('\n')) {
result.add(
AnsiBufferLine([
if (message.severity == Severity.error) AnsiBuffer.boldRed,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(maybe mostly because of the github interface, I'm not sure): This would read better if message.severity == Severity.error was up with var first, e.g. final isError = message.severity == Severity.error; and then here if (isError) AnsiBuffer.boldRead.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me. Thanks :)

@davidmorgan davidmorgan merged commit d5e9892 into dart-lang:master Sep 5, 2025
18 checks passed
@davidmorgan davidmorgan deleted the really-tweak-warnings-errors branch September 5, 2025 11:13
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

Successfully merging this pull request may close these issues.

2 participants