Skip to content

Minor improvements to the new diagnostics formatter #68289

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

Merged
merged 6 commits into from
Sep 5, 2023

Conversation

DougGregor
Copy link
Member

Introduce two minor improvements to the new diagnostics formatter:

  • Don't aggregate across warnings/errors/remarks, because that leads to confusing outputs.
  • Add support for the remark diagnostic severity.

The "grouped diagnostics" feature can handle multiple
warnings/errors/remarks in a single grouping, but doing so isn't very
ergonomic for users because the primary warning/error/remark can be
buried in the source file. As a first step toward improving this
situation, always break up groups at a new warning/error/remark.
@DougGregor
Copy link
Member Author

swiftlang/swift-syntax#2143

@swift-ci please smoke test

@DougGregor
Copy link
Member Author

swiftlang/swift-syntax#2143
swiftlang/swift-format#605

@swift-ci please smoke test macOS

We'll be using the new swift-syntax diagnostic formatter in the near
future, as it is nearly available on all host platforms. So, remove
the C++ formatter that did source-line annotation, falling back to the
"LLVM" style when swift-syntax is not compiled in.
Copy link
Contributor

@ktoso ktoso left a comment

Choose a reason for hiding this comment

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

Oh much nicer! 💯

@DougGregor
Copy link
Member Author

@DougGregor
Copy link
Member Author

@DougGregor DougGregor merged commit 9c7639d into swiftlang:main Sep 5, 2023
@DougGregor DougGregor deleted the swiftsyntax-diags-cleanup branch September 5, 2023 13:44
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