Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

rust-analyzer: Failed to write request: Broken pipe (os error 32)

Got this error with rust-analyzer VS Code, although cargo build builds the project without errors or warnings.

rustc version: 1.54.0

I would like to stay on the "stable" rustc version and not shift to "nightly".

like image 659
Thorkil Værge Avatar asked Oct 24 '25 03:10

Thorkil Værge


1 Answers

Update rustc to fix this and ensure that Visual Studio Code uses the correct Rust compiler.

  1. Run rustup update to update rustc
  2. Check version used by rust-analyzer: Ensure that ctrl+p -> Rust Analyzer: Show RA Version shows rust-analyzer version: 183ef048f 2021-11-22 stable, or later.
  3. Run cargo clean to clear obsoleted compiler output
  4. Close all VS Code windows and open them again.

This should fix the issue. If not, have a look here.

like image 125
Thorkil Værge Avatar answered Oct 26 '25 20:10

Thorkil Værge



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!