vscode-remote-release 和 wsl 2
问题描述:
有没有人已经在 wsl 2 的预发布版本中尝试过 vscode-remote-release
?
Has anyone already tried vscode-remote-release
with the pre release of wsl 2?
我在启动新的 wsl 服务器时收到以下错误:
I am getting the following error when starting a new wsl server:
[2019-06-15 11:14:05.702] Starting VS Code Server inside WSL.
[2019-06-15 11:14:06.526] Launching C:\WINDOWS\System32\wsl.exe bash -c "./scripts/wslServer.sh 15b7c86d86319b187a5ef255c170184a8519c5af insider .vscode-server-insiders " in c:\Users\User Name\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.38.0
[2019-06-15 11:14:07.126] bash: ./scripts/wslServer.sh: No such file or directory
[2019-06-15 11:15:38.680] VS Code Server for WSL failed to start. No messages received for 90s
[2019-06-15 11:15:38.680] For help with startup problems, go to
[2019-06-15 11:15:38.680] https://code.visualstudio.com/docs/remote/troubleshooting#_wsl-tips
答
好像是 wsl2 入口路径问题,尝试在任何文件夹中执行 wsl.如果您的 shell 进入您的 linux 用户主目录,而不是您的 Windows 文件夹路径的/mnt/路径.
It seems wsl2 entry path problem, try execute wsl in any folder. If your shell enter your linux's user home and not the /mnt/ path to your windows's folder path.
目前我发现重启可以暂时解决这个问题
Currently I found reboot can resolve this problem for a while