自从最新更新(VSCode 1.89.1)以来,Pty主机问题导致SSH和远程开发功能失效,

kr98yfug  于 6个月前  发布在  Vscode
关注(0)|答案(2)|浏览(71)

Bug

自从最新更新以来,由于SSH连接无法成功建立和维护,所有远程开发功能都已失效。
查看Remote - SSH通道输出,发现以下错误日志:

[11:16:34.262] [server] Node.js v18.18.2
[11:16:34.262] [server] IPC "Pty Host" crashed with exit code 1 and signal null
[11:16:34.263] [server] [11:16:34] ptyHost terminated unexpectedly with code 1, giving up
[11:16:34.381] [server] node:internal/modules/cjs/loader:1080
[11:16:34.381] [server]   throw err;
[11:16:34.381] [server]   ^
[11:16:34.381] [server] 
[11:16:34.381] [server] Error: Cannot find module './bootstrap'
[11:16:34.381] [server] Require stack:
[11:16:34.381] [server] - /u/jpl/.vscode-server/cli/servers/Stable-dc96b837cf6bb4af9cd736aa3af08cf8279f7685/server/out/bootstrap-fork.js
[11:16:34.382] [server]     at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
[11:16:34.382] [server]     at Module._load (node:internal/modules/cjs/loader:922:27)
[11:16:34.382] [server]     at Module.require (node:internal/modules/cjs/loader:1143:19)
[11:16:34.382] [server]     at require (node:internal/modules/cjs/helpers:119:18)
[11:16:34.382] [server]     at Object.<anonymous> (/u/jpl/.vscode-server/cli/servers/Stable-dc96b837cf6bb4af9cd736aa3af08cf8279f7685/server/out/bootstrap-fork.js:1:124)
[11:16:34.382] [server]     at Module._compile (node:internal/modules/cjs/loader:1256:14)
[11:16:34.382] [server]     at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
[11:16:34.382] [server]     at Module.load (node:internal/modules/cjs/loader:1119:32)
[11:16:34.382] [server]     at Module._load (node:internal/modules/cjs/loader:960:12)
[11:16:34.382] [server]     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:86:12) {
[11:16:34.383] [server]   code: 'MODULE_NOT_FOUND',
[11:16:34.383] [server]   requireStack: [
[11:16:34.383] [server]     '/u/jpl/.vscode-server/cli/servers/Stable-dc96b837cf6bb4af9cd736aa3af08cf8279f7685/server/out/bootstrap-fork.js'
[11:16:34.383] [server]   ]
[11:16:34.383] [server] }
[11:16:34.383] [server] 
[11:16:34.383] [server] Node.js v18.18.2
[11:16:34.383] [server] IPC "Pty Host" crashed with exit code 1 and signal null
[11:16:34.384] [server] [11:16:34] ptyHost terminated unexpectedly with code 1, giving up

VS Code版本:Code 1.89.1 ( dc96b83 , 2024-05-07T05:14:32.757Z)
操作系统版本:Darwin arm64 23.4.0
模式:
远程操作系统版本:Linux x64 4.18.0-513.18.1.el8_9.x86_64
系统信息
| 项目 | 值 |
| ------ | ------ |
| CPUs | Apple M1 (8 x 24) |
| GPU状态 | 2d_canvas:启用canvas_oop_rasterization:启用_ondirect_rendering_display_compositor:禁用_off_okgpu_compositing:启用multiple_raster_threads:启用_onopengl:启用_onrasterization:启用raw_draw:禁用_off_okskia_graphite:禁用_off视频解码:启用视频编码:启用webgl:启用webgl2:启用webgpu:启用 |
| 平均负载 | 2, 1, 1 |
| 内存(系统) | 16.00GB (0.53GB free) |
| 进程参数 | --crash-reporter-id 5b2d6e94-4e94-417c-84b3-f565669d8b77 |
| 屏幕阅读器 | 无 |
| VM | 0% |
| 项目 | 值 |
| ------ | ------ |
| 远程 | SSH: binfo04 |
| 操作系统 | Linux x64 4.18.0-513.18.1.el8_9.x86_64 |
| CPUs | Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz (12 x 3200) |
| 内存(系统) | 62.30GB (60.12GB free) |
| VM | 0% |扩展名(28)
| 扩展名 | 作者(省略) | 版本 |
| ------ | ------ | ------------ |
| auto-rename-tag | for | 0.1.10 |
| jupyter-keymap | ms- | 1.1.2 |
| remote-containers | ms- | 0.362.0 |
| remote-ssh | ms- | 0.110.1 |
| remote-ssh-edit | ms- | 0.86.0 |
| remote-wsl | ms- | 0.88.2 |
| vscode-remote-extensionpack | ms- | 0.25.0 |
| remote-explorer | ms- | 0.4.3 |
| remote-server | ms- | 1.5.1 |
| mako | tom | 0.2.0 |
| vscode-todo-highlight | way | 1.0.5 |
| ruff | cha | 2024.20.0 |
| vscode-markdownlint | Dav

cx6n0qe3

cx6n0qe31#

附录:
我直接在远程站点的Home目录下删除了整个.vscode-server文件夹,并重新启动了本地的VSCode。它继续安装了vscode-server,一切似乎又恢复正常了。
如果其他人也遇到同样的问题,可以尝试这个方法。

y3bcpkx1

y3bcpkx12#

感谢@jplaverdure,这对我有用。

相关问题