-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 on multiple files failing with latest stable #6654
Comments
Confirming on Ubuntu 20.10 with VS Code (stable). |
Also happens on current nightly, can also confirm that the previous stable release doesn't trigger this problem(VsCode). It instead properly opens all edited files with the edits applied. #6566 touched the lsp protocol stuff last week, especially the SnippetTextDocumentEdit and has some renaming things in it. I wonder if this causes the problems somehow? There was also a follow-up PR this week #6619 but that did not fix this as it is still reproducible for me on nightly though this also doesn't seem to touch anything relevant anyways. |
I will take a look this weekend when I have some time. It's most likely something in gluon-lang/lsp-types#186. Can someone grab a trace during a rename so we can see the params and response? |
There you go! And the error for that rename
|
FYI I can reproduce this. |
The new |
With 2020-11-23 rust analyzer stable release, the rename of an element with references on multiple files is failing
I have to open the files of all references before calling the rename
I though it was a client error on coc-rust-analyzer: fannheyward/coc-rust-analyzer#482
But testing it on vscode I receive a similar error
Steps to reproduce:
Opening each file manually, then the rename works
Tested on:
Os: macOS Catalina and manjaro-linux
Clients: vscode with rust-analyzer plugin, neovim with coc-rust-anlyzer
The text was updated successfully, but these errors were encountered: