rust-analyzer
rust-analyzer copied to clipboard
Trouble installing for VS Code on Raspberry Pi
Hi, I recently noticed that the recommended rust extension on VS Code by the community is different than what the editor itself recommends. I have been trying to install rust-analyzer with no success. Here's what I have tried:
- Install directly from within VS Code:
- Extension manager
- Release version: 0.2.853
- Can't find it due to 404 error
- Pre-release version: 0.4.1098 (I think)
- Can't find it due to 404 error
- Release version: 0.2.853
- Manual installation pop from errors above
- Version: 0.2.853
- Able to install but got notified binaries were not available for platform
- Tried using binaries for latest release but didn't what to do
- Version: 0.2.853
- Extension manager
- Indirectly from VS Code extension page
- Downloaded version 0.4.1098
- Platform Linux Arm64
- Manually installed via VSIX
- Got
Failed to execute SERVERPATH --versión
error
- Got
- Downloaded version 0.4.1098
Could you help me troubleshoot the installation? Let me know if you need more details.
You seem to be using VSCodium, which is why installing it directly doesn't work.
Installing the VSIX might work, but I don't understand that error. Does it really say SERVERPATH? It sounds like you manually set the server path in settings.
Thanks for the prompt reply. I'm using VS Code although version 1.66.2, which appears to be the latest for the Pi. The SERVERPATH actually is the path to the server in the extensions folder (~/.vscode/extensions/rust-lang.rust-analyzer-0.4.1098/server/rust-analyzer). It suggests the server binary might be incompatible. Do I replace it with the one in the releases tabs of the repo? Or what other testing do you recommend?
What operating system are you using? Does it have 64-bit support? The output of uname -a
would be helpful.
You can set the rust-analyzer.serverPath
with the result of rustup which nightly rust-analyzer
after installing rust-analyzer through rustup.