ITADN

xlings未能检测到环境变量中的vscode问题

#104OpenXGanQAQ 创建于 2025-07-19
bug
X
XGanQAQcommented
### Background | 背景 我在配置xlings的现代cpp学习环境的时候,使用它下载教程项目,它给我安装了一个vscode,但是我本身就已经安装了vscode。 ### Describe | 问题描述 xlings无法检测到环境变量中的vscode,重复安装vscode ### Desktop | 环境 windows 11 , powershell ### Solution by you | 已尝试的方案 确认code的环境变量配置正常的情况下,卸载xlings下载的vscode再重新使用它下载,看看会不会检测到已经有vscode 结果是没能正常检测到,又重复下载了 ```powershell PS C:\Users\24238> Get-Command code CommandType Name Version Source ----------- ---- ------- ------ Application code.cmd 0.0.0.0 C:\Users\24238\AppData\Local\Programs\Microsoft VS Code\bin\code.cmd PS C:\Users\24238> xlings remove code [xlings:xim]: create pm executor for <code> ... --- [package] info name: vscode homepage: https://code.visualstudio.com version: 1.100.1 contributors: https://github.com/microsoft/vscode/graphs/contributors licenses: MIT repo: https://github.com/microsoft/vscode docs: https://code.visualstudio.com/docs Visual Studio Code -> uninstall/remove code? (y/n) y removing target: code, version: 1.100.1 remove [code] from [global] workspace delete shim [code] ... removing target: vscode, version: 1.100.1 remove [vscode] from [global] workspace delete shim [vscode] ... removing desktop shortcut - C:\Users\24238\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Visual Studio Code - [1.100.1].lnk [xlings:xim]: code - removed 反馈 & 交流 | Feedback & Discourse (if encounter any problem, please report it) https://forum.d2learn.org/category/9/xlings https://github.com/d2learn/xlings/issues PS C:\Users\24238> xlings self clean [xlings]: clean xlings tmp files - ok PS C:\Users\24238> xlings install code [xlings:xim]: create pm executor for <code> ... --- [package] info name: vscode homepage: https://code.visualstudio.com version: 1.100.1 contributors: https://github.com/microsoft/vscode/graphs/contributors licenses: MIT repo: https://github.com/microsoft/vscode docs: https://code.visualstudio.com/docs Visual Studio Code -> install code? (y/n) y [xlings:xim]: checking [code] for mutex groups... [xlings]: downloading: https://update.code.visualstudio.com/1.100.1/win32-x64-archive/stable to D:\.xlings_data\xim\stable ################ 10.9%^C终止批处理操作吗(Y/N)? y PS C:\Users\24238> Get-Command code CommandType Name Version Source ----------- ---- ------- ------ Application code.cmd 0.0.0.0 C:\Users\24238\AppData\Local\Programs\Microsoft VS Code\bin\code.cmd ``` ### Additional context | 额外补充
11 条评论