microsoft / vscode

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

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

Closed GW00220090 closed 1 month ago

GW00220090 commented 1 month 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.1 (e10f2369d0d9614a452462f2e01cdc4aa9486296, 2024-10-05T05:44:32.189Z) OS version: Windows_NT x64 10.0.19045 Modes: Remote OS version: Linux x64 3.10.0-957.el7.x86_64

System Info |Item|Value| |---|---| |CPUs|11th Gen Intel(R) Core(TM) i7-11850H @ 2.50GHz (16 x 2496)| |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.67GB (17.02GB free)| |Process Argv|--crash-reporter-id 8464be40-0e88-49d2-8cad-980277770a24| |Screen Reader|no| |VM|0%| |Item|Value| |---|---| |Remote|SSH: 10.254.101.111| |OS|Linux x64 3.10.0-957.el7.x86_64| |CPUs|Intel(R) Xeon(R) Gold 6248R CPU @ 3.00GHz (8 x 0)| |Memory (System)|31.26GB (13.92GB free)| |VM|33%|
Extensions (81) Extension|Author (truncated)|Version ---|---|--- jest-snippets|and|1.9.1 python-snippets|cst|0.1.2 copilot|Git|1.239.0 copilot-chat|Git|0.21.2 vscode-drawio|hed|1.6.6 vsc-python-indent|Kev|1.18.0 vscode-json5|mrm|1.0.0 remote-containers|ms-|0.388.0 remote-ssh|ms-|0.115.0 remote-ssh-edit|ms-|0.87.0 remote-wsl|ms-|0.88.4 vscode-remote-extensionpack|ms-|0.26.0 remote-explorer|ms-|0.4.3 remote-server|ms-|1.5.2 vscode-speech|ms-|0.10.0 vscode-speech-language-pack-zh-cn|ms-|0.4.0 vscode-djaneiro|the|1.4.2 errorlens|use|3.20.0 vscode-icons|vsc|12.9.0 vscode-todo-highlight|way|1.0.5 jinja|who|0.0.8 JavaScriptSnippets|xab|1.8.0 ReactSnippets|xab|2.4.0 vscode-django|bat|1.15.0 vscode-log-viewer|ber|0.14.1 github-markdown-preview|bie|0.3.0 markdown-checkbox|bie|0.4.0 markdown-emoji|bie|0.3.0 markdown-footnotes|bie|0.1.1 markdown-mermaid|bie|1.26.0 markdown-preview-github-styles|bie|2.1.0 markdown-yaml-preamble|bie|0.1.0 vs-code-bpmn-io|bpm|0.21.5 simple-react-snippets|bur|1.2.8 npm-intellisense|chr|1.4.5 path-intellisense|chr|2.9.0 mermaid-graphical-editor|cor|0.4.3 dbclient-jdbc|cwe|1.3.6 vscode-mysql-client2|cwe|7.6.4 vscode-eslint|dba|3.0.10 githistory|don|0.6.20 python-extension-pack|don|1.7.0 xml|Dot|2.5.1 gitlens|eam|15.6.2 EditorConfig|Edi|0.16.4 prettier-vscode|esb|11.0.0 todo-tree|Gru|0.0.226 vscode-test-explorer|hbe|2.22.1 path-autocomplete|ion|1.25.0 vscode-edit-csv|jan|0.10.0 search-node-modules|jas|1.3.0 react-vscode-extension-pack|jaw|1.0.0 vsc-python-indent|Kev|1.18.0 rainbow-csv|mec|3.12.0 git-graph|mhu|1.30.0 vscode-docker|ms-|1.29.3 vscode-language-pack-zh-hans|MS-|1.94.2024101609 black-formatter|ms-|2024.4.0 debugpy|ms-|2024.12.0 flake8|ms-|2023.10.0 isort|ms-|2023.10.1 mypy-type-checker|ms-|2024.0.0 pylint|ms-|2024.0.0 python|ms-|2024.16.1 vscode-pylance|ms-|2024.10.1 live-server|ms-|0.4.15 test-adapter-converter|ms-|0.2.0 resourcemonitor|mut|1.0.7 autodocstring|njp|0.6.1 vscode-jest|Ort|6.2.5 json-to-yaml-and-more|pet|0.0.3 git-commit-plugin|red|1.5.0 command-variable|rio|1.65.6 vscode-coverage-gutters|rya|2.12.0 markdown-preview-enhanced|shd|0.8.14 even-better-toml|tam|0.19.2 jinja|who|0.0.8 JavaScriptSnippets|xab|1.8.0 ReactSnippets|xab|2.4.0 vscode-archive|YuT|0.8.0 markdown-all-in-one|yzh|3.6.2
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805:30301674 binariesv615:30325510 vsaa593cf:30376535 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 a9j8j154:30646983 962ge761:30959799 pythongtdpath:30769146 pythonnoceb:30805159 asynctok:30898717 pythonmypyd1:30879173 h48ei257:31000450 pythontbext0:30879054 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 dsvsc021:30996838 f3je6385:31013174 dvdeprecation:31068756 dwnewjupytercf:31046870 impr_priority:31102340 nativerepl2:31139839 refactort:31108082 pythonrstrctxt:31112756 wkspc-onlycs-t:31132770 nativeloc1:31134641 wkspc-ranged-t:31151552 cf971741:31144450 iacca1:31156133 notype1cf:31157160 5fd0e150:31155592 dwcopilot:31164048 iconenabled:31158251 ```
vs-code-engineering[bot] commented 1 month 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.0. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!