question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:

  1. Open vscode from WSL: code .
  2. Try installing any of the already installed plugins into WSL, e.g. git lens
  3. 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:open
  • Created 3 years ago
  • Reactions:1
  • Comments:16 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
eladavroncommented, Mar 16, 2021

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.

1reaction
chrmarticommented, Jul 7, 2020

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....

Read more comments on GitHub >

github_iconTop Results From Across the Web

Visual Studio Code - Extensions Fail to Install, Says "Installing ...
1, Windows 10 VS Code. Opens up fine. I try installing any Extension, it just hangs, says Installing. Never installs any extensions. I...
Read more >
Connect (No-Plugin Version) Does Not Start or Respond - IBM
Answer. Sometimes, depending on the environment, Aspera Connect may not launch or respond. This article explores ways to troubleshoot such ...
Read more >
Using WSL 2 in Enterprises - Medium
Configure the WSL 2 distro. Internet access within corporate environments is often managed and limited by proxy servers and custom nameservers.
Read more >
Docker Desktop release notes
Docker Desktop for Mac no longer needs to install the privileged helper ... When Docker Desktop is using “system” proxies and if the...
Read more >
Java on Visual Studio Code FAQ and Wiki
To do so, run command Java: Clean Java Language Server Workspace. How can I use it behind a corporate proxy? When using the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found