Replies: 2 comments 1 reply
-
Och, I think I know the issue here or at least partly. In we use edit distance to calculate if any tokens moved to adjust the diagnostic position, but this is problematic with code that doesn't tokenize, which is the case with missing "".We should probably improve that within scalaemta and make tokenization more foolproof or at least account for it in Metals itself. I will take a quick look at that. |
Beta Was this translation helpful? Give feedback.
1 reply
-
I see, thank you. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there, I'm trying to revive my attempt at building an editor with metals integration. When editing, I am saving a temporary
.scala
file from which I then get diagnostics. I run into this problem: Say the editor contents isand I delete the last closing quotation marks:
Now instead of getting diagnostics with the corresponding error, I am seeing empty diagnostics followed by a log message about bloop:
What is going wrong here? Why do I first get empty diagnostics, then the logger says "stale bloop error" instead of getting that compile error through LSP?
Beta Was this translation helpful? Give feedback.
All reactions