rust-analyzer icon indicating copy to clipboard operation
rust-analyzer copied to clipboard

Trouble installing for VS Code on Raspberry Pi

Open darg2012 opened this issue 2 years ago • 4 comments

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
    • 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
  • 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

Could you help me troubleshoot the installation? Let me know if you need more details.

darg2012 avatar Jun 20 '22 19:06 darg2012

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.

lnicola avatar Jun 20 '22 19:06 lnicola

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?

darg2012 avatar Jun 23 '22 00:06 darg2012

What operating system are you using? Does it have 64-bit support? The output of uname -a would be helpful.

jonas-schievink avatar Jul 27 '22 17:07 jonas-schievink

You can set the rust-analyzer.serverPath with the result of rustup which nightly rust-analyzer after installing rust-analyzer through rustup.

bjorn3 avatar Jul 27 '22 17:07 bjorn3