Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • May 26 11:25

    alexarchambault on gh-pages

    Update website (compare)

  • May 26 10:49

    alexarchambault on master

    fix: make sure JAVA_HOME is use… (compare)

  • May 26 10:49
    alexarchambault closed #2441
  • May 26 10:49
    alexarchambault closed #2048
  • May 26 10:39
    alexarchambault synchronize #2440
  • May 25 18:25
    alexarchambault synchronize #2440
  • May 25 18:14
    ckipp01 review_requested #2441
  • May 25 18:02
    alexarchambault synchronize #2440
  • May 25 17:50
    ckipp01 synchronize #2441
  • May 25 17:48
    ckipp01 synchronize #2441
  • May 25 17:47
    alexarchambault synchronize #2440
  • May 25 17:43
    ckipp01 commented #2441
  • May 25 17:36
    alexarchambault synchronize #2440
  • May 25 17:33
    ckipp01 synchronize #2441
  • May 25 17:31
    ckipp01 synchronize #2441
  • May 25 17:25
    ckipp01 opened #2441
  • May 25 17:22

    alexarchambault on gh-pages

    Update website (compare)

  • May 25 17:17

    alexarchambault on gh-pages

    Update website (compare)

  • May 25 17:15

    alexarchambault on gh-pages

    Update website (compare)

  • May 25 17:14

    alexarchambault on gh-pages

    Update website (compare)

Chris Kipp
@ckipp:matrix.org
[m]
Is --progress supposed to completely hide any progress at all?
Like should I be seeing this with progress set to false?
Lorenzo Gabriele
@lolgab
Hi everyone :-)
Does coursier need special treatment to update GraalVM to 21.0.0 ? If so, is it tracked somewhere?
Shane Delmore
@ShaneDelmore
I have a question I wasn't able to answer reading the docs, how do I set the scala version for zinc? For example, when I try to download zinc, it tells me it ca't find a scala version suffix for zinc, but I have entered it right here cs fetch org.scala-sbt::zinc_2.12:1.4.4 Exception in thread "main" coursier.install.AppArtifacts$ScalaDependenciesNotFound: Can't find a scala version suffix for org.scala-sbt::zinc_2.12:1.4.4
Shane Delmore
@ShaneDelmore
Although cs complete can find it ❯ cs complete org.scala-sbt:zinc_2.12 zinc_2.12
Tobias Roeser
@lefou
@ShaneDelmore Either add the _2.12 OR the double colon :: between org and name, but not both.
Shane Delmore
@ShaneDelmore
Thanks @lefou, I never would have figured that out on my own.
And if I use ::, is there a way to set scala version, or does it just always use 2.13?
That's just a question out of curiousity, the single colon worked great.
Tobias Roeser
@lefou
Can't tell you where the default comes from. I guess, it's the scala version used by ammonite, so atm 2.13.x
Sorry, I was asuming your using ammonite, but actually I don't know the context, so I can't tell you
Shane Delmore
@ShaneDelmore
No ammonite, just cs fetch org.scala-sbt::zinc_2.12:1.4.4
Or, in this case, when doing cs fetch org.scala-sbt::zinc:1.4.4 how does it decide which scala version?
No worries if you don't know.
Siddhant Sanyam
@siddhant3s
COURSIER_REPOSITORIES="https://mycompany.com/nexus/content/groups/public" COURSIER_CACHE=/tmp/yo/ coursier fetch scalafmt

Exception in thread "main" coursier.install.AppArtifacts$ScalaDependenciesNotFound: Can't find a scala version suffix for org.scalameta::scalafmt-cli:latest.release (likely a non existing module or version)
I'm getting this exception when I'm trying coursier fetch with a private repository. Anyone has any idea what might be going on?
Eric K Richardson
@ekrich
The interface for Scala Native has changed a bit in 0.4.0 although the old interface still works but is deprecated. I didn't see any issues or PRs - is this update being considered?
Siddhant Sanyam
@siddhant3s
I guess I'm not understanding coursier's repo resolution at all:
I've set my mirrors.properties to point central.to correctly my local maven proxy. On top of that, I'm passing -r https://maven.company.com/nexus/content/groups/public --no-default to coursier. Even then... it's trying to connect to repo1.maven.org. I don't understand why.
Ondra Pelech
@sideeffffect
Hello, when using coursier/cache-action, we're seeing warnings like reserveCache failed. Is it OK? Or is something going wrong? /cc @mijicd
coursier/cache-action#102
Oliver
@xthemage:synapse.xthemage.net
[m]
Hi folks. First off, fantastic tool. Coursier bootstrap is amazing! I've been noticing that recent versions of coursier have been embedding the primary jar file in the bootstrap binary. Is there a way to disable this feature?
1 reply
(or perhaps am I using it wrong?)
Specifically, I have a little bit of a hack that relies on python's ability to execute a tar file to package python code with my jar, and recently I've noticed that bootstrap binaries are seeing the classloader reading from path/to/bootstrap!coursier/bootstrap/launcher/jars/___.jar instead of the typical file:/path/to/__main__.py or jar:/path/to/___.jar
Oliver
@xthemage:synapse.xthemage.net
[m]
Hmm... is coursier automatically packaging files that aren't visible to a global resolver? If so, is there a command-line flag that will turn this behavior into an error?
ekrich
@ekrich:matrix.org
[m]
I have been trying to get the Scala tool set to work behind a corp proxy with basic auth. The following meta issue was added - scalameta/metals#2485 I did some analysis starting at the very beginning.
Siddhant Sanyam
@siddhant3s

