microsoft / vscode

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

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

Closed bernardopg closed 4 months ago

bernardopg commented 5 months ago

Type: Bug

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

TypeScript Version: 5.4.2

Steps to reproduce crash

1. 2. 3.

Global TypeScript Server Plugins

❗️ Please test with extensions disabled. Extensions are the root cause of most TypeScript server crashes

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 (f7c827a5e0ddbba66425ea54e33430bce8f53c84, 2024-03-20T05:49:22.227Z) OS version: Windows_NT x64 10.0.22631 Modes:

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz (8 x 1800)| |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)|11.88GB (3.54GB free)| |Process Argv|--crash-reporter-id 373f0e80-320e-41c3-9e7e-ce5f2e488809| |Screen Reader|no| |VM|0%|
Extensions (36) Extension|Author (truncated)|Version ---|---|--- better-comments|aar|3.0.2 vscode-tailwindcss|bra|0.11.52 npm-intellisense|chr|1.4.5 path-intellisense|chr|2.8.5 vscode-eslint|dba|2.4.4 python-environment-manager|don|1.2.4 es7-react-js-snippets|dsz|4.4.3 vscode-html-css|ecm|2.0.9 EditorConfig|Edi|0.16.4 prettier-vscode|esb|10.4.0 pip-packages|etm|0.4.3 auto-close-tag|for|0.5.15 auto-rename-tag|for|0.1.10 vscode-pull-request-github|Git|0.85.2024032111 output-colorizer|IBM|0.1.2 error-gutters|Igo|1.0.1 fluent-icons|mig|0.0.18 dotenv|mik|1.0.1 inline-fold|moa|0.2.6 vscode-language-pack-pt-BR|MS-|1.88.2024032009 python|ms-|2024.3.10811014 vscode-pylance|ms-|2024.3.101 remote-wsl|ms-|0.88.0 color-highlight|nau|2.8.0 autodocstring|njp|0.6.1 material-icon-theme|PKi|4.34.0 LiveServer|rit|5.7.9 rust-analyzer|rus|0.4.1890 trailing-spaces|sha|0.4.1 vscode-styled-components|sty|1.7.8 pypi-assistant|twi|1.2.4 errorlens|use|3.16.0 vscodeintellicode|Vis|1.3.1 vscodeintellicode-completions|Vis|1.0.22 rainbow-tags|vol|0.4.1 JavaScriptSnippets|xab|1.8.0 (1 theme extensions excluded)
A/B Experiments ``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 vswsl492cf:30256198 vscod805cf:30301675 vsaa593cf:30376535 py29gd2263:30784851 c4g48928:30535728 962ge761:30841072 pythongtdpath:30726887 pythonidxpt:30768918 pythonnoceb:30776497 asynctok:30898717 dsvsc013:30777762 dsvsc014:30777825 dsvsc015:30821418 pythontestfixt:30866404 pythonregdiag2:30926734 pyreplss1:30879911 pythonmypyd1:30859725 pythoncet0:30859736 pythontbext0:30879054 dsvsc016:30879898 dsvsc017:30880771 dsvsc018:30880772 d6fi2104:30968146 cppperfnew:30980852 d34g3935:30961436 fegfb526:30952798 bg6jg535:30979844 ccp1r6:30958151 pythonait:30973460 jchc7451:30973074 gee8j676:30988845 ```
VSCodeTriageBot commented 4 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!

VSCodeTriageBot commented 4 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!