rust-analyzer: Rust-Analyzer suddenly stopped working

Environment:

  • WSL2 running Ubuntu 20.04
  • Vscode 1.46.1
  • RA 0.2.215

Hi there, I’ve been using rust-analyzer for a long time and it suddenly crashed on me after pressing update on vscode. The first thing I did was clean-reinstalling the extension which didn’t work. Then, I clean installed vscode itself. Rust-analyzer still wouldn’t activate.

After some searching, I found out how to enable logging in settings.json, and here’s a picture on what the developer console showed me

image

I tried running /home/kingbri/.vscode-server/data/User/globalStorage/matklad.rust-analyzer/rust-analyzer-linux --version in my terminal and this was the output: -bash: /home/kingbri/.vscode-server/data/User/globalStorage/matklad.rust-analyzer/rust-analyzer-linux: cannot execute binary file: Exec format error

What can I do to fix this issue? Thanks in advance for your help

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 1
  • Comments: 30 (15 by maintainers)

Commits related to this issue

Most upvoted comments

This won’t take a week, we will publish a patch today-or-tomorrow https://github.com/rust-analyzer/rust-analyzer/pull/4989#issuecomment-647668226

I found the problem, we need a hotfix. We do skip the first chunks of the file…