rust-lang / rust-lang/rust-analyzer
Generic lsp-server error
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 16.9k
- Forks
- 2.2k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 72
Description
I am trying to get the goto_def example for the lib/lsp-server to work. After I compile and run the code "starting generic LSP server" shows up in my terminal. I then input the example initialize rpc request, which documented in the file, into the commandline and am getting the following error:
Error: ProtocolError("expected initialize request, got error: receiving on an empty and disconnected channel")
I'm on MacOS v13.6 and using rustc 1.71.1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the goto_def example under lib/lsp-server and the documented initialize RPC request. Reproduce the example on macOS with rustc 1.71.1, then trace why the request receives an empty and disconnected channel. Done means the example accepts the initialize request without the reported ProtocolError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100