Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to Install Visual Studio Code Extensions

I raised this as an issue on the VSCode github


I just installed Visual Studio Code to try it out, but I ran into a problem almost immediately when trying to install any extension (following this).

After pressing ctrl + p or F1 and then typing Extension and selecting Install, the program appears to search for a while. However, after a few seconds to a minute I see this error:

Error getaddrinfo ENOTFOUND marketplace.visualstudio.com marketplace.visualstudio.com:443

enter image description here

And if I click out of the window before this message appears:

Error socket hang up

enter image description here

Has anyone else seen the same error and managed to overcome?


As mentioned in the comments, this seems to be discussed here. However, I can't apply any of the suggested fixes:

  • Changing .host to .hostname in the file src/vs/workbench/node/proxy.ts : I can't find this file on my system.

  • Changing the same (.host to .hostname) in the file C:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\electron-main\sharedProcessMain.js : I can't find the folder electron-main or the file sharedProcessMain.js on my machine.

  • Changing SSLStrict to true

like image 481
Bassie Avatar asked Jun 08 '16 08:06

Bassie


2 Answers

change DNSs to (8.8.8.8, 8.8.4.4)

like image 185
Ehab Al-Qabbani Avatar answered Oct 27 '22 01:10

Ehab Al-Qabbani


I was able to install some extensions after my network admin disabled SSL Inspection on my machine.

This is not ideal as I wouldn't want this turned off for everything.

After re-enabling inspection, I set my User Settings to

"http.proxyStrictSSL": true

I am still unable to download packages, but this does appear to be the problem.

like image 42
Bassie Avatar answered Oct 27 '22 01:10

Bassie