Skip to content
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

IntelliCode can't download models when VSCode is connected to a remote which requires a HTTP proxy #93

Closed
trobr opened this issue May 7, 2019 · 6 comments

Comments

@trobr
Copy link

trobr commented May 7, 2019

Product and Version [VS/VSCode]:Version: 1.34.0-insider (user setup)
OS Version [macOS/Windows]:Windows_NT x64 10.0.17763
Remote OS Version: Ubuntu 16.04
IntelliCode Extension Version: 1.1.6
Target Platform or Language [e.g. Node.js]: Python

Steps to Reproduce / Scenario:

1.Open remote floder with Remote Development extension
2.VSIntelliCode can not download language server

the output window show this messgae:

Acquiring model 'intellisense-members' for python
Querying IntelliCode service for available models.

image

@vivlimmsft
Copy link
Collaborator

@trobr, is the Ubuntu 16.04 machine you're connecting to behind a firewall and/or does it require a proxy to access the internet?

If so, can you please check the value of $HTTP_PROXY from VSCode's integrated terminal?

If you are not behind a firewall/proxy, could you please try running this on the remote to see if it can reach the IntelliCode service?

$ curl https://prod.intellicode.vsengsaas.visualstudio.com/api/v1/model/common/python/intellisense-members/output/latest

Our service should respond with a JSON object similar to the following:

ubuntu@ubuntu:~$ curl https://prod.intellicode.vsengsaas.visualstudio.com/api/v1/model/common/python/intellisense-members/output/latest
{"model":{"id":"88630A1B4C077752096ECAA576B92C7D3FA1","friendlyName":"Base (Python)","language":"python","analyzer":"intellisense-members"},"output":{"id":"BC98A65409D042A99DDAF47DC30E1530","modelId":"88630A1B4C077752096ECAA576B92C7D3FA1","targetedInputIds":[],"version":1556898645147,"status":"OutputReady","trainingResults":{"displayClasses":[]},"blob":{"schema":"azureBlobStorage","name":"Output_88630A1B4C077752096ECAA576B92C7D3FA1_BC98A65409D042A99DDAF47DC30E1530","azureBlobStorage":{"readSasToken":"https://cdsmprodstg.blob.core.windows.net/models-prod-output/Output_88630A1B4C077752096ECAA576B92C7D3FA1_BC98A65409D042A99DDAF47DC30E1530?sv=2018-03-28&sr=b&sig=2LeZIFA6mOArlTj%2FAb2rp6QOEm7RmcOrRx29slYyyvY%3D&se=2019-05-07T20%3A26%3A52Z&sp=r"}},"created":"2019-05-03T15:50:45.1474524Z","updated":"2019-05-03T15:50:45.6375847Z"}}ubuntu@ubuntu:~$ 

@trobr
Copy link
Author

trobr commented May 8, 2019

Thanks!My remote machine is behind a proxy,But whether I turn the proxy on or off, I get the same result.When I run this code in my remote machine:

curl https://prod.intellicode.vsengsaas.visualstudio.com/api/v1/model/common/python/intellisense-members/output/latest

I got this result:

{"model":{"id":"88630A1B4C077752096ECAA576B92C7D3FA1","friendlyName":"Base (Python)","language":"python","analyzer":"intellisense-members"},"output":{"id":"BC98A65409D042A99DDAF47DC30E1530","modelId":"88630A1B4C077752096ECAA576B92C7D3FA1","targetedInputIds":[],"version":1556898645147,"status":"OutputReady","trainingResults":{"displayClasses":[]},"blob":{"schema":"azureBlobStorage","name":"Output_88630A1B4C077752096ECAA576B92C7D3FA1_BC98A65409D042A99DDAF47DC30E1530","azureBlobStorage":{"readSasToken":"https://cdsmprodstg.blob.core.windows.net/models-prod-output/Output_88630A1B4C077752096ECAA576B92C7D3FA1_BC98A65409D042A99DDAF47DC30E1530?sv=2018-03-28&sr=b&sig=UfAUL6QnjdySf7S5T8X5ezAnucrETvjH7bpWj%2BCybzA%3D&se=2019-05-08T03%3A27%3A02Z&sp=r"}},"created":"2019-05-03T15:50:45.1474524Z","updated":"2019-05-03T15:50:45.6375847Z"}}(pytorch)

image

This issue seems to be caused by the fact that the IntelliCode service can not download automatically in remote machine.

@vivlimmsft
Copy link
Collaborator

It seems that proxy settings are forwarded from local VSCode to the remote: microsoft/vscode-remote-release#213. I was able to reproduce this by setting the http.proxy setting locally and connecting to a remote, after which the IntelliCode extension could no longer reach the service.

You should be able to work around this by adding your proxy config to the remote settings. That will override any proxy settings that are being sent from local VSCode.

image

{
    "http.proxy": "http://127.0.0.1:8123"
}

Let me know if that works for you.

@trobr
Copy link
Author

trobr commented May 8, 2019

It seems that proxy settings are forwarded from local VSCode to the remote: microsoft/vscode-remote-release#213. I was able to reproduce this by setting the http.proxy setting locally and connecting to a remote, after which the IntelliCode extension could no longer reach the service.

You should be able to work around this by adding your proxy config to the remote settings. That will override any proxy settings that are being sent from local VSCode.

image

{
    "http.proxy": "http://127.0.0.1:8123"
}

Let me know if that works for you.

You are right! It‘s useful for me.

Thanks!

@trobr trobr closed this as completed May 8, 2019
@vivlimmsft vivlimmsft changed the title Do not work with Remote Development IntelliCode can't download models when VSCode is connected to a remote which requires a HTTP proxy May 9, 2019
@vivlimmsft
Copy link
Collaborator

Great, I'm glad that worked for you. I updated the title to make it easier for others to find if they have the same issue.

gewarren pushed a commit that referenced this issue Dec 23, 2019
Documentation update for turn on/off Python deep learning experiment
@Winson-Huang
Copy link

it seems you use remote-ssh, in remote-wsl it seems a bit different. If proxy service is in windows, use 127.0.0.1 in remote setting will be helpless, see #165 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants