-
-
Notifications
You must be signed in to change notification settings - Fork 364
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
#989 Correct error line and column number #999
Conversation
pos.startLine.orElse(pos.line).getOrElse[Int](0), | ||
pos.startOffset.orElse(pos.offset).getOrElse[Int](0) | ||
pos.startLine.orElse(line).getOrElse[Int](0), | ||
pos.startOffset.orElse(pos.pointer).getOrElse[Int](0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure it might be spacePointer
here.
Also not sure if it starts from 1 or 0. I need to do some testing.
Thanks for taking a look at this @joan38! Just tested it out, and much better! One other thing that I do notice though is that the diagnostic from Mill is as follows:
Whereas both with sbt and with Bloop it's:
It still seems to work fine (I think there is some magic on the LSP client side) to maybe highlight the full symbol, but it'd be better to correctly capture the entire range and not return 15 for both start character and end character. If it helps at all, here is the code sbt uses to get the range from the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
Merging this as it makes BSP error reporting significantly better. I'll open another issue for the open issue with the range end position. |
No description provided.