0
点赞
收藏
分享

微信扫一扫

动手学强化学习 第 18 章 离线强化学习 训练代码

一叶随风_c94d 2024-08-02 阅读 33
  1. vscode 一直卡在 fetching metadata 阶段

  2. 出现报错 Blocking waiting for file lock on package cache

  3. 出现报错 proc macro command not expanded: No proc-macros present for crate rust-analyzer(unresolved-proc-macro)

  4. 出现报错 ERROR FetchBuildDataError: error: the --keep-going flag is unstable, and only available on the nightly channel of Cargo, but this is the stable channel See https://doc.xxxx-xxxx.org/book/appendix-07-nightly-rust.html for more information about Rust release channels. See https://xxxx.com/rust-lang/cargo/issues/10496 for more information about the --keep-going flag.

配置国内源

  • 参考文章 https://blog.zyxm.top/archives/rust-proxy-turbo

出现 1、2 可以尝试下述方法:

删除cargo的缓存

rm -rf ~/.cargo/.package-cache

执行 cargo metadata

重启 VSCode

出现 3、4 可以尝试下述方法:

尝试更新Rust版本

  • rustup --version 查看rustup版本

  • rustup toolchain list 查看已安装的版本

  • rustup default 【指定版本的名称】 切换到指定版本要更新Rust,可以使用以下命令:4

  • rustup update 升级所有安装的版本

  • rustup install stable 安装最新的稳定版

  • rustup install beta 安装最新的测试版

  • rustup install nightly 安装最新的每日构建版

重启 VSCode

原文地址

解决rust-analyzer加载时间过长

解决rust-analyzer加载时间过长(备用)

举报

相关推荐

0 条评论