microsoft / vscode

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

Yarn commands hang on latest insiders build #206900

Closed tmikeschu closed 8 months ago

tmikeschu commented 8 months ago

Type: Bug

I noticed my Jest extension was not running tests. When I try any of my package.json scripts via yarn (test, lint, etc)., the command just hangs indefinitely (I've waited as long as 10min). In a regular Terminal shell the commands run as expected. I also have to Force Quit the application. cmd+q closes the window but the app remains in the macos dock/appbar.

VS Code version: Code - Insiders 1.88.0-insider (Universal) (61187a0b6547df5911a0ee259f7afda46bac7ec3, 2024-03-04T05:47:43.948Z) OS version: Darwin arm64 23.2.0 Modes:

System Info |Item|Value| |---|---| |CPUs|Apple M3 Pro (12 x 24)| |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
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|3, 2, 2| |Memory (System)|36.00GB (2.47GB free)| |Process Argv|--crash-reporter-id 0c89c53f-881b-49fb-bb59-28bfc0684956| |Screen Reader|no| |VM|0%|
Extensions (26) Extension|Author (truncated)|Version ---|---|--- Bookmarks|ale|13.4.2 jest-snippets|and|1.9.1 vscode-zipfs|arc|3.0.0 vscode-neovim|asv|1.6.1 vscode-tailwindcss|bra|0.11.43 vscode-eslint|dba|2.4.4 gitlens|eam|2024.3.504 EditorConfig|Edi|0.16.4 prettier-vscode|esb|10.1.0 copilot|Git|1.171.751 copilot-chat|Git|0.14.2024030501 todo-tree|Gru|0.0.226 terraform|has|2.29.4 vscode-angular-components-intellisense|ipa|1.0.0 vscode-language-babel|mgm|0.0.40 vscode-docker|ms-|1.29.0 remote-containers|ms-|0.349.0 vsliveshare|ms-|1.0.5905 vscode-jest|Ort|6.2.2 vs-code-prettier-eslint|rve|6.0.0 partial-diff|ryu|1.4.3 ruby-lsp|Sho|0.6.10 stately-vscode|sta|2.1.0 vscode-icons|vsc|12.7.0 gitblame|wad|10.9.0 vscode-wakatime|Wak|24.4.0 (1 theme extensions excluded)
A/B Experiments ``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 vsc_aa:30263845 vscod805cf:30301675 vsaa593:30376534 py29gd2263:30784851 c4g48928:30535728 962ge761:30841072 pythongtdpath:30726887 welcomedialog:30812478 pythonidxpt:30768918 pythonnoceb:30776497 asynctok:30898717 dsvsc013:30777762 dsvsc014:30777825 dsvsc015:30821418 pythontestfixt:30866404 pythonregdiag2:30926734 pyreplss1:30879911 pythonmypyd1:30859725 pythoncet0:30859736 pythontbext0:30879054 accentitlementst:30870582 dsvsc016:30879898 dsvsc017:30880771 dsvsc018:30880772 bf62j303:30968145 pydisww2:30959801 cppperfcontrol:30963551 d34g3935:30961436 edj9j583:30969294 fegfb526:30952798 bg6jg535:30979844 8f97e687:30976998 ccp2r3:30958153 pythonait:30973460 666c4381:30973073 ```
meganrogge commented 8 months ago

Does this happen if you disable all extensions?

meganrogge commented 8 months ago

A gif would help

tmikeschu commented 8 months ago

Thanks for following up! Looks like it still hangs with all extensions disabled. Here's a loom!

https://www.loom.com/share/7eefd2078b57412eb26bda4c8f0cfb4a

meganrogge commented 8 months ago

Thanks, that's really odd. What does your process explorer look like? Here's mine while running yarn commands successfully

Image

Image

tmikeschu commented 8 months ago

Disabling extensions -> force quitting vscode insiders -> opening and running yarn scripts does work!

https://www.loom.com/share/73b2b0f9038e4b0d93811c393cf094e1

meganrogge commented 8 months ago

You can use Help: Start Extension Bisect to figure out which could be causing the issue

tmikeschu commented 8 months ago

FYI when I run the bisect sequence I get

image