microsoft / vscode

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

TS Server fatal error: Cannot read properties of undefined (reading 'sourceFile') #230722

Open Abrham-Muche opened 2 days ago

Abrham-Muche commented 2 days ago

Type: Bug

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

TypeScript Version: 5.6.2

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.

VS Code version: Code 1.94.0 (Universal) (d78a74bcdfad14d5d3b1b782f87255d802b57511, 2024-10-02T13:08:12.626Z) OS version: Darwin arm64 23.2.0 Modes:

System Info |Item|Value| |---|---| |CPUs|Apple M2 (8 x 2400)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
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_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off| |Load (avg)|4, 4, 4| |Memory (System)|8.00GB (0.05GB free)| |Process Argv|--crash-reporter-id 88fdc43c-642d-40b8-a5e8-095e87dfd53f| |Screen Reader|no| |VM|0%|
Extensions (45) Extension|Author (truncated)|Version ---|---|--- vscode-openapi|42C|4.29.0 amazon-q-vscode|ama|1.28.0 aws-toolkit-vscode|ama|3.27.0 atlascode|atl|3.0.10 blackbox|Bla|1.4.22 boto3-ide|Bot|0.6.0 vscode-tailwindcss|bra|0.12.11 aws-cloudformation-yaml|Dan|0.2.2 vscode-eslint|dba|3.0.10 es7-react-js-snippets|dsz|4.4.3 gitlens|eam|15.5.1 react-native-react-redux|EQu|2.0.6 prettier-vscode|esb|11.0.0 vscode-expo-tools|exp|1.5.0 vscode-firefox-debug|fir|2.9.10 codespaces|Git|1.17.3 copilot|Git|1.235.0 copilot-chat|Git|0.21.0 remotehub|Git|0.64.0 vscode-github-actions|git|0.27.0 angular-bootstrap|her|4.0.9 ionic|Ion|1.94.2 vscode-jsx-sfc|joe|0.5.1 react-native-snippet|jun|0.5.6 rainbow-csv|mec|3.12.0 vscode-docker|ms-|1.29.3 vscode-edge-devtools|ms-|2.1.6 vscode-kubernetes-tools|ms-|1.3.16 debugpy|ms-|2024.10.0 python|ms-|2024.16.0 vscode-pylance|ms-|2024.9.2 remote-containers|ms-|0.388.0 azure-repos|ms-|0.40.0 powershell|ms-|2024.2.2 remote-repositories|ms-|0.42.0 vscode-react-native|msj|1.13.0 material-icon-theme|PKi|5.11.1 bitbucket-pull-requests|Ram|0.3.10 vscode-yaml|red|1.15.0 rocketseatreactnative|roc|3.0.1 es7-react-js-snippets|rod|1.9.3 cody-ai|sou|1.36.3 bootstrap4-vscode|the|6.1.0 aws-sam-snippets|web|1.0.0 chat-gpt|zha|1.8.7 (1 theme extensions excluded)
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805cf:30301675 binariesv615:30325510 vsaa593:30376534 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 a9j8j154:30646983 962ge761:30959799 pythongtdpath:30769146 welcomedialog:30910333 pythonnoceb:30805159 asynctok:30898717 pythonmypyd1:30879173 h48ei257:31000450 pythontbext0:30879054 accentitlementsc:30995553 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 dsvsc021:30996838 f3je6385:31013174 a69g1124:31058053 dvdeprecation:31068756 dwnewjupyter:31046869 newcmakeconfigv2:31071590 impr_priority:31102340 nativerepl2:31139839 refactort:31108082 pythonrstrctxt:31112756 flighttreat:31134774 wkspc-onlycs-t:31132770 wkspc-ranged-t:31151552 cf971741:31144450 defaultse:31146405 iacca1:31150322 notype1cf:31151524 5fd0e150:31146321 ```
vs-code-engineering[bot] commented 2 days ago

Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue.

Happy Coding!