vscode-cpptools icon indicating copy to clipboard operation
vscode-cpptools copied to clipboard

Updating C/C++ dependencies... Downloading package Error: connect ETIMEDOUT

Open sherkwast opened this issue 10 years ago • 26 comments

Updating C/C++ dependencies...

Downloading package 'Visual Studio Windows Debugger' Failed at stage: downloadPackages Error: connect ETIMEDOUT xxx.xx.x.xx:xxx

Finished

sherkwast avatar Oct 13 '16 14:10 sherkwast

I am in Taiwan. I found it was blocked by my company's proxy. After using my phone's sharing network, everything was normal.

tallplay avatar Aug 08 '17 04:08 tallplay

@sean-mcmanus @tallplay Maybe it was blocked by my company's proxy too. I am in a company forbidden to access internet freely. I figure out a way to install it. Download it, then shut up cpptools' https requirement, use local python django http server to ship it. It worked fine. My mac in my home have not encounter this problem, it works very well. Hope VS Code and Cpptools is better and better. It make C language programming easier. Visusal Studio is too vast to make me lost.

Yensan avatar Aug 08 '17 10:08 Yensan

@sean-mcmanus hi, i just experienced the same issue at version 1.17.2 tried to check the package.json file but the link isn't in the ones you mentioned before.. the ones here are the ff.

		"description": "C/C++ language components (Linux)",
		"url": "https://go.microsoft.com/fwlink/?linkid=859832",

		"description": "C/C++ language components (OS X)",
		"url": "https://go.microsoft.com/fwlink/?linkid=859833",

		"description": "C/C++ language components (Windows)",
		"url": "https://go.microsoft.com/fwlink/?linkid=859834",

Is there a workaround i can do to install the c++ extension..?

Update: I just found another thread like this, followed what other people suggested and managed to make it work. Basically, just set your proxy to the http.proxy parameter in the settings and it should work fine. Cheers!

DatuNinuno avatar Oct 20 '17 02:10 DatuNinuno

I have another way to ship this extension:

  1. install / update in normal environment, then zip the extension file
  2. download the extension file in https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools , such as ms-vscode.cpptools-0.14.0.vsix
  3. transfer zip file and vsix file in special environment
  4. install the extension by vsix file, and unzip the files into folder
  5. enjoy it

Yensan avatar Oct 20 '17 12:10 Yensan

@DatuNinuno You can manually download the new fwlink binaries. Definitely don't try to use the old binaries with the new extension or the results are unpredictable and may crash or do other unintended things.

sean-mcmanus avatar Oct 20 '17 18:10 sean-mcmanus

@Yensan If you zip the installed/downloaded extension, there shouldn't be any need to also install the .vsix (it would just copy over files that already exist)...or am I mistaken? You may also need to use some program like tar that maintains the executable permissions (or re-run chmod to make the 2 executables runnable on Linux/Mac).

sean-mcmanus avatar Oct 20 '17 18:10 sean-mcmanus