Skip to content

[Diagnostic formatter] Add ":<line>" to filename header. #1402

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 1 commit into from
Mar 10, 2023

Conversation

DougGregor
Copy link
Member

When printing the filename header for diagnostics, also include the line at which the displqy starts using the standard :<line number> format, which is recognized by various tools to quickly go to that source file and line.

Fixes #1385.

When printing the filename header for diagnostics, also include the
line at which the displqy starts using the standard `:<line number>`
format, which is recognized by various tools to quickly go to that
source file and line.

Fixes swiftlang#1385.
@DougGregor DougGregor requested a review from ahoppen as a code owner March 10, 2023 05:29
@DougGregor
Copy link
Member Author

@swift-ci please test

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.

Sweet, thanks!

@ktoso
Copy link
Contributor

ktoso commented Mar 10, 2023

Thinking about this some more i think we can do even better, though this already is an improvement so let's merge :)
I'll follow up with some ideas soon 👍

@DougGregor DougGregor merged commit 024200f into swiftlang:main Mar 10, 2023
@DougGregor DougGregor deleted the diag-formatter-line-number branch March 10, 2023 07: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.

Swift error reporting style removed complete path:line:col information
2 participants