microsoft / vscode

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

Typescript Keeps Crashing #157981

Closed xing5 closed 2 years ago

xing5 commented 2 years ago

Type: Bug

Recently added tsconfig-path, tsyringe, typeorm to the project.

VS Code version: Code 1.70.0 (da76f93349a72022ca4670c1b84860304616aaa2, 2022-08-04T04:38:16.462Z) OS version: Windows_NT x64 10.0.22000 Modes: Remote OS version: Linux x64 5.10.16.3-microsoft-standard-WSL2 Remote OS version: Linux x64 5.10.16.3-microsoft-standard-WSL2 Remote OS version: Linux x64 5.10.16.3-microsoft-standard-WSL2 Remote OS version: Linux x64 5.10.16.3-microsoft-standard-WSL2 Remote OS version: Linux x64 5.10.16.3-microsoft-standard-WSL2

System Info |Item|Value| |---|---| |CPUs|12th Gen Intel(R) Core(TM) i7-12800H (20 x 2803)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
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_renderer: enabled_on
video_decode: enabled
video_encode: unavailable_off
vulkan: disabled_off
webgl: enabled
webgl2: enabled| |Load (avg)|undefined| |Memory (System)|15.69GB (0.83GB free)| |Process Argv|--crash-reporter-id 8ad5868d-0d8c-49fd-b425-27217cda9ee0| |Screen Reader|no| |VM|0%| |Item|Value| |---|---| |Remote|WSL: Ubuntu| |OS|Linux x64 5.10.16.3-microsoft-standard-WSL2| |CPUs|12th Gen Intel(R) Core(TM) i7-12800H (20 x 2803)| |Memory (System)|7.61GB (0.64GB free)| |VM|0%| |Item|Value| |---|---| |Remote|WSL: Ubuntu| |OS|Linux x64 5.10.16.3-microsoft-standard-WSL2| |CPUs|12th Gen Intel(R) Core(TM) i7-12800H (20 x 2803)| |Memory (System)|7.61GB (0.64GB free)| |VM|0%| |Item|Value| |---|---| |Remote|WSL: Ubuntu| |OS|Linux x64 5.10.16.3-microsoft-standard-WSL2| |CPUs|12th Gen Intel(R) Core(TM) i7-12800H (20 x 2803)| |Memory (System)|7.61GB (0.64GB free)| |VM|0%| |Item|Value| |---|---| |Remote|WSL: Ubuntu| |OS|Linux x64 5.10.16.3-microsoft-standard-WSL2| |CPUs|12th Gen Intel(R) Core(TM) i7-12800H (20 x 2803)| |Memory (System)|7.61GB (0.65GB free)| |VM|0%| |Item|Value| |---|---| |Remote|WSL: Ubuntu| |OS|Linux x64 5.10.16.3-microsoft-standard-WSL2| |CPUs|12th Gen Intel(R) Core(TM) i7-12800H (20 x 2803)| |Memory (System)|7.61GB (0.64GB free)| |VM|0%|
Extensions (27) Extension|Author (truncated)|Version ---|---|--- terraform|4op|0.2.5 project-manager|ale|12.6.1 vscode-react-typescript|inf|1.3.1 vscode-edge-devtools|ms-|2.1.0 remote-containers|ms-|0.245.0 remote-ssh|ms-|0.84.0 remote-ssh-edit|ms-|0.80.0 remote-wsl|ms-|0.66.3 vscode-remote-extensionpack|ms-|0.21.0 vim|vsc|1.23.2 project-manager|ale|12.6.1 gitignore|cod|0.9.0 vscode-eslint|dba|2.2.6 git-extension-pack|don|0.1.3 githistory|don|0.6.19 gitlens|eam|12.1.2 terraform-autocomplete|erd|0.0.8 prettier-vscode|esb|9.5.0 vscode-jest-runner|fir|0.4.48 copilot|Git|1.40.6471 svg|joc|1.4.19 ts-debug|kak|0.0.6 vscode-docker|ms-|1.22.1 makefile-tools|ms-|0.5.0 vsliveshare|ms-|1.0.5683 prisma|Pri|4.2.0 vscode-open-in-github|ziy|1.3.6
A/B Experiments ``` vsliv368:30146709 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vstes627:30244334 vslsvsres303:30308271 pythonvspyl392:30443607 vserr242cf:30382550 pythontb:30283811 vsjup518:30340749 pythonvspyt551cf:30345471 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 vscoreces:30445986 pythondataviewer:30285071 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 cmake_vspar411:30542924 vsaa593:30376534 pythonvs932:30410667 wslgetstarted:30449410 cppdebug:30492333 pylanb8912cf:30529770 vsclangdc:30486549 c4g48928:30535728 hb751961:30543456 dsvsc012cf:30540253 ```
vscodenpa commented 2 years 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.70.1. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

