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

Translate java error positions into lines+columns #14

Closed
wants to merge 1 commit into from
Closed

Translate java error positions into lines+columns #14

wants to merge 1 commit into from

Conversation

Arthurm1
Copy link

Java errors/warnings currently have a single line number and file based start/end position info.
Bloop+Metals+VSCode requires start/end line + start/end column info to highlight correctly.

This PR translates the current info into the start/end line + start/end column info.

I've put in a few tests - I doubt I've covered all possibilities but currently java errors are just highlighted at a single line number with column zero so this should be better than that.

I dumped the reflection stuff because it was dumped here and made it easier for me - not sure if that was a good idea.

Is this the right place to submit the PR or should I be working against sbt/zinc what with scalacenter/bloop#1383?

Fixes scalacenter/bloop#1389

@tgodzik
Copy link

tgodzik commented Nov 2, 2020

@Arthurm1 I think this would be better to PR into sbt/zinc to get it properly reviewed. We can try to port it here afterwards or maybe we will be able to do scalacenter/bloop#1383 ?

@Arthurm1 Arthurm1 closed this Nov 15, 2020
@Arthurm1 Arthurm1 deleted the java_error_positioning branch November 15, 2020 14:53
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.

Java errors/warnings have no column position info
2 participants