microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.49k stars 29.38k forks source link

TS Server fatal error: Debug Failure. False expression: getScriptInfo #156025

Closed luchen-work01 closed 2 years ago

luchen-work01 commented 2 years ago

❗️❗️❗️ Please fill in the sections below to help us diagnose the issue ❗️❗️❗️

TypeScript Version: 4.7.3

Steps to reproduce crash 1. 2. 3.

TS Server Log ❗️Server logging disabled. To help us fix crashes like this, please enable logging by setting:

"typescript.tsserver.log": "verbose"

After enabling this setting, future crash reports will include the server log.

TS Server Error Stack Server: semantic

Verbose Debug Information: scriptInfo for a file 'd:/code/Geeker-Admin/src/__VLS_types.ts' Path: 'd:/code/geeker-admin/src/__vls_types.ts' / 'd:/code/geeker-admin/src/__vls_types.ts' is missing.
Error: Debug Failure. False expression: getScriptInfo
Verbose Debug Information: scriptInfo for a file 'd:/code/Geeker-Admin/src/__VLS_types.ts' Path: 'd:/code/geeker-admin/src/__vls_types.ts' / 'd:/code/geeker-admin/src/__vls_types.ts' is missing.
    at d:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:169403:30
    at Object.map (d:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:444:29)
    at ConfiguredProject.Project.getScriptInfos (d:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:169401:27)
    at ProjectService.sendProjectTelemetry (d:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:172348:66)
    at ConfiguredProject.updateGraph (d:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:170698:37)
    at ProjectService.createLoadAndUpdateConfiguredProject (d:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:172423:25)
    at ProjectService.assignProjectToOpenedScriptInfo (d:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:173508:44)
    at d:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:173848:97
    at Object.flatMap (d:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:508:25)
    at ProjectService.applyChangesInOpenFiles (d:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:173848:41)
    at Session.handlers.ts.Map.ts.getEntries._a.<computed> (d:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:174983:46)
    at d:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:177172:88
    at IpcIOSession.Session.executeWithRequestId (d:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:177163:28)
    at IpcIOSession.Session.executeCommand (d:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:177172:33)
    at IpcIOSession.Session.onMessage (d:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:177198:35)
    at process.<anonymous> (d:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:179833:31)
    at process.emit (node:events:390:28)
    at emit (node:internal/child_process:917:12)
    at processTicksAndRejections (node:internal/process/task_queues:84:21)
vscodenpa commented 2 years ago

This issue is caused by an extension, please file it with the repository (or contact) the extension has linked in its overview in VS Code or the marketplace for VS Code. See also our issue reporting guidelines.

Happy Coding!