gpt4 book ai didi

visual-studio-code - VS Code Server for WSL 意外关闭

转载 作者:行者123 更新时间:2023-12-03 16:50:32 33 4
gpt4 key购买 nike

我正在尝试使用 VS 代码在 WSL(Ubuntu-18.04 发行版)系统上运行 Python 项目。我安装了 WSL - Remote plugin v0.39.9。运行命令时:

code .

收到错误:

/home/username/.vscode-server/bin/6ab598523be7a800d7f3eb4d92d7ab9a66069390/bin/code: 12: /home/username/.vscode-server/bin/6ab598523be7a800d7f3eb4d92d7ab9a66069390/bin/code: /home/username/.vscode-server/bin/6ab598523be7a800d7f3eb4d92d7ab9a66069390/node: Exec format error



当我在 VS Code 中尝试连接到 WSL 实例时:

Starting VS Code Server inside WSL (Ubuntu-18.04) Extension version: 0.39.9, Windows build: 18362. Multi distro support: enabled. WSL path support: enabled VS Code Server for WSL closed unexpectedly.



这是VS Code的信息:
Version: 1.39.2 (user setup)
Commit: 6ab598523be7a800d7f3eb4d92d7ab9a66069390
Date: 2019-10-15T15:35:18.241Z
Electron: 4.2.10
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Windows_NT x64 10.0.18362

最佳答案

我通过关闭 wsl 解决了这个问题然后在powershell中重新启动它。

wsl --shutdown
wsl

关于visual-studio-code - VS Code Server for WSL 意外关闭,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58720243/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com