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
Allow the server to be downloaded outside of an editor #159
Comments
Thanks for the feature request. Have you taken a look at the portion of the site about proxies and mirrors? There is quite a bit of information there that can guide you through the process. Since Metals if fully reliant on Coursier here, have you also taken a look at the linked Coursier Proxy information? An alternative installation method that we would recommend would just be to use Coursier manually, so you'll probably run into the same issues that you're having. Please read through those pages and feel free to ask for help on anything you're getting stuck on. |
Have you gotten a chance to read through those pages and see if it solves your issue @mesa123123? |
hello, thanks for your advices tgodzik, i followed what you said, and i'm again lock with an error, when i run this step Step 23/23 : RUN ./cs -J-Dhttps.proxyHost=myproxyip -J-Dhttps.proxyPort=myproxyport launch org.scalameta:metals_2.12:0.9.10 -M scala.meta.metals.DownloadDependencies " if someone have an idea. thanks |
ok after one day, i finally find, we need to use the previous method for the proxy, with the coursier.jar RUN java -Dhttps.proxyHost=ipproxy -Dhttps.proxyPort=port-proxy -jar ./coursier.jar launch org.scalameta:metals_2.12:0.9.10 -M scala.meta.metals.DownloadDependencies i don't why, with the new method, that's look like after the info, we lost the proxy parameters. thank you |
(bis repetita) My docker build finished without error, but i have the same problem, does i need to add parameters ? maybe a target directory for the extension ? error"Java home: /usr/lib/jvm/jre-1.8.0-openjdk my dockerfileRUN yum install -y java-1.8.0-openjdk.x86_64 Thanks again |
Looks like it might be coursier bootstrap trying to download itself - https://github.com/scalameta/metals-vscode/blob/master/coursier Maybe it would be possible to invoke coursier inside the vscode extension? Something like: Coursier bootstrap is this minimal jar that we use to keep the extension size small. More info here: https://get-coursier.io/docs/cli-bootstrap. |
Hello, done, and it doesnt work, the jar are in the /root/.cache [root@fd92172c3406 /]# locate case-app-util_2.12-2.0.0-M9.jar the dockerfile RUN yum install -y java-1.8.0-openjdk.x86_64 Thanks again |
Not sure then, maybe you could replace the minimal bootstrap with a full coursier boostrap, that will not need to download anything? You would need to replace the coursier in the extension directory. Alternatively we could add a parameter for specifying coursier in Metals vscode extension or maybe have an alternative extension with everything packaged 🤔 |
Weirdly enough it seem to be looking only in |
maybe because the coursier cache is in /root/ /root/.cache/coursier/v1/https/repo1.maven.org/maven2/com/github/alexarchambault/case-app-util_2.12/2.0.0-M9/case-app-util_2.12-2.0.0-M9.jar and i'm using and other user "test" and the home directory is /home/test i need to copy .cache/coursier/v1/https/repo1.maven.org/maven2/com/github/alexarchambault/case-app-util_2.12/2.0.0-M9/case-app-util_2.12-2.0.0-M9.jar inside the home directory of the user ? |
Is your feature request related to a problem? Please describe.
I'm working behind a proxy and vscode's relationship with it is temperamental at best...
However working through the browser works just fine, so being able to download server files as a whole works well.
Describe the solution you'd like
The ability to click a download button, download the metals server and then be able to connect the editors i like to said server.
If this is already possible I'd like documentation that shows me how to do it
This is very sparse and doesn't help in the least
Describe alternatives you've considered
Working through vscode which just causes the editor to whine about how it can't download the server
Additional context
Search terms:
The text was updated successfully, but these errors were encountered: