-
Notifications
You must be signed in to change notification settings - Fork 346
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
Rename Symbol offset error preventing F2 to work in vscode #7161
Comments
Thanks for reporting! I can't seem to reproduce, it might have been flaky, but in those cases we usually don't rename. Are you able to still reproduce? Screencast.from.2025-01-28.11-45-43.mp4 |
I did a quit+import build as I am also getting a red-colored file in the explorer pane even if there are no compile errors in sbt. Now I can't reproduce, unfortunately. But I still have red coloring of the file even if there is no compile errors in sbt but it seems to complain about the colon after object so maybe it start thinking that I'm on Scala 2 or something??? |
(I usually try now to delete all dot-files and target, but I'll wait a bit if you want me to check something else... @tgodzik ) |
We can try to add a new check just in case unless we already do it. |
Seems like an off-by-one bug somewhere... :) |
Describe the bug
The "Rename Symbol" feature does not work then... (But F12 "Goto definition" still works)
Here is a dump of Metals Doctor:
Here is the build.sbt:
https://github.com/reqT/reqT/blob/4.x/build.sbt
Expected behavior
The method name should be properly marked in the rename popup.
Operating system
Linux
Editor/Extension
VS Code
Version of Metals
v1.5.1
Extra context or search terms
No response
The text was updated successfully, but these errors were encountered: