-
Notifications
You must be signed in to change notification settings - Fork 78
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
Metals fails to download in VSCode behind a HTTP proxy #70
Comments
Thanks for reporting! Can you try updating |
@olafurpg Thanks for your fast response, this worked 🎉 👍 That said, I think this could be improved. I've set my HTTP proxy in two other places already:
I'd argue that this extension should pick up at least one of these. How about changing
Picking up What do you think? I'd do a pull request for this if you like. |
I didn't know about |
@swiesner-dlr I agree this can be improved, I like your suggestions 👍 |
@gabro I just read the VSCode documentation again and it looks like Perhaps @olafurpg Thanks. Would you like a pull request? If so, which option would you like to see implemented? |
In that case I like respecting metals-vscode/src/extension.ts Line 84 in c2e3196
|
@swiesner-dlr thanks for looking into it. I think it would also be interesting to try setting |
@gabro I saw that option, and I searched VSCode's code for what it does, and from what I saw it only affects HTTP calls from Javascript directly, by injecting proxy settings into the underlying network handler of Electron. I doesn't look like it automatically propagates to subprocesses or offers a dedicated way to get hold of current proxy settings. |
BTW, note that environment variables don't always propagate when starting VS Code as a GUI applications. It's best to start it with the |
Thanks for the reminder! I know that GUI and env variables are a mess on macOS, but this issue affects me only on Linux (I don't have a mac at work), so I'm fine 😊 |
…n/types/node-13.11.0 Bump @types/node from 13.9.8 to 13.11.0
Describe the bug
I get a connection refused error in VSCode when the metals extension (v 1.2.0) activates the first time.
I'm behind a corporate HTTP proxy, but it's properly configured in the
http.proxy
setting of VSCode. I also tried to set thehttp.proxySupport
toon
, but no avail.To Reproduce
Steps to reproduce the behavior:
Expected behavior
metals installs properly.
Screenshots
Installation:
Search terms
HTTP Proxy
The text was updated successfully, but these errors were encountered: