-
-
Notifications
You must be signed in to change notification settings - Fork 890
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
Completion resolve support with textEdit
#4607
Comments
|
Thanks for having a look. After further analysis, the r-a developers decided this was in fact a bug in rust-analyzer: |
There seems to be another bogus issue created: rust-lang/rust-analyzer#18504
and
change, that this part is not really resolved properly in lsp part of Emacs. So, this issue is still technically relevant, but not correctly composed? |
OK. Reopening on that basis. |
To add on top, I think that the OP nails it: for now, one has to remove
from the resolve capabilities to fix the things. Before, r-a responded with both fields despite the capabilities, now it's more spec-compliant, which that causes issues on the client side. |
Note there are two issues here: The first was about automatically importing items. This was reported here: And was then fixed on the r-a side here: So this will work properly with r-a nightly (due to the fix) or in the Rust r-a distributed with Rust 1.82 (because that is before the change was introduced). (If you want to see this problem, test with commit rust-lang/rust-analyzer@950bb83.) The second item is about failing to display the details of method signatures. This is tracked on the lsp-mode side here: And on the r-a side here: This issue is present in r-a nightly and is not fixed by the other change. This is not present in the r-a distributed with Rust 1.82, so you'll need to test with nightly to see the problem. Details for reproducing this result in a clean environment are described here: rust-lang/rust-analyzer#18504 (comment) It's been reported that eglot is not affected by this. I.e., that it continues to show full method signatures. This issue is filed separately to track the general item about specification conformance potentially related to both issues that has been described by @SomeoneToIgnore above. Both these regressions were prompted by the same PR on the r-a side here: |
The resolve for |
Thank you for the bug report
lsp-mode
related packages.M-x lsp-start-plain
Bug description
This PR in rust-analyzer triggered a set of behavior regressions when using Emacs and lsp-mode:
textDocument/completion
if possible rust-lang/rust-analyzer#18167On the r-a side, there is discussion to the effect that lsp-mode (and other editors) may be less spec-conformant than desired. See these comments and related issues:
textEdit
#4607 (comment)This issue is opened in the hope that, in connecting here the experts on each side, that some agreement and resolution may be reached.
cc @jcs090218
Steps to reproduce
N/A.
Expected behavior
N/A.
Which Language Server did you use?
lsp-rust
OS
Linux
Error callstack
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: