-
Notifications
You must be signed in to change notification settings - Fork 79
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
Missing HTTP proxy settings for Coursier when fetching Metals #1497
Comments
Thanks for reporting, looks like another issue we need to fix, that should be fairly easy I think. Will take a look! |
I've been encountering this issue with multiple colleagues since version 1.30.0 and with version 1.34.0 the issue is back. Here are my user settings:
I have removed any additional environment variables (e.g. JAVA_OPTS) and specific settings (e.g. ~/.bloop/bloop.json and ~/.config/coursier/mirror.properties) except ~/.config/coursier/credentials.properties I've just been running multiple tests removing ~/.cache/coursier/ each time. Things are working with version 1.29.0, 1.32.0 and 1.33.0 (see attached files). There are two anomalies with the working versions, as well: Bloop fails to start initially, requiring an explicit 'Import build'. That leads to more dependencies being downloaded. That works, as the build server starts afterwards and metals is fully working. However, the download of the bloop dependencies gets reported as ERROR. One more oddity: I have to specify -Djavax.net.ssl.trustStore for coursier even though the CA certificate has been added to /opt/jdk and any other build tool (maven and sbt) uses the certificte from there... metals_log_1.29.0.txt Edit: Grammar. |
@LeUser111 The fix in #1498 was released in v1.32.0 and reverted in v1.34.0, which explains the changes you're seeing. @tgodzik Why did it need to be reverted? I can submit a modified PR if needed. |
The extension on windows stopped working at all so I had to revert some of the changes for now. I plan to get back to it as soon as I can |
Looks like we can't add the properties on windows in coursier. Adding back the changes aside from that in #1510 I will double check if it works and then will release new version |
This should be now fixed, any chance anyone can confirm? You would need to switch to a prerelease version. I will also want to check if everything works correctly on windows before doing the release. |
@tgodzik The pre-release version is working :) Thank you for the quick fix and thank you for your work on metals in general! It's coming along really nicely :) @mliarakos Thanks for the initial fix! |
Thanks for checking! I released an official version, there still might be some issue on Windows though. |
The release version 1.35.0 is working fine on several machines for us :) Good luck with Windows! |
Describe the bug
Since v1.30.0, Coursier fails to fetch Metals when an HTTP proxy is needed.
To Reproduce
Steps to reproduce the behavior:
serverProperties
setting with the HTTP proxy, e.g.:-Dhttps.proxyHost=...
-Dhttps.proxyPort=...
This happens both if Coursier is already present on the PATH and if fetched by the extension.
Expected behavior
During the install process Coursier uses the HTTP proxy configuration from the
serverProperties
setting to successfully fetch Metals.Screenshots
None.
Installation:
Additional context
In v1.29.0 and earlier the
fetchMetals
method includes theserverProperties
settings as JVM arguments when invoking the default included Coursier. However, in v1.30.0 and newer no external settings are included in the Coursier call to fetch Metals.I believe the same issue occurs when trying to specify an HTTP proxy using
$JAVA_OPTS
or the.jvmopts
file. Those options are included in v1.29.0, but not in v1.30.0. This is just based on the code, I wasn't using it that way so I didn't test it.This issue might also be present in v1.29.0 when using an external copy of Couriser, but I didn't test that either.
Search terms
coursier, proxy
The text was updated successfully, but these errors were encountered: