vscode-kotlin icon indicating copy to clipboard operation
vscode-kotlin copied to clipboard

Uses the client's proxy settings on the server when working with the Remote Plugin

Open BastianVoigt opened this issue 5 years ago • 0 comments

Describe the bug Because I have very little privileges on my managed windows machine, I use a Linux VM in the cloud where I have full admin access and I run Visual Studio Code with the "Remote-SSH" extension (https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-ssh). The GUI Client runs on my managed windows desktop machine, the server runs on the Cloud Linux VM.

Now when I open a Kotlin project, it tries to download some stuff from Github and I get the following error message:

Could not update/download Kotlin Debug Adapter: Error: Could not fetch from GitHub releases 
API: RequestError: Error: getaddrinfo ENOTFOUND my-companys-proxy.net:80.

My educated guess is that it tries to download the Kotlin adapter on the Linux server, but it uses the proxy settings from the windows machine, which is an internal DNS name not visible to the cloud instance.

To Reproduce

  • Install the Remote SSH extension
  • Install the Kotlin extension
  • Add a proxy URL in your windows settings
  • Establish an SSH connection to a remote machine as described here: https://code.visualstudio.com/docs/remote/remote-overview
  • Open a kotlin project via the SSH connection
  • Observe the error message as described above

Expected behavior Any code that runs on the server side should use the proxy settings from the linux server environment (actually, no proxy in my case).

Extension version 0.2.10

Additional context Add any other context about the problem here.

BastianVoigt avatar Dec 03 '19 15:12 BastianVoigt