无法启动客户端Rust语言服务器 [英] Couldn't start client Rust Language Server
本文介绍了无法启动客户端Rust语言服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图弄清楚如何使用rustc&我的WSL运来的货物.我使用VS Code和Rust(rls)插件,可以编译我的代码,但RLS存在问题:
I'm trying to figure out how to use rustc & cargo from my WSL. I use VS Code and Rust (rls) plugin and can compile my code but there is a problem with RLS:
无法启动客户端Rust语言服务器
Couldn't start client Rust Language Server
Rustup不可用.从 https://www.rustup.rs/
Rustup not available. Install from https://www.rustup.rs/
我该如何解决这个问题?
How i can solve this problem?
推荐答案
这对于使用Ubuntu 20.04的远程SSH环境非常有用.
This worked for me for in a remote SSH environment with Ubuntu 20.04
- 在用户主目录中编辑.profile和.bashrc文件
在.profile中,注释以下行:
In .profile, comment the following line:
export PATH="$HOME/.cargo/bin:$PATH"
在两者中都添加以下行:
In both, add the following line:
[[ ":$PATH:" != *":$HOME/.cargo/bin:"* ]] && PATH="$HOME/.cargo/bin:${PATH}"
- 重新启动.
这篇关于无法启动客户端Rust语言服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文