【问题标题】:Why does my WSL in vscode terminate with exit code "4294967295"为什么我在 vscode 中的 WSL 以退出代码“4294967295”终止
【发布时间】:2021-04-14 14:59:40
【问题描述】:

我习惯在我的 vscode 中使用 WSL 来用 cpp 编码。

今天我在我的vscode中配置了Go,并在powershell cmd中成功运行。

但是,当我转移到 WSL 时,它以“4294967295”终止。找了很多资源,不知道怎么解决。

这是我在 vscode 中的 settings.json 文件和快照。有人可以帮助我吗?谢谢!

enter image description here enter image description here

【问题讨论】:

  • 请不要包含图片链接;而是将图片中的确切代码发布到您的帖子中,并使用代码格式以获得更好的易读性,因此问题的所有信息都包含在帖子中。

标签: visual-studio-code windows-subsystem-for-linux


【解决方案1】:

而不是terminal.integrated.shell.windows,它用于cmd.exe(在我的例子中)

使用这样的设置:"terminal.external.windowsExec": "wsl.exe"

【讨论】:

    【解决方案2】:

    这可能是因为您的计算机可以找到虚拟机,试试这个:

    DISM /online /disable-feature /featurename:VirtualMachinePlatform /norestart
    DISM /online /disable-feature /featurename:Microsoft-Windows-Subsystem-Linux /norestart
    

    重启,然后:

    DISM /online /enable-feature /featurename:VirtualMachinePlatform /norestart
    DISM /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /norestart
    

    【讨论】:

      猜你喜欢
      • 2020-09-28
      • 2021-07-09
      • 1970-01-01
      • 1970-01-01
      • 2020-10-14
      • 2017-04-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多