microsoft / vscode

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

Can't update extensions #128146

Closed runxel closed 3 years ago

runxel commented 3 years ago

Issue Type: Bug

Trying to force updates with the option ("Check for Updates") in the extension tab. Error message is popping up: "XHR failed".

In the dev tools I see that the request failed, pointing to line 42 in "request.ts" `

grafik

grafik

grafik

VS Code version: Code 1.57.1 (507ce72a4466fbb27b715c3722558bb15afa9f48, 2021-06-17T13:28:07.755Z) OS version: Windows_NT x64 10.0.19042 Restricted Mode: No

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-5700HQ CPU @ 2.70GHz (8 x 2694)| |GPU Status|2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled| |Load (avg)|undefined| |Memory (System)|15.92GB (3.61GB free)| |Process Argv|--crash-reporter-id 6ad73eb2-e24b-4305-a8ef-19341314fe6c| |Screen Reader|no| |VM|0%|
Extensions (49) Extension|Author (truncated)|Version ---|---|--- calculate|aca|2.1.0 ifc-syntax|Ala|0.1.4 Bookmarks|ale|13.1.0 spellright|ban|3.0.58 change-color-format|bbu|1.1.0 gitignore|cod|0.7.0 aoe2-rms|del|0.3.3 rhinopython|des|0.1.11 dotfiles-syntax-highlighting|dot|0.1.0 vscode-gitignore-syntax|dun|0.1.2 EditorConfig|Edi|0.16.4 vscode-open-in-application|fab|1.0.6 auto-close-tag|for|0.5.10 remotehub|Git|0.10.1 gc-excelviewer|Gra|3.0.42 gdl|Gra|1.24.3 vscode-guid|hea|1.4.20 reg|ion|1.0.3 aoe2-aiscript|jvi|0.1.7 vscode-markdown-notes|kor|0.0.24 nim|kos|0.6.6 vscode-apache|mrm|1.2.0 vscode-duplicate|mrm|1.2.1 csharp|ms-|1.23.12 python|ms-|2021.6.944021595 vscode-pylance|ms-|2021.7.1 jupyter|ms-|2021.6.999662501 remote-ssh|ms-|0.65.7 remote-ssh-edit|ms-|0.65.7 remote-wsl|ms-|0.56.5 cpptools|ms-|1.4.1 hexeditor|ms-|1.7.1 powershell|ms-|2021.6.2 sublime-keybindings|ms-|4.0.9 resourcemonitor|mut|1.0.7 printcode|nob|3.0.0 material-icon-theme|PKi|4.8.0 polacode|pnp|0.3.4 run-on-save|puc|1.4.2 gruvbox-material|sai|6.4.5 sonarlint-vscode|Son|2.0.0 language-stylus|sys|1.11.0 vscode-open-in-github|sys|1.15.0 markdown-links|tch|0.8.0 open-in-browser|tec|2.0.0 shell-launcher|Tyr|0.4.1 sort-lines|Tyr|1.9.0 vscode-icons|vsc|11.5.0 vscode-todo-highlight|way|1.0.4
vscodebot[bot] commented 3 years ago

(Experimental duplicate detection) Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

deepak1556 commented 3 years ago

Do you see the issue with latest stable 1.58 ? If so, can you attach the network log following these steps,

runxel commented 3 years ago

@deepak1556 Hey there, thanks for asking!

I had 2 VSC windows opened. It looks like the one with the failing XHR was just stuck and remained at 1.57 which obviously broke some things there. After I force quit VSC and restarted everything seems to look fine and I can't reproduce the behaviour any longer.

So this is a classic "XY" bug: Instead of a broken XHR the update process seems to be broken when there is more than one VSC window opened.