类型:Bug
❗️❗️❗️ 请填写下面的部分,以帮助我们诊断问题 ❗️❗️❗️
TypeScript 版本: 5.2.2
重现崩溃的步骤
TS 服务器日志
❗️ 服务器日志已禁用。为了帮助我们解决类似这样的崩溃问题,请通过设置启用日志记录:
"typescript.tsserver.log": "verbose"
启用此设置后,未来的崩溃报告将包括服务器日志。
TS 服务器错误堆栈
服务器: syntax
TypeError: Cannot read properties of undefined (reading 'charCount')
at _LineNode.walk (c:\Users\Damilola Awopegba\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:185555:30)
at _LineIndex.edit (c:\Users\Damilola Awopegba\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:185454:17)
at _ScriptVersionCache._getSnapshot (c:\Users\Damilola Awopegba\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:185260:31)
at _ScriptVersionCache.getSnapshot (c:\Users\Damilola Awopegba\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:185253:17)
at TextStorage.reload (c:\Users\Damilola Awopegba\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:175417:44)
at ScriptInfo.open (c:\Users\Damilola Awopegba\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:175592:48)
at _ProjectService.getOrCreateScriptInfoWorker (c:\Users\Damilola Awopegba\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:180320:12)
at _ProjectService.getOrCreateScriptInfoOpenedByClientForNormalizedPath (c:\Users\Damilola Awopegba\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:180281:17)
at _ProjectService.getOrCreateOpenScriptInfo (c:\Users\Damilola Awopegba\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:180766:23)
at _ProjectService.applyChangesInOpenFiles (c:\Users\Damilola Awopegba\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:181034:27)
at updateOpen (c:\Users\Damilola Awopegba\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:182242:29)
at c:\Users\Damilola Awopegba\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:184838:69
at IpcIOSession.executeWithRequestId (c:\Users\Damilola Awopegba\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:184830:14)
at IpcIOSession.executeCommand (c:\Users\Damilola Awopegba\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:184838:29)
at IpcIOSession.onMessage (c:\Users\Damilola Awopegba\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:184880:51)
at process.<anonymous> (c:\Users\Damilola Awopegba\AppData\Local\Programs\Microsoft VS Code\resources\app\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.22621
模式:
系统信息
| 项目 | 值 |
| ------------ | ------------ |
| CPUs | Intel(R) Core(TM) i5-8350U CPU @ 1.70GHz (8 x 1896) |
| 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 |
| 内存(系统) | 15.88GB (7.17GB free) |
| 进程参数 | --crash-reporter-id e6718758-5454-424c-8df0-6ada99b4e237 |
| 屏幕阅读器 | no |
| VM | 0% |扩展(8)
| 扩展名 | 作者(省略) | 版本 |
| ------------ | ------------ | ------------ |
| simple-react-snippets | bur | 1.2.7 |
| es7-react-js-snippets | dsz | 4.4.3 |
| figma-vscode-extension | fig | 0.2.7 |
| vscode-react-typescript | inf | 1.3.1 |
| LiveServer | rit | 5.7.9 |
| es7-react-js-snippets | rod | 1.9.3 |
| vscode-react | zha | 0.0.5 |
| html-css-class-completion | Zig | 1.20.0 |A/B实验
1条答案
按热度按时间xjreopfe1#
我们需要一种方法来重现这个过程。