microsoft / vscode

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

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

Open ferdaws545 opened 14 hours ago

ferdaws545 commented 14 hours ago

Type: Bug

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

TypeScript Version: 5.6.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.

VS Code version: Code 1.94.2 (384ff7382de624fb94dbaf6da11977bba1ecd427, 2024-10-09T16:08:44.566Z) OS version: Windows_NT x64 10.0.22631 Modes: Remote OS version: Linux x64 5.15.167.4-microsoft-standard-WSL2

System Info |Item|Value| |---|---| |CPUs|11th Gen Intel(R) Core(TM) i5-11400H @ 2.70GHz (12 x 2688)| |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
webnn: disabled_off| |Load (avg)|undefined| |Memory (System)|31.73GB (17.47GB free)| |Process Argv|--crash-reporter-id b4bdd3f1-41ef-4d71-a567-e6bbaadee3cf| |Screen Reader|no| |VM|0%| |Item|Value| |---|---| |Remote|WSL: Ubuntu-24.04| |OS|Linux x64 5.15.167.4-microsoft-standard-WSL2| |CPUs|11th Gen Intel(R) Core(TM) i5-11400H @ 2.70GHz (12 x 0)| |Memory (System)|15.49GB (13.15GB free)| |VM|0%|
Extensions (56) Extension|Author (truncated)|Version ---|---|--- better-comments|aar|3.0.2 vsc-material-theme|Equ|34.7.9 vsc-material-theme-icons|equ|3.8.10 jupyter-keymap|ms-|1.1.2 remote-containers|ms-|0.388.0 remote-ssh|ms-|0.115.1 remote-ssh-edit|ms-|0.87.0 remote-wsl|ms-|0.88.5 remote-explorer|ms-|0.4.3 material-icon-theme|PKi|5.14.1 qsharp-lang-vscode|qua|1.11.0 errorlens|use|3.20.0 better-comments|aar|3.0.2 ng-template|Ang|19.0.2 jsoncrack-vscode|Ayk|2.0.3 vscode-tailwindcss|bra|0.12.14 turbo-console-log|Cha|2.10.5 doxdocgen|csc|1.4.0 dart-code|Dar|3.100.0 flutter|Dar|3.100.0 vscode-eslint|dba|3.0.10 githistory|don|0.6.20 gitlens|eam|16.0.2 EditorConfig|Edi|0.16.4 vsc-material-theme|Equ|34.7.9 vsc-material-theme-icons|equ|3.8.10 prettier-vscode|esb|11.0.0 copilot|Git|1.245.0 copilot-chat|Git|0.21.2 vscode-github-actions|git|0.27.0 gluestack-vscode|glu|0.1.22 android-adb-wlan|Han|0.0.10 rest-client|hum|0.25.1 i18n-ally|lok|2.12.0 language-matlab|Mat|1.2.7 rainbow-csv|mec|3.12.0 vscode-docker|ms-|1.29.3 debugpy|ms-|2024.12.0 python|ms-|2024.20.0 vscode-pylance|ms-|2024.11.2 vscode-react-native|msj|1.13.0 vscode-jest|Ort|6.4.0 vscode-twoslash|Ort|1.0.2 bun-vscode|ove|0.0.16 material-icon-theme|PKi|5.14.1 prisma|Pri|5.22.0 vscode-thunder-client|ran|2.30.0 vscode-yaml|red|1.15.0 LiveServer|rit|5.7.9 autoimport|ste|1.5.4 code-spell-checker|str|4.0.21 vscode-pets|ton|1.27.0 errorlens|use|3.20.0 explorer|vit|1.8.0 vscode-gradle|vsc|3.16.4 vscode-import-cost|wix|3.3.0
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805cf:30301675 binariesv615:30325510 vsaa593cf:30376535 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 2i9eh265:30646982 962ge761:30959799 pythonnoceb:30805159 asynctok:30898717 pythonmypyd1:30879173 2e7ec940:31000449 pythontbext0:30879054 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 dsvsc021:30996838 jg8ic977:31013176 dvdeprecation:31068756 dwnewjupyter:31046869 newcmakeconfigv2:31071590 nativerepl2:31139839 pythonrstrctxt:31112756 cf971741:31144450 iacca1:31171482 notype1cf:31157160 5fd0e150:31155592 dwcopilot:31170013 stablechunks:31184530 ```
vs-code-engineering[bot] commented 14 hours ago

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.95.3. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!