microsoft / vscode

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

Initializing JS/TS language features crash all the time #221266

Closed VincentWeyh closed 1 month ago

VincentWeyh commented 2 months ago

Type: Bug

I'm just opening ts files and the Initializing JS/TS language features crash all the time

VS Code version: Code 1.91.0 (ea1445cc7016315d0f5728f8e8b12a45dc0a7286, 2024-07-01T18:52:22.949Z) OS version: Windows_NT x64 10.0.22631 Modes: Remote OS version: Linux x64 5.15.153.1-microsoft-standard-WSL2

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i5-9600K CPU @ 3.70GHz (6 x 3696)| |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)|31.94GB (13.05GB free)| |Process Argv|--folder-uri vscode-remote://wsl%2Bubuntu/home/vincent/glb-hotels --crash-reporter-id 216d0dc8-34c2-491a-b8f4-bc05d0bf91c0| |Screen Reader|no| |VM|0%| |Item|Value| |---|---| |Remote|WSL: Ubuntu| |OS|Linux x64 5.15.153.1-microsoft-standard-WSL2| |CPUs|Intel(R) Core(TM) i5-9600K CPU @ 3.70GHz (6 x 0)| |Memory (System)|15.59GB (10.42GB free)| |VM|0%|
Extensions (14) Extension|Author (truncated)|Version ---|---|--- remote-wsl|ms-|0.88.2 vs-keybindings|ms-|0.2.1 material-icon-theme|PKi|5.4.2 vscode-eslint|dba|3.0.10 gitlens|eam|15.1.0 EditorConfig|Edi|0.16.4 prettier-vscode|esb|10.4.0 copilot|Git|1.211.0 copilot-chat|Git|0.17.0 vs-keybindings|ms-|0.2.1 vsliveshare|ms-|1.0.5932 vsliveshare-pack|ms-|0.4.0 material-icon-theme|PKi|5.4.2 volar|Vue|1.8.27 (2 theme extensions excluded)
A/B Experiments ``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805cf:30301675 binariesv615:30325510 vsaa593:30376534 py29gd2263:31024239 vscaat:30438848 c4g48928:30535728 azure-dev_surveyone:30548225 2i9eh265:30646982 962ge761:30959799 pythongtdpath:30769146 welcomedialog:30910333 pythonnoceb:30805159 asynctok:30898717 pythonregdiag2:30936856 pythonmypyd1:30879173 h48ei257:31000450 pythontbext0:30879054 accentitlementsc:30995553 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 jchc7451:31067544 chatpanelt:31048053 dsvsc021:30996838 01bff139:31013167 pythoncenvpt:31062603 a69g1124:31058053 dvdeprecation:31068756 dwnewjupyter:31046869 impr_priority:31082723 ```
mjbvz commented 2 months ago

Does this reproduce in the latest VS Code insiders build with all extensions disabled?

The most likely is Volar

johnsoncodehk commented 2 months ago

The most likely is Volar

I don't think in this case, Vue.volar only includes the TS plugin when >=2.0.0, this report is using Vue.volar 1.8.27, and Vue.vscode-typescript-vue-plugin is not installed, so the Vue extension will not affect tsserver.

@VincentWeyh The crash is more likely related to the upgrade of VSCode 1.91 to TS 5.5. It may be helpful if you can provide the log file opened by executing the "TypeScript: Open TS Server log" command.

VincentWeyh commented 2 months ago

Does this reproduce in the latest VS Code insiders build with all extensions disabled?

The most likely is Volar

I think the crash happens in plain ts files too, after some times.

The most likely is Volar

I don't think in this case, Vue.volar only includes the TS plugin when >=2.0.0, this report is using Vue.volar 1.8.27, and Vue.vscode-typescript-vue-plugin is not installed, so the Vue extension will not affect tsserver.

@VincentWeyh The crash is more likely related to the upgrade of VSCode 1.91 to TS 5.5. It may be helpful if you can provide the log file opened by executing the "TypeScript: Open TS Server log" command.

Thanks for the hint, I'll have a look on that !

(I didn't mentioned it but I'm using WSL)

mjbvz commented 2 months ago

Did you test in insiders with all extensions disabled tho? Make sure to restart VS Code too after disabling extensions too to ensure the plugin isn't loaded

vs-code-engineering[bot] commented 1 month 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!