raspberrypi / pico-vscode

The official VS Code extension for Raspberry Pi Pico development. It includes several features to simplify project creation and deployment.
https://marketplace.visualstudio.com/items?itemName=raspberry-pi.raspberry-pi-pico
Mozilla Public License 2.0
131 stars 16 forks source link

Users in China unable create project #34

Open CC52242 opened 3 months ago

CC52242 commented 3 months ago

I'm a developer in China. I can get this plug-in from vscode-market. But I cannot creat project in this plug-in.

  1. On the first try, I creat project in default setting, and an error pops up, it says, "Failed to download and install SDK and/or toolchain."
  2. After this, I tried to manually specify the PATH of GIT and other software, and also tried to modify the GITHUB token. But it didn't work.
  3. Then I tried setting up the http proxy and https proxy in Windows PATH, but it still didn't work.

Note: After I click Create Project, the plug-in doesn't create anything in the project folder I specified. I can see that the proxy forwarded the plugin access request to github. But I don't see anything in Taskmanager that looks like is downloading.

I'm sure the proxy software I'm using is working properly. It could also be something I missed when setting up the proxy, but I have no clue. I hope someone can provide a solution, such as an alternative mirror site that can be accessed by Chinese users, or allow the SDK's PATH to be manually specified in the plugin Settings. Or maybe, bring the windows standalone setup back? (By the way, this pack work's great on my pc. )

will-v-pi commented 3 months ago

The extension will take quite a while to download and unzip everything on the first run - it will only create the project folder once everything has been downloaded.

Do you get any errors when trying to create a project using the proxy?

CC52242 commented 3 months ago

The extension will take quite a while to download and unzip everything on the first run - it will only create the project folder once everything has been downloaded.

Do you get any errors when trying to create a project using the proxy?

From the first time I tried to download without an proxy to the time I adjusted (probably) all the adjustable Settings, It just says "Failed to download and install SDK and/or toolchain." It can load the project configuration interface with or without using the proxy. But it cannot go futher. Seconds after clicking the Create button, the error message popped up.

will-v-pi commented 3 months ago

I'm afraid that without being in China I don't think I'm going to be able to debug this. I've created a locations.md file in #42 which has details for manually installing all the required tools - I would suggest you give that a go, if the extension is failing to download them?

We'd also welcome any PRs from other users in China if they have any solutions

cuicuixuan commented 1 month ago

well i'm also a developer in China ,i met that problem too and annoyed me for atleast two weeks ,now i fixed that problem i mean your proxy was not configured correctly,In the case of clash verge, you need to run in tun mode, tun mode is a virtual network device that intercepts all network traffic from the operating system and redirects it to clash for proxiing, so that you can download the required toolchain normally hope that reply can help to you

umeiko commented 2 days ago

My problem is when installing toolchain, shown faild and then stucked. I'm also in China mainland. This is the error output logs, i hope that could helps you.

image