-
Notifications
You must be signed in to change notification settings - Fork 303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to download vscode server from WSL #79
Comments
@aeschli How are you downloading the server? |
@joaomoreno We do |
Yup. That won't really work behind a proxy. |
Is it possible to do the curl/wget from the Windows side and pass the binary result into WSL?
Although I guess there's still going to be problems with proxy for extensions and the like.
|
Also, having problems with this. The docs here (https://code.visualstudio.com/docs/remote/wsl) indicate that adding proxy vars for HTTP_PROXY and/or HTTPS_PROXY on the remote (WSL) side might solve this problem (that would make sense) but it does not seem to fix the issue described here. Further, this doc does not indicate where to add "global proxy settings". I tried I feel like this could probably be fixed pretty easily by just having vscode pick up proxy vars in WSL - either from the user's default shell or from a specific file (the Vagrant proxyconf plugin uses /etc/environment). |
I'm running into the same issue (behind corporate proxy). Any resolution for this?. Here's the log `[2019-05-22 03:54:20.286] Starting VS Code Server inside WSL. [2019-05-22 03:54:20.837] Launching C:\windows\System32\wsl.exe bash -c "./scripts/wslServer.sh 4ca38ce5584d7cd67b435b3c32ef1240c6a29628 insider .vscode-remote " in c:\Users\reddybvy.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.36.0 [2019-05-22 03:54:22.938] Updating server... |
I have found a workaround until this is fixed on the VS Code side if you are behind a proxy.
|
My solution is ~.wgetrc with |
In the upcoming version we now download the server on the Windows side. That way we avoid problems with missing proxy settings or missing certificates. |
@aeschli - in which version of what? WSL or VS Code? I'm currently running VS Code 1.35.1 and still the same issue so I'm assuming it's not in this version? |
@zephyrthenoble - Followed your steps and 1-6 work fine. However, step 7 yields the following in VS Code when I launch a new WSL window from within VS Code:
Any thoughts? |
Found the issue! I use TMUX so if you have it enabled to come up when a shell starts, as I did, it'll render it as not a valid terminal. For example, I have the following in my .bashrc file:
So I commented that out and tried WSL again within VS Code and it works fine. |
VSCode Version: 1.34.0-insider (user setup)
Local OS Version: Windows 10, 1803
Remote OS Version: Ubuntu 18.04
Remote Extension/Connection Type: WSL
Steps to Reproduce:
Worth noting I do need an NTLM proxy, so it's entirely possible that needs to be configured in advance within WSL somehow..
The text was updated successfully, but these errors were encountered: