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 #156107

Closed hanlayaya closed 2 years ago

hanlayaya commented 2 years ago

Issue Type: Bug

❗️❗️❗️ 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:/sugon/Geeker-Admin/src/__VLS_types.ts' Path: 'd:/sugon/geeker-admin/src/__vls_types.ts' / 'd:/sugon/geeker-admin/src/__vls_types.ts' is missing.
Error: Debug Failure. False expression: getScriptInfo
Verbose Debug Information: scriptInfo for a file 'd:/sugon/Geeker-Admin/src/__VLS_types.ts' Path: 'd:/sugon/geeker-admin/src/__vls_types.ts' / 'd:/sugon/geeker-admin/src/__vls_types.ts' is missing.
    at d:\SoftWare\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:169403:30
    at Object.map (d:\SoftWare\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:444:29)
    at ConfiguredProject.Project.getScriptInfos (d:\SoftWare\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:169401:27)
    at ProjectService.sendProjectTelemetry (d:\SoftWare\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:172348:66)
    at ConfiguredProject.updateGraph (d:\SoftWare\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:170698:37)
    at ProjectService.createLoadAndUpdateConfiguredProject (d:\SoftWare\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:172423:25)
    at ProjectService.assignProjectToOpenedScriptInfo (d:\SoftWare\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:173508:44)
    at d:\SoftWare\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:173848:97
    at Object.flatMap (d:\SoftWare\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:508:25)
    at ProjectService.applyChangesInOpenFiles (d:\SoftWare\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:173848:41)
    at Session.handlers.ts.Map.ts.getEntries._a.<computed> (d:\SoftWare\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:174983:46)
    at d:\SoftWare\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:177172:88
    at IpcIOSession.Session.executeWithRequestId (d:\SoftWare\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:177163:28)
    at IpcIOSession.Session.executeCommand (d:\SoftWare\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:177172:33)
    at IpcIOSession.Session.onMessage (d:\SoftWare\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:177198:35)
    at process.<anonymous> (d:\SoftWare\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)

VS Code version: Code 1.69.2 (3b889b090b5ad5793f524b5d1d39fda662b96a2a, 2022-07-18T16:12:52.460Z) OS version: Windows_NT x64 10.0.19043 Restricted Mode: No

System Info |Item|Value| |---|---| |CPUs|11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz (8 x 2419)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled| |Load (avg)|undefined| |Memory (System)|15.80GB (1.24GB free)| |Process Argv|--crash-reporter-id 37da55cc-3aa1-46f1-8380-87d5faf20fc9| |Screen Reader|no| |VM|0%|
Extensions (29) Extension|Author (truncated)|Version ---|---|--- Bookmarks|ale|13.3.1 vscode-browser-preview|auc|0.7.2 thrift|cdu|0.0.1 open-html-in-browser|cod|0.1.21 vscode-eslint|dba|2.2.6 githistory|don|0.6.19 gitlens|eam|12.1.2 prettier-vscode|esb|9.5.0 git-project-manager|fel|1.8.2 vscode-yarn|gam|2.1.0 todo-tree|Gru|0.0.215 vue|jcb|0.1.5 svg|joc|1.4.19 git-graph|mhu|1.30.0 vscode-gogocode|mmf|0.6.0 vscode-docker|ms-|1.22.1 vscode-language-pack-zh-hans|MS-|1.69.7130921 vscode-typescript-tslint-plugin|ms-|1.3.4 debugger-for-chrome|msj|4.13.0 vetur|oct|0.35.0 open-html-in-browser|pea|2.1.9 view-in-browser|qin|0.0.5 git-commit-plugin|red|1.1.0 LiveServer|rit|5.7.5 markdown-preview-enhanced|shd|0.6.3 open-in-browser|tec|2.0.0 volar|Vue|0.39.0 vscode-typescript-vue-plugin|Vue|0.39.0 gitblame|wad|8.2.3
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 pythonvspyl392:30443607 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonvspyt551:30345470 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 pythondataviewer:30285071 vscod805:30301674 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593cf:30376535 vsc1dst:30438360 pythonvs932:30410667 wslgetstarted:30449410 vscscmwlcmt:30465135 cppdebug:30492333 pylanb8912cf:30529770 vsclangdf:30486550 c4g48928:30532338 ```
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!