Skip to content

Rust LSP not working #6526

Description

@the-ssd

Summary

lsp for rust doesn't work
this also happens when you run 'rust-analyzer' but not when running 'rls'
error when running rust-analyzer

error: unknown proxy name: 'rust-analyzer'; valid proxy names are 'rustc', 'rustdoc', 'cargo', 'rust-lldb', 'rust-gdb', 'rust-gdbgui', 'rls', 'cargo-clippy', 'clippy-driver', 'cargo-miri', 'rustfmt', 'cargo-fmt'

error is similar to the error in the log

Reproduction Steps

I tried this:

  1. update with rustup
  2. update system

I expected this to happen:
working lsp

Instead, this happened:
only grammar is working

Helix log

~/.cache/helix/helix.log
2023-04-01T09:20:39.025 helix_loader [DEBUG] Located configuration folders: []
2023-04-01T09:20:39.036 helix_view::clipboard [INFO] Using xclip to interact with the system and selection (primary) clipboard
2023-04-01T09:20:39.106 helix_lsp::transport [INFO] -> {"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{"textDocument":{"codeAction":{"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline">
2023-04-01T09:20:39.107 helix_view::editor [DEBUG] editor status: Loaded 1 files.
2023-04-01T09:20:39.108 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-04-01T09:20:39.110 helix_lsp::transport [ERROR] err <- "error: unknown proxy name: 'rust-analyzer'; valid proxy names are 'rustc', 'rustdoc', 'cargo', 'rust-lldb', 'rust-gdb', 'rust-gdbgui', 'rls', 'cargo-clippy', 'clippy-driver', 'cargo-miri', 'rustfmt', 'cargo-f>
2023-04-01T09:20:39.111 helix_lsp [ERROR] failed to initialize language server: server closed the stream
2023-04-01T09:20:39.111 helix_lsp::transport [ERROR] err: <- StreamClosed
2023-04-01T09:20:39.115 helix_term::application [DEBUG] received editor event: LanguageServerMessage((0, Notification(Notification { jsonrpc: None, method: "exit", params: None })))
2023-04-01T09:20:39.115 helix_view::editor [DEBUG] editor status: Language server exited

Platform

Linux Opensuse

Terminal Emulator

Konsole

Helix Version

helix 22.12

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions