-
Notifications
You must be signed in to change notification settings - Fork 76
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
Coursier bootstrap downloads from maven central without using custom repositories #126
Comments
Sorry for not responding earlier. Have you tried following: Edit: After reading again I see you tried that. Hmm... Not sure what's going on. |
Ok, I think I know what's going on. You should specify the setting in Metals using spaces and not pipes: Also, this setting was added in |
I tried with spaces but it still did not resolve. I have digged more on that. Seems like.. coursier wants to download the I don't know how to by pass this one.. Found one solution: ** NOTE: it is manual installation as of now as I do not find any permanent solution for that. **
For environment variables : refer this link https://get-coursier.io/docs/other-repositories |
@rajeshK88 were you able to get a log of what command is being run? |
I checked the logs but dont see any metals logs but I am pretty sure, below command is running. But I tried to check coursier manually.. i just went to I believe coursier is taking default maven repo(https://repo1.maven.org/maven2) path instead going to my custom repo to download those standalone jar file.. Let me know if you need more info.. |
I haven't had a chance to reproduce this, but have you tried running coursier manually with added repository?
|
I tried coursier to download using custom repo and also tried the above command you mentioned and I got same issue. This issue is only happening if you have custom repo and your firewall is not giving permission to download the application from external link like (https://repo1.maven.org etc). Let me know if you need more info on this. |
Not sure I understand, the command above doesn't work? Examples being:
|
i am pretty sure the metals jar file is out there in my custom repos.. the problem is, To start coursier, it is need a standalone jar this standalone jar file also present in custom repo. So not sure how to fix it. the command above means Also I tried the example you have mentioned in above comment but getting same error like I think the solution could be providing standalone jar file in visual studio metals plugin code itself... |
What did you set your CUSTOM_REPOSITORY to? If it's not picking up the additional repository then it's a bug in coursier, but are you specifying it correctly? |
I set my CUSTOM_REPOSITORY like this ivy2Local|central|sonatype:releases|jitpack|{my custom repo}. As i mentioned, once coursier is able to see the standalone jar, it is able to pick up custom_repos but not before that. That is the pain point. any way , for me the workaround is #126 (comment) I was just checking , if in case you find some permanent solution for this. |
Ok, I think I know what is going on. Sorry that it took so long 😯 |
Cool, so are you planning to fix this ? If yes , can you share your thoughts to solve this issue ? |
Not sure yet. We either do standalone coursier which weights much more (26 MB) or change the way we resolve. @olafurpg Do you have any idea what we can do? |
@tgodzik anybody is working on this ? |
Not at the moment, we still need to discuss this. |
just wondering if anybody got chance to fix this ?.. actually long time waiting for this so that i can use it ? |
Sorry! This isn't a priority for us, but you are welcome to take a look at it yourself. Unfortunately, I can't provide any timeline here. |
@rajeshK88 What happens if you configure a Maven mirror as described here? https://get-coursier.io/blog/2019/07/05/1.1.0-M14.html#mirrors |
@rajeshK88 Repeatedly asking maintainers when they are going to fix your issue is not good behavior. If this issue is important to you then you should consider contributing a fix instead. |
that also did not work.. |
Sorry about that.. I was just trying to follow up but i realized now that, i should not do that as it is not priority for maintainers.. will be careful next time.. |
To clarify: it's perfectly ok to follow up and provide additional information. What's not so ok is repeatedly asking maintainers to work on something. We're all committed in evolving Metals, but this particular issue simply hasn't been a priority so far. Thanks for understanding 🙏 |
All right sure.. as i said will be careful next time !!! |
I lost the better part of an hour dealing with the same issue described above. For anyone else coming across this, configuring
resolved the issue for me. Notice I had to add both repositories in my case because of the way the company has setup artifactory. The key is to keep adding mirror entries until you've fixed each resolve error. You can find out what the repos are named like |
@gavares Sorry about that, working with proxies and private repositories is not yet resolved very well. We've put some more information into https://scalameta.org/metals/docs/build-tools/proxy.html, but that might not be enough. |
@tgodzik , not a problem. Hopefully my comment will help others in the future. It didn't help that there are so many moving parts where things can fail: VSCode, SSH, Proxy, Metals, Bloop, Coursier, Mirror Repos. Most of my time was spent tracking the issue down. Once I got to coursier, it was pretty easy to figure out. One thing that might help is adding something to the effect of my last paragraph in my comment above about how to figure out what the repos are named and how to map them appropriately. |
…rn/types/node-14.0.9 Bump @types/node from 14.0.6 to 14.0.9
Unable to download coursier-cli_2.12-1.1.0-M13-2-standalone.jar
To Reproduce Steps to reproduce the behavior:
Java home: C:\Program Files (x86)\Java\jdk1.8.0_201
Error while downloading https://repo1.maven.org/maven2/io/get-coursier/coursier-cli_2.12/1.1.0-M13-2/coursier-cli_2.12-1.1.0-M13-2-standalone.jar: Connection timed out: connect, ignoring it
Expected behavior
Should allow to download this coursier.
Installation:
metals.serverVersion
) : 1.5.1Additional context
I tried to install the metals in visual studio code but immediately got the above error. It is trying to download
coursier
fromrepo1.maven.org
. But we have separate repository to download this part. not able to setup custom repository to downloadcoursier
. Also i did the proxy setting but it did not help. So all i want to update the repo to my custom repo. Also tried to do custom repo config option but that also did not help.here is the settings i am using for custom repository which i did by adding environment variables :
COURSIER_REPOSITORIES="ivy2Local|central|sonatype:releases|jitpack|/"
Search terms
Unable to download coursier-cli_2.12-1.1.0-M13-2-standalone.jar
The text was updated successfully, but these errors were encountered: