microsoft / vscode

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

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

Closed zTeaEgg closed 2 years ago

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

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i5-1035G4 CPU @ 1.10GHz (8 x 1498)| |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)|7.60GB (1.14GB free)| |Process Argv|--crash-reporter-id 1c2931cc-e51b-40d8-bafc-abc1d633dc5a| |Screen Reader|no| |VM|0%|
Extensions (48) Extension|Author (truncated)|Version ---|---|--- html-snippets|abu|0.2.1 commit-message-editor|ada|0.19.7 ng-template|Ang|14.1.0 multi-cursor-case-preserve|Car|1.0.5 path-intellisense|chr|2.8.1 ng-alain-vscode|cip|13.0.0 ng-zorro-vscode|cip|13.0.2 angular2-snippets|dan|1.0.21 vscode-eslint|dba|2.2.6 es7-react-js-snippets|dsz|4.4.3 gitlens|eam|12.1.2 vsc-material-theme-icons|equ|2.3.1 prettier-vscode|esb|9.5.0 auto-close-tag|for|0.5.14 auto-rename-tag|for|0.1.10 anes|gam|0.0.2 git-graph|mhu|1.30.0 dotenv|mik|1.0.1 vue-volar-extention-pack|Mis|1.1.5 vscode-language-pack-zh-hans|MS-|1.69.7130921 vscode-typescript-tslint-plugin|ms-|1.3.4 vscode-boot-dev-pack|Piv|0.1.0 vscode-spring-boot|Piv|1.36.0 material-icon-theme|PKi|4.19.0 fabric8-analytics|red|0.3.6 java|red|1.9.0 vscode-xml|red|0.21.2022062916 LiveServer|rit|5.7.5 vs-code-prettier-eslint|rve|5.0.3 vue-vscode-snippets|sdr|3.1.1 markdown-preview-enhanced|shd|0.6.3 vscode-scss-formatter|sib|2.4.3 autoimport|ste|1.5.4 sass-indented|syl|1.8.22 vscodeintellicode|Vis|1.2.22 vscode-java-debug|vsc|0.42.0 vscode-java-dependency|vsc|0.20.0 vscode-java-pack|vsc|0.24.0 vscode-java-test|vsc|0.35.2 vscode-maven|vsc|0.36.0 vscode-spring-boot-dashboard|vsc|0.5.0 vscode-spring-initializr|vsc|0.10.0 volar|Vue|0.39.1 vscode-typescript-vue-plugin|Vue|0.39.1 vue|Wsc|1.0.26 JavaScriptSnippets|xab|1.8.0 markdown-all-in-one|yzh|3.4.3 material-theme|zhu|3.15.2 (6 theme extensions excluded)
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 pythonvspyl392:30443607 vserr242cf:30382550 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 pythondataviewer:30285071 vscod805:30301674 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593:30376534 vsc1dst:30438360 pythonvs932:30410667 wslgetstarted:30449410 vscscmwlcmt:30465135 cppdebug:30492333 vscaat:30438848 pylanb8912:30529769 vsclangdc:30486549 841h4636:30532337 ```
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!