Skip to content

[6.0] Handle various out-of-bounds diagnostic ranges in default diagnostics formatter (#947) #948

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

Conversation

d-ronnqvist
Copy link
Contributor

… formatter (swiftlang#947)

* Clamp lines to highlight in a diagnostic to the source lines

* Add test about highlight for in-bounds range of a line

* Clamp diagnostic line highlight to the bounds of each source line

rdar://129586253
@d-ronnqvist d-ronnqvist requested a review from franklinsch June 11, 2024 14:26
@d-ronnqvist
Copy link
Contributor Author

@swift-ci please test

@d-ronnqvist d-ronnqvist merged commit daf46af into swiftlang:release/6.0 Jun 12, 2024
@d-ronnqvist d-ronnqvist deleted the duplicate-image-diagnostic-crash-6.0 branch June 12, 2024 12:31
@Kyle-Ye Kyle-Ye linked an issue Jun 12, 2024 that may be closed by this pull request
2 tasks
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.

Duplicated diagnostic causing crash on DefaultDiagnosticConsoleFormatter
2 participants