每当我试图打上<代码>代码时,我就有了这一信息。
/mnt/c/Users/jerom/.vscode/extensions/ms-vscode-remote.remote-wsl-0.63.13/scripts/wslCode.sh: 69: /home/jerome/.vscode-server-server/bin/f80445acd5a3dadef24aa209168452a3d97cc326/bin/code: not found
谁能帮助我?
预 收
我刚才在WSL2 Kali问题上也存在同样的问题。 我在这里尝试了一切:https://github.com/microsoft/vscode-remote-release/issues/2962。
我的问题是《家庭法典》不是在加里的一条路上。 这里我是如何确定:
echo $PATH
# Confirm PATH is missing this:
/mnt/c/Users/wcd/AppData/Local/Programs/Microsoft VS Code/bin/
# Confirm VS Code s location then export:
export PATH=$PATH:"/mnt/c/Users/wcd/AppData/Local/Programs/Microsoft VS Code/bin/"
# It s temporarily added to path...
echo $PATH
# This should now trigger VS Code Server install,
# then open ~/ in VS Code.
code .
# If above works, make it permanent:
echo export PATH=$PATH:"/mnt/c/Users/wcd/AppData/Local/Programs/Microsoft VS Code/bin/" >> ~/.bashrc
# Restart shell + test
exec "$SHELL"
code .
固定
视窗户开放式VS码
开放延期,然后搜索WSL
它应该说,延期需要重新载荷——要走下去并重载。
这应迫使对法典进行另一升级,此时应启动。
我通过在行政模式中打开窗户并打上以下指挥,解决这一问题:
wsl --update
接着,我把这一指挥归类为武力重新启动民族解放军,所有行动都已完成。
wsl --shutdown
如果你把Windows PATH从WSL上解脱出来,也会出现这种情况。 我的《安全法》做了罚款,然后,当我通过编辑/修改<条码>/etc/wsl.conf文档和插入<条码>>>(环形] app=假条码>参数)时,<条码>指示停止工作。
The ek1n8 solution solves my problem, addind the export manually to the WSL Path:
export PATH=$PATH:"/mnt/c/Users/%USERNAME%/AppData/Local/Programs/Microsoft VS Code/bin"
我在试图出口我老的轮椅,把整个项目移至使用新 dis的雕像时,也存在同样的问题。
I able to run the code .
on root , but when i switch to my name then it doesn t work, I guess is WSL PATH problem.
我并不真正熟悉这个轴心,但以下形象可能更容易理解我所说的话。
当使用<代码>echo PATH时,用斜线对根基和我的账户进行比较,同时注意到科索沃统计局的代码目录仅扎根,而不是我的账户。
因此,i use export PATH=$PATH:"/mnt/c/Users/ricso/AppData/ local/Programs/Microsoft VS Code/bin"
,将VS Code条道路添加到我的账户*和.
。
But the code .
will not be able to run again if you restart the wsl, so we need to put in to bashrc.
But when i try to update my account s* PATH using
echo "PATH=$PATH:/mnt/c/Users/ricso/AppData/Local/Programs/Microsoft VS Code/bin" >> ~/.bashrc
and restart the wsl to login my account, i notice an error msg popup when run the code .
cannot create /tmp/remote-wsl-loc.txt: Permission denied
And i found this. https://github.com/microsoft/vscode-remote-release/issues/5389
Seem they only giving the workaround for now and hopefully can fix it soon.
* 上文已宣布:该守则需要由您负责,而不是由根基来实施。
** 用于编辑工作,而不是使用呼声和“超大”;在文件上写字,如果你在轮椅上有密码接入,也可使用<代码>~/bashrc更新/编辑。
对我来说,把双向前进足以:
export PATH=$PATH:"/mnt/c/Users/%USERNAME%/AppData/Local/Programs/Microsoft VS Code/bin"
Try these 5 simple steps:
wsl --shutdown
code
command, typing on PowerShell the following command wsl ~ -u MyUser
code .
on the batch terminal or specify the whole path code ./myapps/hello-world-app
For me it was wsl using the wrong container:
wsl --list -v
NAME STATE VERSION
* docker-desktop-data Stopped 2
Ubuntu Running 2
页: 1
wsl --list -v
NAME STATE VERSION
* Ubuntu Running 2
docker-desktop-data Stopped 2
解决该问题
我在建立了世界女权运动并在新计算机上打上了密码,然后才处理这个问题。
为我工作的解决办法是:从窗户/街区开放。 一旦我回到太平洋建筑工程公司(PATH)的变量看来是正确的,而世界渔业组织发射代码则按预期运作。
Go to VS code on Windows, extensions -> WSL, install it. Then restart the WSL subsystem and will work.
I found another solution.
On my machine, Visual Studio Code had been installed by an Admin for all users, and I found that not only was code .
not available within my WSL environment, but commands like Dev Container: Reopen in Container
failed to work as well.
安装了《视觉演播室法》的私人版本(这是正常的违约)。
$ which code
/mnt/c/Users/bearps/AppData/Local/Programs/Microsoft VS Code/bin/code
检查你的情况,立即开张电机。
PS> get-command code
CommandType Name Version Source
----------- ---- ------- ------
Application code.cmd 0.0.0.0 C:UsersearpsAppDataLocalProgramsMicroso...
如所示地点在<代码>C:Program files或C:Program files (x<86)/code>下,试图改用当地安装。
what worked for me was :
wsl --shutdown
之后
wsl --restart
you just need to add .bashrc file with: export PATH=$PATH:"/mnt/c/Users//AppData/Local/Programs/Microsoft VS Code/bin"
对于正在使用Insiders版本(且无固定版本)的人,请使用指令code
。
If you wish to use just code .
, go to the win folder:
Users:userprofileAppDataLocalProgramsMicrosoft VS Code Insidersin
and clone the file code-insiders
, renaiming to code
What worked for me was:
rm -rf ~/.vscode-server/data
Tri。 我认为,我失去了努力确定一些一揽子计划。 审判
rm -rf ~/.vscode-server/
wsl --shutdown
在VSCode重新铺设我的WSL花板。 恢复为我工作的真正结果是
wsl --update
在我的案件中,世界女权运动的连接是有效的,但在篮子内没有军法指挥。 错误
run-detectors: unable to find an interpreter for /mnt/c/Users/myuser/AppData/Local/Programs/Microsoft VS Code/Code.exe
I was using the Mamba package manager, and VSCode was in the path, but it didn t work. After I uninstalled mamba, it worked. I m not sure why.
<>Simply: 该编码与你所期望的目录相同。
Note: You must need to install wsl
extension in your VS Code
Running selection/line in terminal (shift + enter) started creating opening two shells. The first shell runs commands to activate the environment and start python. The second shell runs the python ...
如果你想到,在纽瓦特被点击之后,如何把服务器的辅助功能从javascript文档中打上下面的几页。 你们必须利用吉大港山区开发计划的要求,把服务器的侧端点称作终端点。 ......
目前,开始学习基因图像处理,我希望在民主选举学会之外使用这种图像,使之更容易编码,因为在处理民主选举学会时,没有很好地掌握合成物的错误。 I ......
I have a Visual Studio Code extension I m writing that uses the workspace folder path (File > Open Folder) to determine the base directory to run shell commands from. I can get the path from vscode....
Can t run Visual Studio Code (Windows). This happend a few times now. I suddenly can t save files while coding and VS Code hanging. When stopping the task by Task Manager and start VS Code again I ...
I m trying to learn Rust and installed the Rust extension for VSCode. But I m not seeing auto-completions for any syntax. I d like to call .trim() on String but I get no completion for it. I read that ...
How can we change the background colour in Visual Studio Code?