【问题标题】:rust-analyzer: Failed to write request: Broken pipe (os error 32)rust-analyzer:写入请求失败:管道损坏(操作系统错误 32)
【发布时间】:2022-07-08 22:52:38
【问题描述】:

rust-analyzer VS Code 出现此错误,尽管cargo build 构建项目时没有错误或警告。

rustc 版本:1.54.0

我想留在“稳定”rustc 版本,转为“夜间”。

【问题讨论】:

    标签: visual-studio-code rust rust-analyzer


    【解决方案1】:

    更新 rustc 以解决此问题并确保 Visual Studio Code 使用正确的 Rust 编译器。

    1. 运行rustup update 更新rustc
    2. 检查rust-analyzer 使用的版本:确保ctrl+p -> Rust Analyzer: Show RA Version 显示rust-analyzer version: 183ef048f 2021-11-22 stable 或更高版本。
    3. 运行 cargo clean 以清除过时的编译器输出
    4. 关闭所有 VS Code 窗口并再次打开它们。

    这应该可以解决问题。如果没有,请查看here

    【讨论】:

      猜你喜欢
      • 2011-07-13
      • 1970-01-01
      • 2011-02-12
      • 2014-04-28
      • 2016-04-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-10-05
      相关资源
      最近更新 更多