Repository navigation
|
I'm trying to setup my development environment for an ESP32, but I'm having issues with rust-analyzer. I've installed the toolchain with When my lsp starts it crashed with this error: I'm using Neovim and it works fine with the stable toolchain. These are the RA settings: settings = {
["rust-analyzer"] = {
checkOnSave = true,
check = {
command = "clippy",
},
},
},Any idea on how to fix/work around this problem? |
Replies: 3 comments 2 replies
|
Hi! I can't really help since I do not use Neovim, but I don't have any issues with RA in VS Code. Here are a few similar issues that might be useful to you: |
|
With some help I found a solution: forcing nvim to use RA from Mason (a plugin to manage LSP servers). I think it was using RA from the stable toolchain before and that was causing the crash. After removing RA component there still was a link to rustup ( |
|
2026 Update: The recent version of rust-analyzer isn't compatible, therefore autocomplete might not work. I was able to "hack" that by using an old version of RA which my package manager shipped. |
With some help I found a solution: forcing nvim to use RA from Mason (a plugin to manage LSP servers).
I think it was using RA from the stable toolchain before and that was causing the crash. After removing RA component there still was a link to rustup (
/usr/bin/rust-analyzer -> /usr/bin/rustup) --I don't know why--. Deleting the link "forced" nvim to use RA from Mason, and "fixed" the problem.