microsoft / vscode

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

TS Server fatal error: Cannot read properties of undefined (reading 'charCount') #209184

Closed dixpie closed 7 months ago

dixpie commented 7 months ago

Type: Bug

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

TypeScript Version: 5.5.0-dev.20240327

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 - Insiders 1.88.0-insider (246d700c4604eb5ebdbb561a1a86562bf9217a62, 2024-03-27T05:50:10.528Z) OS version: Windows_NT x64 10.0.22631 Modes:

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (16 x 3600)| |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
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|15.91GB (2.23GB free)| |Process Argv|--crash-reporter-id 237553cc-c803-4800-b9b6-5d73c5372ddf| |Screen Reader|no| |VM|57%|
Extensions (55) Extension|Author (truncated)|Version ---|---|--- jsx-html-tags|ang|1.0.1 bracket-pair-color-dlw|Bra|0.0.6 vscode-tailwindcss|bra|0.11.60 simple-react-snippets|bur|1.2.7 vscode-exports-autocomplete|cap|0.5.4 dscodegpt|Dan|3.2.4 vscode-markdownlint|Dav|0.54.0 vscode-eslint|dba|2.4.4 es7-react-js-snippets|dsz|4.4.3 vscode-html-css|ecm|2.0.9 vscode-great-icons|emm|2.1.102 react-native-react-redux|EQu|2.0.6 vsc-material-theme|Equ|34.3.1 vsc-material-theme-icons|equ|3.5.0 prettier-vscode|esb|10.4.0 vscode-expo-tools|exp|1.5.0 file-icons|fil|1.1.0 flow-for-vscode|flo|2.2.1 auto-close-tag|for|0.5.15 auto-complete-tag|for|0.1.0 auto-rename-tag|for|0.1.10 copilot|Git|1.176.794 copilot-chat|Git|0.14.2024032901 helium-icon-theme|hel|1.0.0 search-node-modules|jas|1.3.0 react-component|jer|1.1.0 react-native-snippet|jun|0.5.6 rn-full-pack|kel|1.1.0 tailwindcss-intellisense-twin|lig|3.0.0 Kotlin|mat|1.7.1 vscode-language-babel|mgm|0.0.40 remote-wsl|ms-|0.88.0 powershell|ms-|2024.0.0 vscode-typescript-next|ms-|5.5.20240327 vscode-react-native|msj|1.13.0 color-highlight|nau|2.8.0 vscode-extension-auto-import|Nuc|1.4.3 vscode-tailwindcss-with-hex-colors|num|0.10.0 material-icon-theme|PKi|4.34.0 polacode|pnp|0.3.4 html5-boilerplate|sid|1.1.1 js-jsx-snippets|sky|11.1.2 autoimport|ste|1.5.4 code-spell-checker|str|3.0.1 tabnine-vscode|Tab|3.81.2000 vscode-icons|vsc|12.7.0 gitblame|wad|10.10.0 vscode-todo-highlight|way|1.0.5 change-case|wma|1.0.0 JavaScriptSnippets|xab|1.8.0 tailwindcss-highlight-intellisense|xia|0.0.2 markdown-all-in-one|yzh|3.6.2 vscode-react|zha|0.0.5 cron-tasks|zok|0.1.2 sync-settings|zok|0.16.0 (5 theme extensions excluded)
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805:30301674 vsaa593cf:30376535 py29gd2263:30784851 vscaat:30438846 c4g48928:30535728 a9j8j154:30646983 962ge761:30841072 pythongtdpath:30726887 welcomedialog:30812478 pythonidxpt:30768918 pythonnoceb:30776497 asynctok:30898717 dsvsc013:30777762 dsvsc014:30777825 dsvsc015:30821418 pythontestfixt:30866404 pythonregdiag2:30926734 pyreplss1:30879911 pythonmypyd1:30859725 pythoncet0:30859736 h48ei257:31000450 pythontbext0:30879054 accentitlementst:30870582 dsvsc016:30879898 dsvsc017:30880771 dsvsc018:30880772 d6fi2104:30968146 cppperfnew:30980852 d34g3935:30961436 fegfb526:30952798 bg6jg535:30979844 ccp2r6:30958154 pythonait:30973460 7ghi1836:30988844 g1icg217:30999571 ```
vscodenpa commented 7 months 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!

vscodenpa commented 7 months ago

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!