Reputation: 169
I'm trying to use the [Google Cloud Code plugin for VSCode] (https://marketplace.visualstudio.com/items?itemName=GoogleCloudTools.cloudcode) into my WSL containers.
First time it worked, than I modify the default user on WSL, and now I can't use the plugin. Trying to re-install the gcloud
, use the script install instead of apt-get
.
I also tried on a new WSL container (with and without gcloud installed on it), same error. Re-install the plugin, nothing changed:
[8/4/2021, 11:12:29 AM] Dependency check detected gcloud not installed
[8/4/2021, 11:12:29 AM] Dependency installer starting installation
[8/4/2021, 11:12:30 AM] [warn]ApplicationInsights:CorrelationIdManager[{}]
[8/4/2021, 11:12:33 AM] [error]Dependency installer: gcloud architecture check failed request to https://dl.google.com/dl/cloudsdk/channels/rapid/components-2.json failed, reason: Failed to establish a socket connection to proxies: ["PROXY 127.0.0.1:9000"].
[8/4/2021, 11:12:33 AM] [error]Failed gcloud installation with Error: request to https://dl.google.com/dl/cloudsdk/channels/rapid/components-2.json failed, reason: Failed to establish a socket connection to proxies: ["PROXY 127.0.0.1:9000"]
First it doesn't found my gcloud installation, can't understand why.
Second, VsCode try to connect on a localhost:9000
proxy, what is this for ?
Do you have an idea ?
Thank you.
Upvotes: 3
Views: 2256
Reputation: 26372
Had the same issue with GitHub pull requests and solved it this way:
It is a bit counter intuitive but it applies on both WSL as well. Override was the default, I would first try it with on value and then switch it off entirely.
Upvotes: 0
Reputation: 332
If you get this error in WSL VSCode:
Failed to establish a socket connection to proxies: ["PROXY 127.0.0.1:9000"]
You need to enable http.proxySupport
so your WSL instance can talk over proxy
CTRL+SHIFT+P or CMD+SHIFT+P
Find: Preferences: Open Settings JSON
and add the following line to your settings:
"http.proxySupport": "on"
Et Voila!
Upvotes: 5
Reputation: 76
I was trying to repro the issue in my own Windows 10 machine, here's the step that I took:
We will look at the minikube issue separately, but I cannot seem to repro the proxy error or the managed dependency gcloud installation error. Can you confirm/update the repro step to see if I missed any other action? Also as @siva-kalva commented, feel free to report a github issue with repro step and we can take a look further. Thanks!
Upvotes: 3