-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
Stuck while trying to install plugins in WSL using corporate proxy #101297
Comments
btw.: I just verified that when installing the native linux code binaries - and using them from within WSL - I'm able to install plugins. Unfortunately they will not show up as installed when I connect using the WSL connection from the Windows VSCode. |
You can browse and download the extensions on the marketplace (https://marketplace.visualstudio.com/vscode) and then install them while you are connect to WSL (that will install them in WSL, not locally) using |
You would use the website I linked to search for "git" and download the VSIX. Not the built-in extension search in VS Code. |
Sorry for the confusion created by that screen shot. Actually I did download it manually and use the Install from vsix option. Just searched for git in the built in extension view to see whether anything happened. |
If there’s any other log files I could provide please let me know. Actually have to admit that I forgot how to retrieve the logs I did when submitting the issue 😖 |
Ok - seems like that when waiting long enough (~ 5 - 10 min) at some point at least the vsix installation seems to work, :) |
@sandy081 For the VSIX installation taking long / hanging. |
While installing from VSIX I reach to Marketplace to get metadata of the extension if exists. |
Using VSIX also isn't much of a solution. |
Not sure whether there has been some changes to the corporate proxy setup - however at least for me it is back working using the latest versions of vscode. |
For me it still gives this message:
And if I try to install something with dependencies through VSIX (like Python):
This despite having the proxy defined in my settings, in my WSL environment variables, etc... VSCode version 1.54.3 |
I set my proxy settings in .wgetrc and it resolved the issue. |
Hi @hagejosephPFG I am also facing the same issue can you please tell where is .wgetrc and how did your .wgetrc look like after adding proxy settings to it |
See here: https://stackoverflow.com/questions/11211705/how-to-set-proxy-for-wget#answer-11211812 I set those three items in ~/.wgetrc |
I'm running code behind a corporate network, have http_proxy and https_proxy (on both Windows and WSL set to the respective proxy server.
Internet access is both working for Windows (and plugin install, too) and from WSL side (except the code plugin installation.
Maybe I missed the instructions on how to operate visual studio code with WSL + proxy?
Steps to Reproduce:
code .
I checked the local and remote extensions host log, too - with trace enabled:
For WSL1 the following entries could be found in the log:
For WSL2 the same looked like:
I checked the trace log after starting code using
--log=trace
- there seem to be some errors during the plugin discovery - however I'm not sure.I attached a slightly modified version (replaced my user name - and left only the tail of the log) of the log.
sharedprocess.log
Does this issue occur when all extensions are disabled?: n/a
The text was updated successfully, but these errors were encountered: