TypeScript TS服务器致命错误:调试失败,期望值为23,实际值为22

5vf7fwbs  于 4个月前  发布在  TypeScript
关注(0)|答案(4)|浏览(44)

Bug类型: 未知

❗️❗️❗️ 请填写以下部分,以帮助我们诊断问题 ❗️❗️❗️

TypeScript版本: 5.2.2

重现崩溃的步骤

TS服务器日志

❗️ 服务器日志已禁用。为了帮助我们解决类似这样的崩溃问题,请通过设置启用日志记录:

"typescript.tsserver.log": "verbose"

在启用此设置后,未来的崩溃报告将包括服务器日志。

TS服务器错误堆栈

服务器: semantic

Error: Debug Failure. Expected 23 <= 22
    at attachFileToDiagnostic (/home/zhu/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/extensions/node_modules/typescript/lib/tsserver.js:20227:15)
    at attachFileToDiagnostics (/home/zhu/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/extensions/node_modules/typescript/lib/tsserver.js:20239:34)
    at parseSourceFileWorker (/home/zhu/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/extensions/node_modules/typescript/lib/tsserver.js:31027:35)
    at Object.parseSourceFile (/home/zhu/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/extensions/node_modules/typescript/lib/tsserver.js:30849:20)
    at createSourceFile (/home/zhu/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/extensions/node_modules/typescript/lib/tsserver.js:30684:21)
    at createLanguageServiceSourceFile (/home/zhu/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/extensions/node_modules/typescript/lib/tsserver.js:143637:22)
    at acquireOrUpdateDocument (/home/zhu/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/extensions/node_modules/typescript/lib/tsserver.js:134991:26)
    at Object.acquireDocumentWithKey (/home/zhu/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/extensions/node_modules/typescript/lib/tsserver.js:134916:12)
    at getOrCreateSourceFileByPath (/home/zhu/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/extensions/node_modules/typescript/lib/tsserver.js:143973:31)
    at Object.getOrCreateSourceFile (/home/zhu/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/extensions/node_modules/typescript/lib/tsserver.js:143952:14)
    at /home/zhu/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/extensions/node_modules/typescript/lib/tsserver.js:143876:42
    at Object.getSourceFileWithCache [as getSourceFile] (/home/zhu/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/extensions/node_modules/typescript/lib/tsserver.js:119693:24)
    at findSourceFileWorker (/home/zhu/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/extensions/node_modules/typescript/lib/tsserver.js:122097:23)
    at findSourceFile (/home/zhu/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/extensions/node_modules/typescript/lib/tsserver.js:122017:20)
    at /home/zhu/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/extensions/node_modules/typescript/lib/tsserver.js:121966:22
    at getSourceFileFromReferenceWorker (/home/zhu/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/extensions/node_modules/typescript/lib/tsserver.js:121935:26)
    at processSourceFile (/home/zhu/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/extensions/node_modules/typescript/lib/tsserver.js:121964:5)
    at processRootFile (/home/zhu/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/extensions/node_modules/typescript/lib/tsserver.js:121761:5)
    at /home/zhu/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/extensions/node_modules/typescript/lib/tsserver.js:120508:41
    at forEach (/home/zhu/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/extensions/node_modules/typescript/lib/tsserver.js:2352:22)
    at createProgram (/home/zhu/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/extensions/node_modules/typescript/lib/tsserver.js:120508:5)
    at synchronizeHostData (/home/zhu/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/extensions/node_modules/typescript/lib/tsserver.js:143907:15)
    at Object.getProgram (/home/zhu/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/extensions/node_modules/typescript/lib/tsserver.js:143981:5)
    at ConfiguredProject2.updateGraphWorker (/home/zhu/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/extensions/node_modules/typescript/lib/tsserver.js:176966:41)
    at ConfiguredProject2.updateGraph (/home/zhu/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/extensions/node_modules/typescript/lib/tsserver.js:176817:32)
    at ConfiguredProject2.updateGraph (/home/zhu/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/extensions/node_modules/typescript/lib/tsserver.js:178072:24)
    at _ProjectService.createLoadAndUpdateConfiguredProject (/home/zhu/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/extensions/node_modules/typescript/lib/tsserver.js:179691:13)
    at _ProjectService.assignProjectToOpenedScriptInfo (/home/zhu/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/extensions/node_modules/typescript/lib/tsserver.js:180782:26)
    at /home/zhu/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/extensions/node_modules/typescript/lib/tsserver.js:181062:64
    at flatMap (/home/zhu/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/extensions/node_modules/typescript/lib/tsserver.js:2600:17)
    at _ProjectService.applyChangesInOpenFiles (/home/zhu/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/extensions/node_modules/typescript/lib/tsserver.js:181062:24)
    at updateOpen (/home/zhu/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/extensions/node_modules/typescript/lib/tsserver.js:182242:29)
    at /home/zhu/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/extensions/node_modules/typescript/lib/tsserver.js:184838:69
    at IpcIOSession.executeWithRequestId (/home/zhu/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/extensions/node_modules/typescript/lib/tsserver.js:184830:14)
    at IpcIOSession.executeCommand (/home/zhu/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/extensions/node_modules/typescript/lib/tsserver.js:184838:29)
    at IpcIOSession.onMessage (/home/zhu/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/extensions/node_modules/typescript/lib/tsserver.js:184880:51)
    at process.<anonymous> (/home/zhu/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/extensions/node_modules/typescript/lib/tsserver.js:186461:14)
    at process.emit (node:events:513:28)
    at emit (node:internal/child_process:937:14)
    at process.processTicksAndRejections (node:internal/process/task_queues:83:21)