mjbvz commented 2 years ago

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

xing5 commented 2 years ago

I tried the insider version and the js/typscript still crashes.

xing5 commented 2 years ago

Type: Bug

a

VS Code version: Code - Insiders 1.71.0-insider (eebdf8174b087979ae6af103f6f2e2f6f9062056, 2022-08-12T05:17:00.323Z) OS version: Windows_NT x64 10.0.22000 Modes: Sandboxed: Yes Remote OS version: Linux x64 5.10.16.3-microsoft-standard-WSL2

System Info |Item|Value| |---|---| |CPUs|12th Gen Intel(R) Core(TM) i7-12800H (20 x 2803)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
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_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off| |Load (avg)|undefined| |Memory (System)|15.69GB (0.63GB free)| |Process Argv|--folder-uri=vscode-remote://wsl+Ubuntu/home/xingwu/workspace/openloot/TGVault --remote=wsl+Ubuntu --crash-reporter-id b7c104f8-c323-4019-b0e3-a5b067548412| |Screen Reader|no| |VM|0%| |Item|Value| |---|---| |Remote|WSL: Ubuntu| |OS|Linux x64 5.10.16.3-microsoft-standard-WSL2| |CPUs|12th Gen Intel(R) Core(TM) i7-12800H (20 x 2803)| |Memory (System)|7.61GB (0.37GB free)| |VM|0%|
Extensions (4) Extension|Author (truncated)|Version ---|---|--- remote-wsl|ms-|0.66.3 vim|vsc|1.23.2 vscode-docker|ms-|1.22.1 vscode-typescript-next|ms-|4.9.20220811
A/B Experiments ``` vsliv695:30137379 vsins829:30139715 vsliv368:30146709 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vstes627:30244334 vslsvsres303:30308271 pythonvspyl392:30422396 pythontb:30258533 pythonvspyt551cf:30291413 pythonptprofiler:30281269 vshan820:30294714 pythondataviewer:30285072 vscod805cf:30301675 bridge0708:30335490 bridge0723:30353136 cmake_vspar411:30542924 vsaa593:30376534 pythonvs932:30404738 wslgetstarted:30449409 cppdebug:30492333 pylanb8912:30522163 vsclangdf:30492506 c4g48928:30535728 dsvsc012cf:30540253 ```
mjbvz commented 2 years ago

Please try collecting the TS Server log from the crashed instance:

  1. Set "typescript.tsserver.log": "verbose"
  2. Restart VS Code and reproduce the problem
  3. Open the TypeScript section of the output panel
  4. At the very top, find the first line that prints to path to the semantic error log file. It should look something like:

    [Info  - 19:54:59.247] <semantic> Log file: /Users/matb/Library/Application Support/Code - Insiders/logs/20200213T104930/exthost55/vscode.typescript-language-features/tsserver-log-ZT2zau/tsserver.log

    That file contains the typescript logs.

Look through that log file for the first error or stack trace you see. If you can share the log, I can also take a look to see if anything stands out

⚠️Warning: The TypeScript log may include information from your workspace, including file paths and source code. If you have any concerns about posting this publicly on Github, just let me know and we can arrange something else. On our side, we only use these logs to investigate issues like this

vscodenpa commented 2 years 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!