microsoft / vscode

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

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

Closed jonnathanc765 closed 2 years ago

jonnathanc765 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 '/home/jonnathan/Documents/Projects/smartchat/app/src/__VLS_types.ts' Path: '/home/jonnathan/Documents/Projects/smartchat/app/src/__VLS_types.ts' / '/home/jonnathan/Documents/Projects/smartchat/app/src/__VLS_types.ts' is missing.
Error: Debug Failure. False expression: getScriptInfo
Verbose Debug Information: scriptInfo for a file '/home/jonnathan/Documents/Projects/smartchat/app/src/__VLS_types.ts' Path: '/home/jonnathan/Documents/Projects/smartchat/app/src/__VLS_types.ts' / '/home/jonnathan/Documents/Projects/smartchat/app/src/__VLS_types.ts' is missing.
    at /home/jonnathan/.vscode/extensions/ms-vscode.vscode-typescript-next-4.8.20220722/node_modules/typescript/lib/tsserver.js:171549:30
    at Object.map (/home/jonnathan/.vscode/extensions/ms-vscode.vscode-typescript-next-4.8.20220722/node_modules/typescript/lib/tsserver.js:461:29)
    at ConfiguredProject.Project.getScriptInfos (/home/jonnathan/.vscode/extensions/ms-vscode.vscode-typescript-next-4.8.20220722/node_modules/typescript/lib/tsserver.js:171547:27)
    at ProjectService.sendProjectTelemetry (/home/jonnathan/.vscode/extensions/ms-vscode.vscode-typescript-next-4.8.20220722/node_modules/typescript/lib/tsserver.js:174542:66)
    at ConfiguredProject.updateGraph (/home/jonnathan/.vscode/extensions/ms-vscode.vscode-typescript-next-4.8.20220722/node_modules/typescript/lib/tsserver.js:172892:37)
    at ProjectService.createLoadAndUpdateConfiguredProject (/home/jonnathan/.vscode/extensions/ms-vscode.vscode-typescript-next-4.8.20220722/node_modules/typescript/lib/tsserver.js:174617:25)
    at ProjectService.assignProjectToOpenedScriptInfo (/home/jonnathan/.vscode/extensions/ms-vscode.vscode-typescript-next-4.8.20220722/node_modules/typescript/lib/tsserver.js:175702:44)
    at /home/jonnathan/.vscode/extensions/ms-vscode.vscode-typescript-next-4.8.20220722/node_modules/typescript/lib/tsserver.js:176042:97
    at Object.flatMap (/home/jonnathan/.vscode/extensions/ms-vscode.vscode-typescript-next-4.8.20220722/node_modules/typescript/lib/tsserver.js:525:25)
    at ProjectService.applyChangesInOpenFiles (/home/jonnathan/.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> (/home/jonnathan/.vscode/extensions/ms-vscode.vscode-typescript-next-4.8.20220722/node_modules/typescript/lib/tsserver.js:177415:46)
    at /home/jonnathan/.vscode/extensions/ms-vscode.vscode-typescript-next-4.8.20220722/node_modules/typescript/lib/tsserver.js:179607:96
    at IpcIOSession.Session.executeWithRequestId (/home/jonnathan/.vscode/extensions/ms-vscode.vscode-typescript-next-4.8.20220722/node_modules/typescript/lib/tsserver.js:179598:28)
    at IpcIOSession.Session.executeCommand (/home/jonnathan/.vscode/extensions/ms-vscode.vscode-typescript-next-4.8.20220722/node_modules/typescript/lib/tsserver.js:179607:41)
    at IpcIOSession.Session.onMessage (/home/jonnathan/.vscode/extensions/ms-vscode.vscode-typescript-next-4.8.20220722/node_modules/typescript/lib/tsserver.js:179635:35)
    at process.<anonymous> (/home/jonnathan/.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 (3b889b090b5ad5793f524b5d1d39fda662b96a2a, 2022-07-18T16:14:10.636Z) OS version: Linux x64 5.15.0-41-generic Restricted Mode: No

System Info |Item|Value| |---|---| |CPUs|AMD Ryzen 9 5900X 12-Core Processor (24 x 3391)| |GPU Status|2d_canvas: unavailable_software
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software| |Load (avg)|3, 3, 2| |Memory (System)|31.26GB (15.09GB free)| |Process Argv|--unity-launch --crash-reporter-id 5b75f719-4e67-4433-8329-8e5c3ab63cbb| |Screen Reader|no| |VM|0%| |DESKTOP_SESSION|ubuntu| |XDG_CURRENT_DESKTOP|Unity| |XDG_SESSION_DESKTOP|ubuntu| |XDG_SESSION_TYPE|x11|
Extensions (76) Extension|Author (truncated)|Version ---|---|--- vscode-laravel-goto|abs|4.4.2 rails-routes|aki|0.6.3 laravel-extra-intellisense|ami|0.6.2 ng-template|Ang|14.1.0 laravel-blade-spacer|aus|2.1.3 vscode-django|bat|1.10.0 procfile|ben|1.1.7 django-snippets|bib|1.1.1 vscode-intelephense-client|bme|1.8.2 vscode-tailwindcss|bra|0.8.6 rails|bun|0.17.8 vscode-gemfile|bun|0.4.2 simple-react-snippets|bur|1.2.6 ruby-and-rails-snippets|Cja|1.0.0 laravel-goto-view|cod|1.3.7 erb|Cra|0.0.1 python-snippets|cst|0.1.2 laravel-goto-config|ctf|0.2.9 laravel-goto-view|ctf|0.4.2 vscode-eslint|dba|2.2.6 python-extension-pack|don|1.7.0 es7-react-js-snippets|dsz|4.4.3 vscode-babel-coloring|dza|0.0.4 gitlens|eam|12.1.2 EditorConfig|Edi|0.16.4 vsc-material-theme|Equ|33.5.0 vsc-material-theme-icons|equ|2.3.1 prettier-vscode|esb|9.5.0 polacode-with-copy|fy|0.3.4 laravel-create-view|gli|0.0.6 rails-snippets|Hri|1.0.8 laravel-blade-wrapper|IHu|1.0.1 react-native-snippet|jun|0.5.6 php-xdebug|kak|0.0.7 rspec-snippets|kar|0.0.4 vsc-python-indent|Kev|1.17.0 sftp|lix|1.12.10 vscode-docker|ms-|1.22.1 python|ms-|2022.10.1 vscode-pylance|ms-|2022.7.40 jupyter|ms-|2022.6.1201981810 jupyter-renderers|ms-|1.0.9 remote-containers|ms-|0.241.3 sublime-keybindings|ms-|4.0.10 vscode-typescript-next|ms-|4.8.20220722 vsliveshare|ms-|1.0.5641 vsliveshare-audio|ms-|0.1.91 vsliveshare-pack|ms-|0.4.0 vscode-react-native|msj|1.9.2 laravel-goto-components|nao|1.2.0 rails-run-spec-vscode|nok|0.1.4 laravel-blade|one|1.32.0 laravel-extension-pack|one|1.1.0 laravel5-snippets|one|1.15.0 material-icon-theme|PKi|4.19.0 ruby|reb|0.28.1 vscode-commons|red|0.0.6 vscode-yaml|red|1.9.1 LiveServer|rit|5.7.5 vs-code-prettier-eslint|rve|5.0.3 laravel-artisan|rya|0.0.28 vscode-blade-formatter|shu|0.16.4 slim|sia|0.1.2 php-ci|sma|0.4.2 rails-go-to-spec|spo|0.0.1 svelte-vscode|sve|105.19.0 vscode-run-rspec-file|Tha|0.5.10 rails-snippets|Ven|0.5.0 vscodeintellicode|Vis|1.2.22 volar|Vue|0.39.1 vscode-typescript-vue-plugin|Vue|0.39.1 jinja|who|0.0.8 vscode-ruby|win|0.28.0 vscode-import-cost|wix|3.3.0 php-debug|xde|1.27.0 txt-syntax|xsh|0.2.0 (1 theme extensions excluded)
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vswsl492:30256859 vslsvsres303:30308271 pythonvspyl392:30443607 vserr242cf:30382550 pythontb:30283811 vsjup518:30340749 pythonvspyt551:30345470 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 vscorecescf:30445987 pythondataviewer:30285071 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593:30376534 vsc1dst:30438360 pythonvs932:30410667 wslgetstarted:30449410 vscscmwlcmt:30465135 cppdebug:30492333 pylanb8912cf:30529770 vsclangdf:30486550 c4g48928:30532338 ```
VSCodeTriageBot 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!