如图 安装插件后就出现这个标识 解决办法 找了许多教程,我整理一下成功的经验 打开设置 搜索rust,打开setting.json 3.输入Cargo.toml的绝对路径,保存Ctrl+s就行了 不过注意地址的斜杠,还有地址要用双引号。
Rust analyzer recently started to give me the error dialog "rust-analyzer failed to discover workspace" for non-rust projects on macOS. I have the Visual Studio Code rust-analyzer extension installed because I like rust. But rust is not the only thing I use vscode for. Recently, on non-ru...
这几天学习RUST,刚刚起步就遇到了依赖库的问题,现象比较好描述,程序不加依赖库在VSCODE里编辑、编译,RUST analyzer都很正常,但一加入新的依赖,VS立即就报错了,同时rust build也出现阻塞提醒。图片没保留就不贴出来了,原来以为应该很简单,估计遇到问题的不至我一个,网上搜了半天,结果 发现大家描述的和解决的方法都...
后来仔细观察了报错内容,是无法找到Rust工程. 可见它只在我们当前的路径~/App下寻找这个工程.把鼠标放到左下角的红色报错上,显示如下内容: Failed to discover workspace. Consider adding the `Cargo.toml` of the workspace to the [`linkedProjects`]([https://rust-analyzer.github.io/manual.html#rust-analyz...
rust-analyzer failed to discover workspace 我知道问题的原因是我在VSCode中加载了Tauri项目作为我的工作区,该项目在其项目根中没有Cargo.toml,但在Rust-related sub-directory src-tauri中。我有没有办法告诉插件它应该引用这个sub-directory src-tauri作为Cargo.toml?解决方法是每次我触摸Rust代码时都将工作区切换...
rust-analyzer failed to discover workspace 我知道造成这个问题的原因是我在VSCode中将Tauri项目作为我的工作区加载,它的项目根中没有Cargo.toml,而是在与锈蚀相关的子目录src-tauri中。有什么方法可以告诉插件,它应该引用这个子目录src-tau 浏览16提问于2022-11-16得票数 0 回答已采纳 1回答 如何解决使用vscode时...
We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Reseting focus {...
Tauri - 用 Web 前端构建更小/快/安全的桌面应用程序框架。提供了许多前端初始化框架模板。
toml文件?rust-analyzer需要一个Cargo.toml来检测工作区。您可以使用cargo创建一个新的rust项目:...
您可以在VSCode中使用rust-analyzer.linkedProjects设定。它会取得指向Cargo.toml档案的路径清单。尝试将此...