Open ghostbuster91 opened 11 months ago
Thanks for reporting!
This is a tough case, there is probably a race condition. I've added a check https://github.com/scalameta/metals/pull/5908 so LSP shouldn’t throw, but we will probably need to fallback to InteractiveSemanticdbs
when it gets out of sync.
For now, changing anything else in the renamed file should fix the issue by recalculating semanticdb.
Describe the bug
Full project to reproduce the issue: https://github.com/ghostbuster91/demos/tree/build-server
Video showing the problem: Kooha-2023-11-13-11-09-39.webm
Steps to reproduce:
backend
traitExpected behavior
Trait should be renamed and no issue should occur
Operating system
Linux
Editor/Extension
Nvim (nvim-metals)
Version of Metals
v1.1.0
Extra context or search terms
No response