Stuck while trying to install plugins in WSL using corporate proxy
See original GitHub issue- VSCode Version: 1.46.1
- OS Version: Win10 2004
- Tried both using WSL1 and WSL2, both running Ubuntu 20.04
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:
- Open vscode from WSL:
code .
- Try installing any of the already installed plugins into WSL, e.g. git lens
- After clicking the button labelled ‘Install in WSL: <wsl name>’ mostly nothing happens. Sometimes the button text changes to ‘Installing’ for some time - however it will be then stuck there. There’s no progress or error message in any case.
I checked the local and remote extensions host log, too - with trace enabled:
For WSL1 the following entries could be found in the log:
[2020-06-29 18:25:53.882] [remoteagent] [trace] ExtensionManagementService.refreshReportedCache
[2020-06-29 18:25:53.882] [remoteagent] [trace] RequestService#request https://az764295.vo.msecnd.net/extensions/marketplace.json
[2020-06-29 18:26:29.562] [remoteagent] [trace] Started scanning system extensions
[2020-06-29 18:26:29.562] [remoteagent] [trace] Started scanning user extensions
[2020-06-29 18:26:29.564] [remoteagent] [trace] Scanned user extensions: 0
[2020-06-29 18:26:29.611] [remoteagent] [trace] {"errno":-2,"code":"ENOENT","syscall":"open","path":"/home/fooUser/.vscode-server/bin/cd9ea6488829f560dc949a8b2fb789f3cdc05f5d/extensions/node_modules/package.json"}
For WSL2 the same looked like:
[2020-06-29 18:24:31.296] [remoteagent] [trace] {"errno":-2,"code":"ENOENT","syscall":"open","path":"/root/.vscode-server/bin/cd9ea6488829f560dc949a8b2fb789f3cdc05f5d/extensions/node_modules/package.json"}
[2020-06-29 18:24:31.300] [remoteagent] [trace] Scanned system extensions: 30
[2020-06-29 18:24:43.700] [remoteagent] [trace] ExtensionManagementService.refreshReportedCache
[2020-06-29 18:24:43.701] [remoteagent] [trace] RequestService#request https://az764295.vo.msecnd.net/extensions/marketplace.json
[2020-06-29 18:29:13.672] [remoteagent] [trace] Started scanning user extensions
[2020-06-29 18:29:13.673] [remoteagent] [trace] Scanned user extensions: 0
[2020-06-29 18:31:04.845] [remoteagent] [trace] Started scanning system extensions
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
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:16 (4 by maintainers)
Top GitHub Comments
Using VSIX also isn’t much of a solution. Remote / WSL server needs to respect proxy settings or at the very least have its own proxy settings configurable.
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
F1
>Extensions: Install Form VSIX...
.