lsp-mode
lsp-mode copied to clipboard
rust-analyzer crashes from tramp lsp-mode
Thank you for the bug report
- [X] I am using the latest version of
lsp-mode
related packages. - [X] I checked FAQ and Troubleshooting sections
- [X] You may also try reproduce the issue using clean environment using the following command:
M-x lsp-start-plain
Bug description
When attempting to open a file via tramp, the remote rust-analyzer crashes with error:
% cat rust-analyzer-remote-1-stderr
[ERROR rust_analyzer] Unexpected error: expected initialize request, got error: receiving on an empty and disconnected channel
expected initialize request, got error: receiving on an empty and disconnected channel
Steps to reproduce
$ emacs -q -l lsp-start-rust-analyzer.txt /ssh:[email protected]:rust/rs-daplink/src/main.rs
lsp-start-rust-analyzer.txt included below: lsp-start-rust-analyzer.txt
Expected behavior
rust-analyzer not crashing
Which Language Server did you use?
rust-analyzer
OS
Linux
Error callstack
No response
Anything else?
No response
I get the same issue. When I try to troubleshoot by setting lsp-log-io
to t
, the server does not immediately crash. Instead, I get an error LSP :: Error from the Language Server: waiting for cargo metadata or cargo check (Unknown error)
and then it hangs.
Me either with exactly same log reported by @patmryan, and it succeed to connect from time to time. Strange. :thinking:
i'm also having this problem. is there a way around, perhaps running rust-analyzer
locally rather than remotely?
@gcohara, which Emacs version are you on? Also do you use the latest Tramp from elpa as well?
Emacs version 28.1, TRAMP version 2.5.2.28.1
I met the exact same problem.
GNU Emacs 28.1 (build 1, x86_64-apple-darwin21.1.0, NS appkit-2113.00 Version 12.0.1 (Build 21A559)) of 2022-08-29 TRAMP version 2.5.2.28.1
i'm also having this problem.
Same here... intermittently.
GNU Emacs 30.0.50 (built from source), tramp 2.7.0-pre. Arch Linux x86_64