Issue: The VSCode don't have the ability to route the extension network requests to the proxy (only VSCode application network is routed to the proxy)
I - the clean way (applies to network with Zscaler installed)
- ask for a Zscaler power user profile from your IT support
- request an access to those links if blocked by your firewall/proxy
-
https://www.7-zip.org
-
https://github.com
-
https://aka.ms
-
https://artifacts.keil.arm.com
-
https://mirror.msys2.org
-
https://repo.msys2.org
II - The Workaround
- Set VSCode Proxy http://user:pass@domain:port
- Set Git Proxy correctly
- Set IE proxy correctly
- Set VCPKG_ROOT env variable
- Install STM32 Extension
- VCPKG install
- Launch VSCode (re-launch after previous configurations)
- Open VSCode Terminal (view -> terminal)
- Cd c:\
- git clone https://github.com/microsoft/vcpkg
- .\vcpkg\bootstrap-vcpkg.bat (if you got an error check your git proxy)
- In the vcpkg folder create a “downloads” folder
- Download these packages and put them under vcpkg\downloads folder:
- https://www.7-zip.org/a/7z2301-extra.7z
- https://github.com/madler/zlib/archive/v1.3.tar.gz
- Type "vcpkg install 7zip" in the terminal
- Type "vcpkg integrate install" in the terminal
- VCPKG activation
- Open STM32 Extension
- Create a project
- Import the created project
(at this level vcpkg is not functional
)
- In the vcpkg/download folder create a registry folder
- Download this zip and extract it in registry folder
https://artifacts.keil.arm.com/vcpkg-ce-registry/registry.zip
- Open vcpkg-configuration.json file
- Replace the content by this text and save
- Open C:\vcpkg\vcpkg-configuration.json and do this modification
- Copy "c:\vcpkg" content to "C:\Users\xxxxx\AppData\Roaming\Code\User\globalStorage\ms-vscode.vscode-embedded-tools\vcpkg\root" and override files
- Close and restart VSCode