【发布时间】:2022-01-06 07:30:05
【问题描述】:
我正在尝试在我的 wsl 中打开 Visual Studio 代码,但我在下面出现此错误。如何解决?
To use Visual Studio Code with the Windows Subsystem for Linux, please install Visual Studio Code in Windows and uninstall the Linux version in WSL. You can then use the `code` command in a WSL terminal just as you would in a normal command prompt.
Do you want to continue anyway? [y/N] y
To no longer see this prompt, start Visual Studio Code with the environment variable DONT_PROMPT_WSL_INSTALL defined.
/usr/share/code/bin/../code: error while loading shared libraries: libxshmfence.so.1: cannot open shared object file: No such file or directory
【问题讨论】:
-
这里一样,基于 ubuntu:20.04 的 docker 镜像。您可以通过 sudo apt install libxshmfence-dev 安装该 dep。就我而言,即使没有显示错误,当我发出代码
时也没有任何反应。
标签: visual-studio-code windows-subsystem-for-linux wsl-2