TypeScript TS服务器致命错误:无法读取未定义对象的'startRecordingFilesWithChangedResolutions'属性,

myss37ts  于 6个月前  发布在  TypeScript
关注(0)|答案(1)|浏览(57)

问题类型:Bug

请在下面的部分填写,以帮助我们诊断问题:

TypeScript 版本: 4.5.2

重现崩溃的步骤:

TS 服务器日志

❗️服务器日志已禁用。要帮助我们修复类似崩溃的问题,请启用日志记录,设置如下:

"typescript.tsserver.log": "verbose"

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

TS 服务器错误堆栈

服务器: semantic

TypeError: Cannot read property 'startRecordingFilesWithChangedResolutions' of undefined
    at InferredProject.Project.updateGraph (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:164926:38)
    at updateProjectIfDirty (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:166409:45)
    at Array.forEach (<anonymous>)
    at ProjectService.assignProjectToOpenedScriptInfo (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:168781:41)
    at /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:169067:97
    at Object.flatMap (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:522:25)
    at ProjectService.applyChangesInOpenFiles (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:169067:41)
    at Session.handlers.ts.Map.ts.getEntries._a.<computed> (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:170225:46)
    at /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:172158:88
    at IOSession.Session.executeWithRequestId (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:172149:28)
    at IOSession.Session.executeCommand (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:172158:33)
    at IOSession.Session.onMessage (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:172184:35)
    at Interface.<anonymous> (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:174789:31)
    at Interface.emit (events.js:315:20)
    at Interface._onLine (readline.js:337:10)
    at Interface._normalWrite (readline.js:482:12)
    at Socket.ondata (readline.js:194:10)
    at Socket.emit (events.js:315:20)
    at addChunk (internal/streams/readable.js:309:12)
    at readableAddChunk (internal/streams/readable.js:284:9)
    at Socket.Readable.push (internal/streams/readable.js:223:10)
    at Pipe.onStreamRead (internal/stream_base_commons.js:188:23)

VS Code 版本:Code - Insiders 1.63.0-insider (Universal) (68a1e2f872f8869b004eec284917782474730e0b, 2021-12-02T05:13:55.196Z)
操作系统版本:Darwin x64 21.1.0
受限模式:无
系统信息
| 项目 | 值 |
| ------------ | ------------ |
| CPUs | Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz (8 x 2300) |
| GPU状态 | 2d_canvas: enabledgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onoop_rasterization: enabledopengl: enabled_onrasterization: enabledskia_renderer: disabled_off_okvideo_decode: enabledwebgl: enabledwebgl2: enabled |
| 负载(平均) | 15, 8, 5 |
| 内存(系统) | 8.00GB (0.48GB free) |
| 进程参数 | --crash-reporter-id 414963ef-3ea4-4ce4-ba13-808750ad522f |
| 屏幕阅读器 | no |
| VM | 0% |扩展名(59)
| 扩展名 | 作者(截断) | 版本 |
| ------------ | ------------ | ------------ |
| html-snippets | abu | 0.2.1 |
| vscode-javascript-repl | ach | 0.7.2 |
| vscode-caniuse | aka | 0.5.4 |
| vscode-ant-design-vue-helper | ant | 1.0.6 |
| typings-installer | ben | 0.2.0 |
| vscode-styled-jsx | bla | 2.1.1 |
| npm-intellisense | chr | 1.4.0 |
| bracket-pair-colorizer | Coe | 1.0.61 |
| vscode-svgviewer | css | 2.0.0 |
| vscode-eslint | dba | 2.2.2 |
| githistory | don | 0.6.19 |
| gitlens | eam | 11.7.0 |
| vscode-html-css | ecm | 1.10.2 |
| EditorConfig | Edi | 0.16.4 |
| vscode-npm-script | eg2

dphi5xsq

dphi5xsq1#

我们真的更希望有一种方法来重现这个问题。

相关问题