-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
Hello,
I'm trying to edit some Rust code on FreeBSD 14.3 on a Lenovo ThinkPad with an amd64 processor using the Helix text editor.
I have my editor configured to use rust-analyzer, which I have installed with rustup component install rust-analyzer. The rust-analyzer binary file is installed in ~/.cargo/bin/rust-analyzer.
My rustc version is 1.90, however, when I check the logfile for Helix, found in ~/.cache/helix/helix.log, I see the following error logs:
2025-08-24T10:23:32.410 helix_lsp::transport [ERROR] rust-analyzer err <- "error: Unknown binary 'rust-analyzer' in official toolchain '1.82.0-x86_64-unknown-freebsd'.\n"
2025-08-24T10:23:32.410 helix_lsp::transport [ERROR] rust-analyzer err: <- StreamClosed
2025-08-24T10:23:32.410 helix_lsp [ERROR] failed to initialize language server: server closed the stream
2025-08-24T10:25:09.062 helix_lsp::transport [ERROR] rust-analyzer err <- "error: Unknown binary 'rust-analyzer' in official toolchain '1.82.0-x86_64-unknown-freebsd'.\n"
2025-08-24T10:25:09.063 helix_lsp::transport [ERROR] rust-analyzer err: <- StreamClosed
2025-08-24T10:25:09.063 helix_lsp [ERROR] failed to initialize language server: server closed the stream
2025-08-24T10:28:01.482 helix_lsp::transport [ERROR] rust-analyzer err <- "error: Unknown binary 'rust-analyzer' in official toolchain '1.82.0-x86_64-unknown-freebsd'.\n"
2025-08-24T10:28:01.483 helix_lsp [ERROR] failed to initialize language server: server closed the stream
2025-08-24T10:28:01.483 helix_lsp::transport [ERROR] rust-analyzer err: <- StreamClosed
Maybe there's an issue with the versions?
I tried rustup component remove rust-analyzer followed by rustup component add rust-analyzer, but the problem persists.
There is a rust-analyzer.core file in the project directory, which is a super long file that is binary, so it seems like rust-analyzer might be crashing for some reason?