VS Code版本:Code 1.82.2 (abd2f3db4bdb28f9e95536dfa84d8479f1eb312d, 2023-09-14T05:55:25.390Z)
操作系统版本:Windows_NT x64 10.0.19045
模式:
远程操作系统版本:Linux x64 5.10.102.1-microsoft-standard-WSL2
系统信息
| 项目 | 值 |
| ------ | ------ |
| CPUs | AMD A8-7650K Radeon R7, 10 Compute Cores 4C+6G (4 x 3293) |
| GPU状态 | 2d_canvas:启用canvas_oop_rasterization:启用_ondirect_rendering_display_compositor:禁用_off_okgpu_compositing:启用multiple_raster_threads:启用_onopengl:启用_onrasterization:启用raw_draw:禁用_off_okvideo_decode:启用video_encode:启用vulkan:禁用_offwebgl:启用webgl2:启用webgpu:启用 |
| 负载(平均值) | undefined |
| 内存(系统) | 13.98GB (1.97GB可用) |
| 进程参数 | --file-uri vscode-remote://wsl%2Bu20-esp32-c3/home/zhu/esp/esp.code-workspace --crash-reporter-id a7a56cab-0e00-4c9c-8e98-51ca2ca2baed |
| 屏幕阅读器 | 无 |
| VM | 36% |
| 项目 | 值 |
| ------ | ------ |
| 远程 | WSL: U20 |
| OS | Linux x64 5.10.102.1-microsoft-standard-WSL2 |
| CPUs | AMD A8-7650K Radeon R7, 10 Compute Cores 4C+6G (4 x 3294) |
| 内存(系统) | 10.88GB (9.57GB可用) |
| VM | 0% |扩展名(23)
| 作者(省略) | 作者(截断) | 版本号 |
| ------ | ------ | ------------ |
| 书签 | ale | 13.4.1 |
| flutter-snippets | ale | 3.0.0 |
| arm | dan | 1.7.4 |
| kconfig | luv | 1.0.3 |
| debug-tracker-vscode

taor4pac

taor4pac1#

你好,@RyanCavanaugh
我安装了一个名为Wrangler的CLI工具,用于Cloudflare工作者,这有关系吗?

zc0qhyus

zc0qhyus3#

感谢您提出这个问题!看起来您可能正在使用旧版本的VS Code,最新稳定版本是1.82.3。请尝试升级到最新版本并检查此问题是否仍然存在。
快乐编码!

qxgroojn

qxgroojn4#

有趣的堆栈。我们肯定需要一种方法来重现这个过程。

相关问题