Skip to content

rust-analyzer crashes from tramp lsp-mode #3491

@buzmeg

Description

@buzmeg

Thank you for the bug report

  • I am using the latest version of lsp-mode related packages.
  • I checked FAQ and Troubleshooting sections
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions