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

[SR-11239] Command-line flag to include diagnostic IDs in diagnostics #53640

Closed
beccadax opened this issue Jul 30, 2019 · 1 comment
Closed
Labels
compiler The Swift compiler in itself diagnostic engine Area → compiler → AST: The `DiagnosticEngine` class diagnostics QoI Bug: Diagnostics Quality of Implementation feature A feature request or implementation Frontend Area → compiler: Frontend good first issue Good for newcomers

Comments

@beccadax
Copy link
Contributor

Previous ID SR-11239
Radar None
Original Reporter @beccadax
Type New Feature
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 1
Component/s Compiler
Labels New Feature, DiagnosticsQoI, StarterBug
Assignee owenvoorhees (JIRA)
Priority Medium

md5: 0f5d34d5eb1d987d707170d768f78d03

Issue Description:

It would be nice if you could pass, say, -debug-diagnostic-ids to the compiler to get the diagnostic ID included in each diagnostic. For example:

error: 'wrappedValue' is unavailable: @Published is only available on properties of classes [diag::availability_decl_unavailable_msg]

This would make it easier to work on the compiler—you would immediately know the string to search for when you wanted to find code related to a particular diagnostic.

@harlanhaskins
Copy link
Collaborator

owenvoorhees (JIRA User) fixed this in #26481 Thanks Owen!

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@AnthonyLatsis AnthonyLatsis added feature A feature request or implementation Frontend Area → compiler: Frontend diagnostic engine Area → compiler → AST: The `DiagnosticEngine` class and removed new feature labels Feb 4, 2023
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler The Swift compiler in itself diagnostic engine Area → compiler → AST: The `DiagnosticEngine` class diagnostics QoI Bug: Diagnostics Quality of Implementation feature A feature request or implementation Frontend Area → compiler: Frontend good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants