-
Notifications
You must be signed in to change notification settings - Fork 348
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 - Scala Language and Build Server Extension For VS Code #1574
Comments
Hi, thanks for reporting!
Additionally |
Thank you for quick reply server version is 0.8.0 it's unclear to me what JAVA_HOME is supposed to be if not C:\PROGRA apparently when I use a JAVA_HOME value other than my system default, it does not even attempt to install any of the dependencies, so I'm unsure if it is actually invalid |
Could you try updating to the newest extension |
we uninstalled and tried to reinstall, it prompted me to upgrade, so I started the process, but it seems to fail silently and just re-prompts me to upgrade. |
JDK path seems correct to me. we have placed path in environment variable as well. we are using this application on our work place. |
So you are unable to update the extension? Maybe you also need to update the visual studio code version? I might not be able to help you out much without the update, because the errors are swallowed up currently. You also try to run Metals install maunally to see what's going on via:
Then try to run the generated executable. The way you do it will need to be different than on linux, but please take a look at the coursier website, might be helpful: https://get-coursier.io/ Alternatively, you could try removing the java home altogether, if we don't find it we might offer downloading it automatically. Lastly, it might be good to try and reinstall the JDK. Not sure what else can help. |
we have upgraded VS code 1.43.2 with latest version. I will update you soon |
@kevalkaneria1 Did you manage to find any more logs? |
Issue still didn't get resolved. we have upgraded Vs code with latest version. also, we are using latest version of Coursier. coursier recognizes my JDK/JRE as being valid paths/installations, otherwise it would fail to execute anything. I can download the artifacts using curl or something, and use coursier to install them directly (though coursier might just be for downloading the artifacts) since it seems like I can download them outside of coursier. Do you know how install artifact using CURL. |
How is it failing now in VS Code? There should be some log in the Metals Output, which might be helpful to solve the issue. |
Those errors seem to be exactly the issue. Due to those failures, Metals is unable to start the server. Any idea why it's not being downloaded? Those are all valid links, are you able to curl them? Maybe you are using some kind of a proxy to connect to maven central? |
yes we are using proxy because we are using in our work environment. |
HTTP proxy .jvmopts file in the workspace directory. On this 3 option do we have to configure all 3 |
You should only configure one option. If you use the last option, it should one property per line. That is needed for the coursier to be able to use proxies. There is some more information on the topic here: https://scalameta.org/metals/docs/build-tools/proxy.html |
If that doesn't work, we also talk about some additional things to set here: scalameta/metals-feature-requests#9 In particular |
Any luck with the proxies? |
Closing this, if there are any issues we can reopen. |
Question
I am having an issue on Metals - Scala Language and Build Server Extension For VS Code. I have reached out Microsoft team regarding Metal extension, but since it is third party extension, so they do not provide any support for it. I have attached error note with this issue.
Screenshots
This is the error i am getting
Failed to download metals, make sure you have an internet connection and the java home 'C:\Progra
1\JAVA\jdk18
1.0' is valid. you can configure the java home in the settings. see https://scalameta.org/metals/docs/editors/vscode.html#http-proxy for instructions if you are using an http proxy.Installation:
Additional context
Search terms
The text was updated successfully, but these errors were encountered: