Closed fwaris closed 10 months ago
Thanks for reporting! To sure what might exactly be wrong, but you could try adding -noverify
to metals.serverProperties
as a workaround. A similar issue happened here https://github.com/coursier/coursier/issues/1977
I think the issue is with our networking. The update does not work under a vpn connection but works outside of it
@tgodzik unfortunately the trick with -noverify
is not working for metals extension in vscode behind vpn.
We've had similar issue in Scala CLI more recently. Maybe something in https://github.com/VirtusLab/scala-cli/issues/2191 might help?
in my case, the issue was related to the zscaler proxy (which intercepts ssl). To fix I had add the ZScaler root SSL cert to the java keystore. Another option is to use the option -Djavax.net.ssl.trustStoreType=WINDOWS-ROOT to make jdk use the windows store
From: Tomasz Godzik @.> Sent: May 20, 2024 3:08 PM To: scalameta/metals-vscode @.> Cc: fwaris @.>; State change @.> Subject: Re: [scalameta/metals-vscode] vscode metals not updating as download fails with ssl errors (Issue #1430)
We've had similar issue in Scala CLI more recently. Maybe something in VirtusLab/scala-cli#2191https://github.com/VirtusLab/scala-cli/issues/2191 might help?
— Reply to this email directly, view it on GitHubhttps://github.com/scalameta/metals-vscode/issues/1430#issuecomment-2121039202, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AACGZMHSQCNFEMJDZNGE25DZDJC3HAVCNFSM6AAAAAA5UTEGYSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRRGAZTSMRQGI. You are receiving this because you modified the open/close state.Message ID: @.***>
so to install metals 1.3.1 and bloop 1.5.17 in viscose I did steps:
You can use sbt BSP as alternative. What logs do you see when it doesn't start?
Describe the bug metals not updating due ssl certificate issues
Screenshots
Java home: C:\Program Files\Microsoft\jdk-17.0.8.101-hotspot\ Metals version: 1.0.1 Downloading https://repo1.maven.org/maven2/org/scalameta/metals_2.13/1.0.1/metals_2.13-1.0.1.pom [...] Downloading https://oss.sonatype.org/content/repositories/snapshots/org/scalameta/metals_2.13/1.0.1/metals_2.13-1.0.1.pom.sha1 Resolution error: Error downloading org.scalameta:metals_2.13:1.0.1 not found: C:\Users\fwaris1.ivy2\local\org.scalameta\metals_2.13\1.0.1\ivys\ivy.xml download error: Caught javax.net.ssl.SSLHandshakeException (PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target) while downloading https://repo1.maven.org/maven2/org/scalameta/metals_2.13/1.0.1/metals_2.13-1.0.1.pom download error: Caught javax.net.ssl.SSLHandshakeException (PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target) while downloading https://dl.bintray.com/scalacenter/releases/org/scalameta/metals_2.13/1.0.1/metals_2.13-1.0.1.pom
Installation:
metals.serverVersion
)Additional context
I have update java version to latest