Hi, I'm trying to use a local maven repo. When I do coursier fetch scalafmt it fails with Caused by: coursier.install.AppArtifacts$ScalaDependenciesNotFound: Can't find a scala version suffix for org.scalameta::scalafmt-cli:latest.release (likely a non existing module or version)

However when I write the exact version number (after consulting the internet on whatever the latest version, couriser succeeds):

[siddhant@localhost ~] coursier fetch org.scalameta:scalafmt-cli_2.13:2.7.5

Does anyone have ideas as to what might be going on or how do I debug this?

I tried coursier fetch org.scalameta::scalafmt-cli:2.7.5 but that doesn't work either (notice the ::)
Eric K Richardson
@ekrich
I was trying to see if I could make some changes using this as a guide. If I look at the script it looks like it calls main in Coursier but if I put some System.err.println in there I see nothing so I am thinking I am missing something.
Emily Chen
@six5532one
Hi, I'm using Homebrew 3.0.0 and tried brew install coursier/formulas/coursier and brew tap coursier/formulas. Each time, I get these errors:
Error: Invalid formula: /usr/local/Homebrew/Library/Taps/coursier/homebrew-formulas/coursier.rb
coursier: Unsupported special dependency :java
Error: Cannot tap coursier/formulas: invalid syntax in tap!
Siddhant Sanyam
@siddhant3s
What's the difference between bootstrap --standalone and bootstrap --assembly ?
Przemek Pokrywka
@przemek-pokrywka

Hi @lolgab

Does coursier need special treatment to update GraalVM to 21.0.0 ? If so, is it tracked somewhere?

Coursier uses a JSON file with an index of JVMs from Jabba project. Version 21.0 of GraalVM was only recently added there. For some reason Coursier doesn't pick this up automatically, but if you pass an additional option, the new GraalVM can be used. The option is

--jvm-index https://raw.githubusercontent.com/shyiko/jabba/master/index.json

Lorenzo Gabriele
@lolgab
@przemek-pokrywka Thank you very much :pray:
StinkyLord
@StinkyLord
Hi guys
anybody knows how to get coursierDependencyTree by specific scope/s?
i can see support when i run sbt test:coursierDependencyTree but it is not working the same for
provided/import/runtime..
just for test/compile..
any idea where i can find documentation about this?
Mark T. Kennedy
@mtk
is there a way to ask coursier to tell me what could be updated without actually updating anything?
StinkyLord
@StinkyLord
is this forum even alive?:D
Przemek Pokrywka
@przemek-pokrywka
@StinkyLord semi-alive. I may be wrong but Coursier doesn't support the concept of scopes at the moment I think.
StinkyLord
@StinkyLord
it's weird because this sbt test:coursierDependencyTree syntax work fine.. and i checked the source code it has support for scopes.. i wonder why its not official in the docs
Henry
@hygt
hello, is there a way to make thin bootstraps not point to maven central? or should I build standalone bootstraps?
2 replies
Justin Kaeser
@jastice
Can I use the API to resolve hashes and signatures besides just the artifacts and classifiers? i.e. the whole repo
7 replies
Simon Parten
@Quafadas

Can anyone see why this might be giving me the below errors?

./coursier --help --no-default -r "https://repo.corp.com/repository/maven-public/"

It appears to be ignoring the command line args?

