microsoft / vscode

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

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

Closed yanbowe closed 2 years ago

yanbowe commented 2 years ago

Issue Type: Bug

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

TypeScript Version: 4.8.0-dev.20220722

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 '/Users/mac/Documents/代码/个人代码/vue3-antdv-admin/src/__VLS_types.ts' Path: '/users/mac/documents/代码/个人代码/vue3-antdv-admin/src/__vls_types.ts' / '/users/mac/documents/代码/个人代码/vue3-antdv-admin/src/__vls_types.ts' is missing.
Error: Debug Failure. False expression: getScriptInfo
Verbose Debug Information: scriptInfo for a file '/Users/mac/Documents/代码/个人代码/vue3-antdv-admin/src/__VLS_types.ts' Path: '/users/mac/documents/代码/个人代码/vue3-antdv-admin/src/__vls_types.ts' / '/users/mac/documents/代码/个人代码/vue3-antdv-admin/src/__vls_types.ts' is missing.
    at /Users/mac/.vscode/extensions/ms-vscode.vscode-typescript-next-4.8.20220722/node_modules/typescript/lib/tsserver.js:171549:30
    at Object.map (/Users/mac/.vscode/extensions/ms-vscode.vscode-typescript-next-4.8.20220722/node_modules/typescript/lib/tsserver.js:461:29)
    at ConfiguredProject.Project.getScriptInfos (/Users/mac/.vscode/extensions/ms-vscode.vscode-typescript-next-4.8.20220722/node_modules/typescript/lib/tsserver.js:171547:27)
    at ProjectService.sendProjectTelemetry (/Users/mac/.vscode/extensions/ms-vscode.vscode-typescript-next-4.8.20220722/node_modules/typescript/lib/tsserver.js:174542:66)
    at ConfiguredProject.updateGraph (/Users/mac/.vscode/extensions/ms-vscode.vscode-typescript-next-4.8.20220722/node_modules/typescript/lib/tsserver.js:172892:37)
    at ProjectService.createLoadAndUpdateConfiguredProject (/Users/mac/.vscode/extensions/ms-vscode.vscode-typescript-next-4.8.20220722/node_modules/typescript/lib/tsserver.js:174617:25)
    at ProjectService.assignProjectToOpenedScriptInfo (/Users/mac/.vscode/extensions/ms-vscode.vscode-typescript-next-4.8.20220722/node_modules/typescript/lib/tsserver.js:175702:44)
    at /Users/mac/.vscode/extensions/ms-vscode.vscode-typescript-next-4.8.20220722/node_modules/typescript/lib/tsserver.js:176042:97
    at Object.flatMap (/Users/mac/.vscode/extensions/ms-vscode.vscode-typescript-next-4.8.20220722/node_modules/typescript/lib/tsserver.js:525:25)
    at ProjectService.applyChangesInOpenFiles (/Users/mac/.vscode/extensions/ms-vscode.vscode-typescript-next-4.8.20220722/node_modules/typescript/lib/tsserver.js:176042:41)
    at Session.handlers.ts.Map.ts.getEntries._a.<computed> (/Users/mac/.vscode/extensions/ms-vscode.vscode-typescript-next-4.8.20220722/node_modules/typescript/lib/tsserver.js:177415:46)
    at /Users/mac/.vscode/extensions/ms-vscode.vscode-typescript-next-4.8.20220722/node_modules/typescript/lib/tsserver.js:179607:96
    at IpcIOSession.Session.executeWithRequestId (/Users/mac/.vscode/extensions/ms-vscode.vscode-typescript-next-4.8.20220722/node_modules/typescript/lib/tsserver.js:179598:28)
    at IpcIOSession.Session.executeCommand (/Users/mac/.vscode/extensions/ms-vscode.vscode-typescript-next-4.8.20220722/node_modules/typescript/lib/tsserver.js:179607:41)
    at IpcIOSession.Session.onMessage (/Users/mac/.vscode/extensions/ms-vscode.vscode-typescript-next-4.8.20220722/node_modules/typescript/lib/tsserver.js:179635:35)
    at process.<anonymous> (/Users/mac/.vscode/extensions/ms-vscode.vscode-typescript-next-4.8.20220722/node_modules/typescript/lib/tsserver.js:183801: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 (Universal) (3b889b090b5ad5793f524b5d1d39fda662b96a2a, 2022-07-18T16:12:57.074Z) OS version: Darwin x64 19.6.0 Restricted Mode: No

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz (8 x 2900)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
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
webgl: enabled
webgl2: enabled| |Load (avg)|268, 168, 151| |Memory (System)|16.00GB (1.26GB free)| |Process Argv|-psn_0_848079 --crash-reporter-id 7e001088-6b91-4fc7-97e8-7861ea8ec0ba| |Screen Reader|no| |VM|0%|
Extensions (62) Extension|Author (truncated)|Version ---|---|--- icones|afz|0.0.9 Bookmarks|ale|13.3.1 vscode-color|ans|0.4.5 iconify|ant|0.3.3 unocss|ant|0.44.5 turbo-console-log|Cha|2.3.2 path-intellisense|chr|2.8.1 vscode-css-modules|cli|0.4.2 bracket-pair-colorizer-2|Coe|0.2.4 vue-peek|dar|1.0.2 vscode-eslint|dba|2.2.6 es7-react-js-snippets|dsz|4.4.3 gitlens|eam|12.1.2 vscode-html-css|ecm|1.13.0 EditorConfig|Edi|0.16.4 vscode-npm-script|eg2|0.3.28 react-native-react-redux|EQu|2.0.6 json-tools|eri|1.0.2 prettier-vscode|esb|9.5.0 mithril-emmet|Fal|0.7.7 auto-close-tag|for|0.5.14 auto-complete-tag|for|0.1.0 auto-rename-tag|for|0.1.10 headwind|hey|1.7.0 naive-ui-snippets|Jim|0.0.3 vscode-gutter-preview|kis|0.30.0 i18n-ally|lok|2.8.1 git-graph|mhu|1.30.0 fluent-icons|mig|0.0.17 dotenv|mik|1.0.1 vscode-less|mrm|0.6.3 vscode-docker|ms-|1.22.1 vscode-language-pack-zh-hans|MS-|1.69.7130921 vscode-typescript-next|ms-|4.8.20220722 vsliveshare|ms-|1.0.5641 color-highlight|nau|2.5.0 vuehelper|oys|0.1.0 material-icon-theme|PKi|4.19.0 vscode-css-peek|pra|4.2.0 any-rule|rus|0.3.15 vue-vscode-snippets|sdr|3.1.1 code-settings-sync|Sha|3.4.3 markdown-preview-enhanced|shd|0.6.3 vscode-scss-formatter|sib|2.4.3 autoimport|ste|1.5.4 code-spell-checker|str|2.3.1 vscode-stylelint|sty|1.2.2 sass-indented|syl|1.8.22 highlight-matching-tag|vin|0.10.1 vscode-swift-development-environment|vkn|2.12.2 windicss-intellisense|voo|0.21.6 vscode-icons|vsc|11.13.0 volar|Vue|0.39.0 vscode-typescript-vue-plugin|Vue|0.39.0 vscode-todo-highlight|way|1.0.5 vscode-js-console-utils|wht|0.7.0 vscode-import-cost|wix|3.3.0 eno|Wsc|2.3.53 JavaScriptSnippets|xab|1.8.0 markdown-all-in-one|yzh|3.4.3 material-theme|zhu|3.15.2 html-css-class-completion|Zig|1.20.0
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 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593cf:30376535 vsc1dst:30438360 pythonvs932:30410667 wslgetstarted:30449410 vscscmwlcmt:30465135 cppdebug:30492333 vscaat:30438848 pylanb8912cf:30529770 vsclangdc:30486549 841h4636:30532337 ```
IllusionMH commented 2 years ago

/duplicate

vscodenpa commented 2 years ago

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.

Happy Coding!