Visual Studio代码警告:RLS无法为Racer设置RUST_SRC_PATH,因为它无法读取Rust sysroot

时间:2018-02-25 21:43:42

标签: rust visual-studio-code

我正在使用visual studio代码练习生锈程序。

我总是得到以下警告。

warning: RLS could not set RUST_SRC_PATH for Racer because it could not read the Rust sysroot.

Warning screenshot

我该怎么做才能解决此错误?

1 个答案:

答案 0 :(得分:1)

对我来说,有帮助的是将其添加到VS Code settings.json 中(快捷菜单->首选项:打开设置(JSON)或通过菜单)

{
    "rust-client.channel": "stable"
}