Error while downloading https://repo1.maven.org/maven2/com/github/alexarchambault/case-app_2.12/2.0.0-M9/case-app_2.12-2.0.0-M9.jar: Connection reset, ignoring it
Error while downloading https://repo1.maven.org/maven2/com/github/alexarchambault/argonaut-shapeless_6.2_2.12/1.2.0-M11/argonaut-shapeless_6.2_2.12-1.2.0-M11.jar: Connection reset, ignoring it
Error while downloading 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: Connection reset, ignoring it
Error while downloading https://repo1.maven.org/maven2/com/chuusai/shapeless_2.12/2.3.3/shapeless_2.12-2.3.3.jar: Connection reset, ignoring it
Error while downloading https://repo1.maven.org/maven2/com/github/alexarchambault/case-app-annotations_2.12/2.0.0-M9/case-app-annotations_2.12-2.0.0-M9.jar: Connection reset, ignoring it
5 replies
Justin Kaeser
@jastice
Given a path to an artifact, is there a simple way to get the path to the repo subdirectory? E.g. I have the downloaded /Users/jast/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/jetbrains/scala/scala-compiler-indices-protocol_2.13/1.0.13/scala-compiler-indices-protocol_2.13-1.0.13-javadoc.jar and want the /Users/jast/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/ and org/jetbrains/scala/scala-compiler-indices-protocol_2.13/1.0.13/scala-compiler-indices-protocol_2.13-1.0.13-javadoc.jar portions separately?
4 replies
Justin Kaeser
@jastice
how do I write an sbt plugin dependency in the API or command line?
cs resolve org.jetbrains.scala:sbt-structure-extractor_2.10_0.13:2021.1.1 yields an error
3 replies
Justin Kaeser
@jastice
Another problem! when I add .addClassifiers(Classifier.javadoc, Classifier.sources) to a Fetch, it will fetch only the classifiers, but not the primary jars. why is that?
3 replies
Eric K Richardson
@ekrich
@alexarchambault I asked a question about a dozen posts back - any hints
2 replies
Yevgen Nerush
@nerush

Hi, seems like Coursier cannot resolve the latest version of the netty-transport-native-epoll library for Mac and Linux:

When I add "io.netty" % "netty-transport-native-epoll" % "4.1.60.Final” dependency to the build, Coursier fails retrieveing the artifact with the following error:

 Caused by: lmcoursier.internal.shaded.coursier.cache.ArtifactError$NotFound: not found: https://repo1.maven.org/maven2/io/netty/netty-transport-native-epoll/4.1.60.Final/netty-transport-native-epoll-4.1.60.Final-linux-aarch64.jar
[error]     at lmcoursier.internal.shaded.coursier.cache.FileCache.$anonfun$download$12(FileCache.scala:244)
[error]     at scala.concurrent.Future$.$anonfun$apply$1(Future.scala:659)
[error]     at scala.util.Success.$anonfun$map$1(Try.scala:255)
[error]     at scala.util.Success.map(Try.scala:213)
[error]     at scala.concurrent.Future.$anonfun$map$1(Future.scala:292)
[error]     at scala.concurrent.impl.Promise.liftedTree1$1(Promise.scala:33)
[error]     at scala.concurrent.impl.Promise.$anonfun$transform$1(Promise.scala:33)
[error]     at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:64)
[error]     at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
[error]     at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
[error]     at java.base/java.lang.Thread.run(Thread.java:834)
[error] (update) lmcoursier.internal.shaded.coursier.error.FetchError$DownloadingArtifacts: Error fetching artifacts:
[error] https://repo1.maven.org/maven2/io/netty/netty-transport-native-epoll/4.1.60.Final/netty-transport-native-epoll-4.1.60.Final-linux-aarch64.jar: not found: https://repo1.maven.org/maven2/io/netty/netty-transport-native-epoll/4.1.60.Final/netty-transport-native-epoll-4.1.60.Final-linux-aarch64.jar

Cause: coursier tries to download the artifact with linux-aarch64 prefix, while the actual prefix is linux-aarch_64

Is there any way to configure the correct prefix for transitive dependency?

Adrishyantee Maiti
@adrishyantee
Screenshot from 2021-03-27 13-56-31.png
1 reply
Can some one help me with this issue highlighted. It says: rror while fetching artifact with coursier: " + exec_result.stderr
@maven//:javax_inject_javax_inject in repository @ maven which failed to fetch. no such package '@ maven//'
Hanns Holger Rutz
@Sciss

Hi there. I want to implement an --offline mode for my application where I constrain coursier to not look up anything on the network, but only locally. For example, in Versions and Resolve. If I print the default repositories, I get

IvyRepository(Pattern(List(Const(file:/home/hhrutz/.ivy2/local/), Var(organisation), Const(/), Var(module), Const(/), Opt(List(Const(scala_), Var(scalaVersion), Const(/))), Opt(List(Const(sbt_), Var(sbtVersion), Const(/))), Var(revision), Const(/), Var(type), Const(s/), Var(artifact), Opt(List(Const(-), Var(classifier))), Const(.), Var(ext))), None, None, true, true, true, true, None, true)
MavenRepository(https://repo1.maven.org/maven2, None, None, true, true)

and if I add withRepositories(Nil), coursier no longer includes Maven Central, but unfortunately the local location is also wiped. Is there a shortcut, for getting that location? Like (hypothetically)

withRespositories(Repositories.local :: Nil)

?

3 replies
Ok, found it
val repos = if (offline) LocalRepositories.ivy2Local :: Nil else Resolve.defaultRepositories
3 replies