-
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? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
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: |
Beta Was this translation helpful? Give feedback.
-
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 ( |
Beta Was this translation helpful? Give feedback.
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.