国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

vscode中 rust-analyzer插件報錯 failed to find any projects in [AbsPathBuf 或者FetchWorkspaceError的解決辦法

這篇具有很好參考價值的文章主要介紹了vscode中 rust-analyzer插件報錯 failed to find any projects in [AbsPathBuf 或者FetchWorkspaceError的解決辦法。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

背景

一般來說,如果vscode打開的是rust項目的根目錄(即目錄下有Cargo.tomlsrc/文件),rust-analyzer插件可以識別到項目。

而如果rust項目只是vscode資源管理器打開的子目錄,則有時會出現failed to find any projects in [AbsPathBuf xxx或者FetchWorkspaceError的報錯,rust-analyzer也無法正常運行,如下圖所示:

rust-analyzer報錯,疑難雜癥,rust,vscode,開發(fā)語言

解決辦法

vscode側邊欄打開rust-analyzer插件,進入擴展設置

rust-analyzer報錯,疑難雜癥,rust,vscode,開發(fā)語言

也可以ctrl+shift+P進入“首選項:工作區(qū)設置”,在上面的輸入欄里輸入@ext:rust-lang.rust-analyzer link

rust-analyzer報錯,疑難雜癥,rust,vscode,開發(fā)語言

然后在"rust-analyzer.linkedProjects"里面寫上項目根目錄的Cargo.toml的絕對地址即可

{
    "rust-analyzer.linkedProjects": [
        "/xxx/xxx/xxx/Cargo.toml"
    ]
}

之后可能會自動下載一些文件,最后解決問題:

rust-analyzer報錯,疑難雜癥,rust,vscode,開發(fā)語言

如果沒有自動更新,可以重啟下vscode。文章來源地址http://www.zghlxwxcb.cn/news/detail-827907.html

到了這里,關于vscode中 rust-analyzer插件報錯 failed to find any projects in [AbsPathBuf 或者FetchWorkspaceError的解決辦法的文章就介紹完了。如果您還想了解更多內容,請在右上角搜索TOY模板網以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網!

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。如若轉載,請注明出處: 如若內容造成侵權/違法違規(guī)/事實不符,請點擊違法舉報進行投訴反饋,一經查實,立即刪除!

領支付寶紅包贊助服務器費用

相關文章

  • vscode遠程調試報錯could not establish connection to xhr failed解決方案

    vscode遠程調試報錯could not establish connection to xhr failed解決方案

    windows系統(tǒng)使用vscode遠程調試插件ssh連接linux服務器時提示報錯 網絡不通或者其他原因導致 ~/.vscode-server/bin/${commit_id} 目錄下的文件 vscode-server-linux-x64.tar.gz 不完整,或者文件為0. 其中commit_id可以在vscode的ssh連接日志中找到,點擊途中箭頭的位置可以看到ssh連接日志。 1. 清理

    2024年02月16日
    瀏覽(54)
  • vite+vue3運行項目報錯failed to load config from ../vite.config.ts / Cannot find module ‘node:path‘

    vite+vue3運行項目報錯failed to load config from ../vite.config.ts / Cannot find module ‘node:path‘

    運行vite+vue3項目時報錯: failed to load config from …/vite.config.ts error when starting dev server: Error: Cannot find module ‘node:path’ Require stack: /Users/list/Downloads/Admin-master/node_modules/vite/dist/node-cjs/publicUtils.cjs 百度了發(fā)現是node版本不夠,于是去升級node到16版本 1.清除npm緩存: 2.安裝node版本管

    2024年02月05日
    瀏覽(37)
  • vscode加載web 視圖,報錯:“Error: Could not register serviceworkers: InvalidstateError: Failed to regist“

    vscode加載web 視圖,報錯:“Error: Could not register serviceworkers: InvalidstateError: Failed to regist“

    1、關閉vscode 2、按WIN + R,輸入cmd,打開終端,然后輸入命令 3、會重啟vscode,就可以正常使用了。

    2024年02月11日
    瀏覽(22)
  • vscode 中由于多個go mod 的報錯:Error loading workspace: gopls was not able to find modules in your workspac

    vscode 中由于多個go mod 的報錯:Error loading workspace: gopls was not able to find modules in your workspac

    在使用go 語言時,由于本人也是新手,對go 包管理相關的歷史演進,版本更迭梳理的還不是很清楚,導致環(huán)境的搭建遇到很多困惱 以下問題:Error loading workspace: gopls was not able to find modules in your workspac … 該報錯為vscode正下方中間可能會出現的一個持續(xù)性的報錯提示,看起來十

    2024年02月15日
    瀏覽(24)
  • VSCode中使用Github Copilot,報錯 GitHub Copilot could not connect to server. Extension activation failed

    在VSCode中使用 Github Copilot 編程確實爽,一開始用就停不下來。 不過有時 Copilot 會莫名失效,出現 GitHub Copilot could not connect to server. Extension activation failed: \\\"connect ETIMEDOUT xxxx\\\"的問題,著實令人抓狂。 參考各種資料,發(fā)現修改hosts文件即可解決。 具體方法是: 進入 C:WindowsSys

    2024年02月10日
    瀏覽(29)
  • es創(chuàng)建索引庫bug。Failed to parse mapping [_doc]: analyzer [ik_smart] has not been configured in mappings

    es創(chuàng)建索引庫bug。Failed to parse mapping [_doc]: analyzer [ik_smart] has not been configured in mappings

    前提: ? ? ? ? ? ? ? ? 出現這個bug是因為在Linux端使用docker-compose 部署好es后沒有在plugins目錄下配置好ik分詞器,導致在es管理開發(fā)工具端,使用帶有ik_smart分詞的配置進行索引庫創(chuàng)建映射導致的bug! ? ? ? ? ? ? 解決方案: ? ? ? ? ? ? ? ? 在Linux端的es部署目錄下創(chuàng)建plugins配件

    2024年02月04日
    瀏覽(20)
  • (vopt-7063) Failed to find ‘glbl‘ in hierarchical name 問題解決

    使用ISE或者vivado調用modelsim/questasim進行仿真;或者不使用集成環(huán)境,單獨在modelsim/questasim編譯庫后進行仿真 在仿真前已經將glbl.v編譯到work庫中,仿真時輸入命令 vsim -voptargs=+acc work.sys_top -L unisim -L secureip -t ps -Lf unisim_ver 仿真報錯: (vopt-7063) Failed to find ‘glbl’ in hierarchical n

    2024年02月15日
    瀏覽(21)
  • .net core 3.1 出現 HTTP Error 500.31 - ANCM Failed to Find Native Dependencies

    .net core 3.1 出現 HTTP Error 500.31 - ANCM Failed to Find Native Dependencies

    我已經在服務器安裝了dotnet-runtime-3.1.20-win-x64 和dotnet-hosting-3.1.20-win 但部署3.1項目遇到500.13錯誤 HTTP Error 500.31 - ANCM Failed to Find Native Dependencies Common solutions to this issue: The specified version of Microsoft.NetCore.App or Microsoft.AspNetCore.App was not found. Troubleshooting steps: Check the system event log fo

    2024年02月05日
    瀏覽(47)
  • 報錯 unable to find valid certification path to requested target executing

    提示信息: 審核失??!sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target executing POST 。。。 。。。 出現原因 這個問題的根本原因是你安裝JDK時,Javajar 1.8.0_141libext里面缺少了一

    2024年02月03日
    瀏覽(92)
  • vscode在Windows上安裝插件提示錯誤xhr failed

    問題描述: 在Windows下,在vscode里搜索擴展時發(fā)現無法搜索,報如下錯:”Error while fetching extensions. XHR failed“。 問題定位: 在vscode界面下鍵入ctrl+shift+p, 然后輸入: Developer: Toggle Developer Tools 來打開開發(fā)者工具 點擊開發(fā)者工具的console按鈕發(fā)現報錯: ERR_CERT_AUTHORITY_INVALID 該

    2024年01月22日
    瀏覽(22)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領取紅包,優(yōu)惠每天領

二維碼1

領取紅包

二維碼2

領紅包