Bug类型: 崩溃
❗️❗️❗️ 请填写以下部分,以帮助我们诊断问题 ❗️❗️❗️
TypeScript版本: 5.3.1-rc
重现崩溃的步骤
TS服务器日志
❗️ 服务器日志已禁用。为了帮助我们解决类似这样的崩溃问题,请通过设置启用日志记录:
"typescript.tsserver.log": "verbose"
启用此设置后,未来的崩溃报告将包括服务器日志。
TS服务器错误堆栈
服务器: syntax
TypeError: Cannot read properties of undefined (reading 'charCount')
at _LineNode.walk (c:\Users\ziron\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:186096:30)
at _LineIndex.edit (c:\Users\ziron\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:185995:17)
at _ScriptVersionCache._getSnapshot (c:\Users\ziron\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:185801:31)
at _ScriptVersionCache.lineOffsetToPosition (c:\Users\ziron\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:185820:17)
at TextStorage.lineOffsetToPosition (c:\Users\ziron\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:175907:22)
at ScriptInfo.lineOffsetToPosition (c:\Users\ziron\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:176228:29)
at c:\Users\ziron\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:182791:41
at mapDefinedIterator (c:\Users\ziron\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:2678:19)
at mapDefinedIterator.next (<anonymous>)
at _ProjectService.applyChangesToFile (c:\Users\ziron\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:181597:16)
at _ProjectService.applyChangesInOpenFiles (c:\Users\ziron\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:181568:14)
at updateOpen (c:\Users\ziron\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:182780:29)
at c:\Users\ziron\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:185382:69
at IpcIOSession.executeWithRequestId (c:\Users\ziron\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:185374:14)
at IpcIOSession.executeCommand (c:\Users\ziron\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:185382:29)
at IpcIOSession.onMessage (c:\Users\ziron\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:185424:51)
at process.<anonymous> (c:\Users\ziron\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:187006: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 - Insiders 1.85.0-insider (345c8d0927402d41f42402411d856eeec4013e5e, 2023-11-13T05:39:23.476Z)
操作系统版本: Windows_NT x64 10.0.22631
模式:
系统信息
| 项目 | 值 |
| ------ | ------ |
| CPUs | AMD Ryzen 7 3750H with Radeon Vega Mobile Gfx (8 x 2296) |
| GPU状态 | 2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: enabled |
| 平均负载 | undefined |
| 内存(系统) | 21.94GB (10.19GB free) |
| 进程参数 | . --crash-reporter-id 09db47df-2084-4e20-9ef0-2c1fbe5e9bfe |
| 屏幕阅读器 | no |
| VM | 0% |扩展名(26个)
| 扩展名 | 作者(省略) | 版本 |
| ------ | ------ | ------ |
| rc-beautify | Ato | 1.2.0 |
| vscode-markdownlint | Dav | 0.52.0 |
| conda-wingman | DJS | 0.2.1 |
| gitlens | eam | 2023.11.1404 |
| vscode-html-css | ecm | 1.13.1 |
| code-runner | for | 0.12.1 |
| copilot | Git | 1.136.0 |
| copilot-chat | Git | 0.11.2023111401 |
| conda-cheatsheet | joj | 1.2.8 |
| vscode-docker | ms- | 1.28.0 |
| python | ms- | 2023.21.13181010 |
| vscode-pylance | ms- | 2023.11.12 |
| jupyter
2条答案
按热度按时间cnwbcb6i1#
复制 #44492 和其他内容。我们需要一种方法来重现这个
xxhby3vn2#
我本能地按下了报告按钮,没有检查,抱歉。
但是除了使用Copilot和大型.js文件之外,我并没有做任何不寻常的事情。