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

Fix forwarding Java diagnostics through BSP #7142

Merged
merged 3 commits into from Feb 6, 2023
Merged

Conversation

adpi2
Copy link
Member

@adpi2 adpi2 commented Jan 27, 2023

Fix #7099

The fix is to forward the diagnostics that have no pointers. To do so I re-implemented the logic I found in Bloop.

Java diagnostics don't have a pointer but we should report them.
Copied implementation from Bloop to translate the position of an
xsbti.Problem to a BSP range.
Generate BSP ids automatically
@adpi2 adpi2 requested a review from eed3si9n January 27, 2023 11:13
Copy link
Contributor

@ckipp01 ckipp01 left a comment

Choose a reason for hiding this comment

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

Thanks for tackling this @adpi2!

Copy link
Member

@eed3si9n eed3si9n left a comment

Choose a reason for hiding this comment

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

Thanks, @adpi2!

@adpi2 adpi2 merged commit 78f9b31 into sbt:1.9.x Feb 6, 2023
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.

BSP Diagnostics not reported for Java files
3 participants