gpt4 book ai didi

ubuntu - 在 Ubuntu 中启动时 VSCode 崩溃

转载 作者:行者123 更新时间:2023-12-04 18:36:19 25 4
gpt4 key购买 nike

我最近将工作空间更改为 Ubuntu,并且遇到了崩溃问题。
vscode 是由 apt 安装的。它可能会打开几秒钟,然后自动崩溃。
我试图用 code --verbose 来解决这个问题命令。表明

[67802:0311/205929.505928:INFO:CONSOLE(626)] "%cTRACE color: #888 [File Watcher (node.js)] [CHANGED] /home/chou/.config/Code/logs/20210311T205927/telemetry.log", source: file:///usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js (626)
terminate called after throwing an instance of 'char const*'
/dev/fd/3: No such file or directory
Server response:
[67849:0311/205929.809879:ERROR:broker_posix.cc(40)] Recvmsg error: Connection reset by peer (104)
最后一行可能是由 ssh 扩展引起的,所以我从 ~/.vscode/extensions 中手动删除了它。 .
但是问题依然存在,我也试过 --disable-extension标志,但没有任何改变。
我现在可以输入 vscode 的唯一方法是通过 sudo code --usr-data-dir命令。我想知道什么会导致这种令人沮丧的问题。
编辑:
这是 exthost.log 的最后几行文件:
[2021-03-11 22:07:54.814] [exthost] [debug] ProxyResolver#resolveProxy cached https://dc.services.visualstudio.com/api/profiles/AIF-d9b70cd4-b9f9-4d70-929b-a071c400b217/appId DIRECT 
Error: Error for stack trace
at Pe (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:96:3)
at ProxyAgent.addRequest (/usr/share/code/resources/app/node_modules.asar/vscode-proxy-agent/index.js:73:16)
at new ClientRequest (_http_client.js:296:16)
at Object.request (https.js:314:10)
at Object.<anonymous> (/usr/share/code/resources/app/node_modules.asar/agent-base/patch-core.js:23:20)
at Object.<anonymous> (/usr/share/code/resources/app/node_modules.asar/https-proxy-agent/node_modules/agent-base/patch-core.js:25:22)
at /usr/share/code/resources/app/node_modules.asar/socks-proxy-agent/node_modules/agent-base/patch-core.js:23:20
at Object.U [as request] (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:96:4165)
at Function.e.makeRequest (/usr/share/code/resources/app/extensions/github-authentication/dist/extension.js:1:7505)
at Timeout.s [as _onTimeout] (/usr/share/code/resources/app/extensions/github-authentication/dist/extension.js:1:17133)
at listOnTimeout (internal/timers.js:549:17)
at processTimers (internal/timers.js:492:7)
[2021-03-11 22:07:55.351] [exthost] [info] extension host terminating: parent process 82934 does not exist anymore: kill ESRCH (code: ESRCH) (errno: ESRCH)
[2021-03-11 22:07:56.368] [exthost] [info] exiting with code 0
看来这可能是代理解析器的问题。但是我仍然不知道如何修复它......

最佳答案

我遇到了同样的问题。我使用的是 Pop OS 20.04 LTS,Visual Studio Code 在启动后会崩溃。看来问题可能与混合 .snap使用 .deb 安装软件包包裹。这个 github 评论有一个对我有用的解决方案:
(https://github.com/microsoft/vscode/issues/118727#issuecomment-801847011)
我不得不删除 vscodevscode.github-authentication/github.auth来自 Passwords and Keys 的条目应用程序。

关于ubuntu - 在 Ubuntu 中启动时 VSCode 崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66583287/

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