espressif / vscode-esp-idf-extension

Visual Studio Code extension for ESP-IDF projects
Apache License 2.0
1.03k stars 298 forks source link

ESP-IDF Setup got stuck in WSL2 (VSC-1483) #1303

Open liyafe1997 opened 1 week ago

liyafe1997 commented 1 week ago

OS

Windows

Operating System version

Win11 & WSL2 & Ubuntu 22.04

Visual Studio Code version

1.93.0

ESP-IDF version

No

Python version

3.10.2

Doctor command output

https://pastebin.com/rGccpbr0 It is too long so I put in pastebin.

Extension

No response

Description

  1. Install an Ubuntu 22.04 in WSL2
  2. Open VSCode in Windows, connect to the WSL2 Ubuntu, install ESP-IDF extension.
  3. Click Configure ESP-IDF Extension , whatever use EXPRESS Setup or ADVANCED, just want to setup ESP-IDF in the VSCode Extension.
  4. After finish Installing ESP-IDF, it will stuck on the first step of Installing ESP-IDF Tools, it is Downloading GDB for Xtensa.

Screenshot 2024-09-06 100625

I am 100000% sure it is not the networking problem. And I don't have any proxy settings. I can directly wget that URL:

$ wget https://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v14.2_20240403/xtensa-esp-elf-gdb-14.2_20240403-x86_64-linux-gnu.tar.gz
--2024-09-06 10:08:21--  https://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v14.2_20240403/xtensa-esp-elf-gdb-14.2_20240403-x86_64-linux-gnu.tar.gz
Resolving github.com (github.com)... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/140236854/73266772-b6cb-48ff-8b99-e9f22eb7630f?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20240906%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240906T080821Z&X-Amz-Expires=300&X-Amz-Signature=dfcfc0b578b6c48dbaf71a642230654041a8ab2af1bae6a92c9e5b8d9f8d853f&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=140236854&response-content-disposition=attachment%3B%20filename%3Dxtensa-esp-elf-gdb-14.2_20240403-x86_64-linux-gnu.tar.gz&response-content-type=application%2Foctet-stream [following]
--2024-09-06 10:08:21--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/140236854/73266772-b6cb-48ff-8b99-e9f22eb7630f?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20240906%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240906T080821Z&X-Amz-Expires=300&X-Amz-Signature=dfcfc0b578b6c48dbaf71a642230654041a8ab2af1bae6a92c9e5b8d9f8d853f&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=140236854&response-content-disposition=attachment%3B%20filename%3Dxtensa-esp-elf-gdb-14.2_20240403-x86_64-linux-gnu.tar.gz&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.108.133, 185.199.109.133, 185.199.110.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 31010320 (30M) [application/octet-stream]
Saving to: ‘xtensa-esp-elf-gdb-14.2_20240403-x86_64-linux-gnu.tar.gz’

xtensa-esp-elf-gdb-14.2_20240 100%[=================================================>]  29.57M  43.2MB/s    in 0.7s

2024-09-06 10:08:22 (43.2 MB/s) - ‘xtensa-esp-elf-gdb-14.2_20240403-x86_64-linux-gnu.tar.gz’ saved [31010320/31010320]

Debug Message

No

Other Steps to Reproduce

By the way, I can manually run ./install.sh from the ESP-IDF dir and it can setup successfully. Everything works fine, just have trouble to setup in VSCode ESP extension.

I have checked existing issues, online documentation and the Troubleshooting Guide

brianignacio5 commented 1 week ago

If you do Preferences: Open Settings (UI) and search for http.proxy or http.proxyStrictSSL do you see anything set ? Make sure to check User Workspace or WSL tabs.

liyafe1997 commented 1 week ago

If you do Preferences: Open Settings (UI) and search for http.proxy or http.proxyStrictSSL do you see anything set ? Make sure to check User Workspace or WSL tabs.

No, I have double confirmed, also checked export there are no proxy things in my environment. I never use proxy on this machine.