Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 13:15
    alexarchambault opened #1926
  • 12:51
    alexarchambault commented #1815
  • 12:50
    alexarchambault commented #1815
  • 09:55
    scheleaap commented #1815
  • 09:54
    scheleaap commented #1815
  • Nov 27 11:57
    ksonj opened #1925
  • Nov 25 08:03
    ckipp01 opened #1924
  • Nov 24 23:35
    dependabot[bot] labeled #1923
  • Nov 24 23:35
    dependabot[bot] opened #1923
  • Nov 24 23:35

    dependabot[bot] on npm_and_yarn

    Bump highlight.js from 9.15.6 t… (compare)

  • Nov 23 16:13
    lefou commented #1390
  • Nov 23 10:23

    alexarchambault on gh-pages

    Update website (compare)

  • Nov 23 09:46

    alexarchambault on master

    remove Stream (#1921) `Iterabl… (compare)

  • Nov 23 09:46
    alexarchambault closed #1921
  • Nov 23 07:04
    platypii edited #1922
  • Nov 23 07:03
    platypii edited #1922
  • Nov 23 07:02
    platypii edited #1922
  • Nov 23 06:54
    platypii edited #1922
  • Nov 23 06:49
    platypii edited #1922
  • Nov 23 06:26
    platypii opened #1922
Jason Pickens
@steinybot
This seems to work:
cp -r lib ~/.cache/coursier/v1
cs launch --mode offline --extra-jars /usr/local/share/scala/lib build/Main.jar --main-class Main -- "$@“
Jason Pickens
@steinybot
Nope now it can’t find the main class (after changing the space to a ,)
Jason Pickens
@steinybot
Ok now I’m stuck. I guess I can’t run a local JAR?
Damian Reeves
@DamianReeves
I’m still having issues getting coursier working in a walled environment on Windows. I’ve set the COURSIER_CONFIG_DIR to a custom location and set the COURSIER_CACHE to a subdirectory of the config directory. In the config directory I have mirror.properties and credentials.properties files. All these settings seem to take but artifact resolution is still failing. I have 2 issues, authentication against our inhouse Artifactory instance is still not working and I cannot figure out how to map the ivy path needed to resolve the emoji_2.12 package which for some reason uses non-standard ivy and has been mirrored to our Artifactory instance with the same messing structure.
8 replies
How do you configure ivy patterns and the like via a properties file or at the command line? Also I’ve tried adding -vvvv to up the log verbosity but this isn’t helping, this my be because coursier is still at the stage where it is trying to bring down its dependencies first.
6 replies
Eric K Richardson
@ekrich
@alexarchambault The problem @DamianReeves is seeing is very similar to the problem I was having. Were you able to reproduce the redirect with credentials in your docker?
2 replies
Ishan Shah
@nullptr7
I upgraded the sbt version from 1.2.8 to 1.3.8 - now I am getting issues, getting error as lmcoursier.internal.shaded.coursier.error.fetcherror$downloading artifacts (unauthorized) for JFrog Artifactory. for 1.2.8 that was not the case, I was able to download. Any suggestions?
Amit Prasad
@amitprasad01_twitter
Hi Team ,
Can someone help to resolve this error : checksum format error
I am adding coursierChecksums := Nil
but no lunck
Ben Fradet
@BenFradet
hello I'm trying to fetch an artifact with: cs fetch org.scalariform:sbt-scalariform:1.8.3 however it fails with a resolution error despite the artifact being on central: https://search.maven.org/artifact/org.scalariform/sbt-scalariform/1.8.3/jar. Any ideas as to what I'm doing wrong?
4 replies
elyphas
@elyphas
Hi, someone could tell me, please, what would be the way to fetch this package with coursier?:
"com.github.outwatch.outwatch" %%% "outwatch" % "master-SNAPSHOT"
3 replies
and jitpack
I tried this: ./cs fetch -r jitpack com.github.outwatch.outwatch:outwatch:master-SNAPSHOT but didn't work
htch
@htch
coursier/coursier#1466
Would you say that now the classpath order matches ivy?
2 replies
Srepfler Srdan
@schrepfler
hi folks, does coursier only fetches or is also able to publish artefacts?
1 reply
Brian Maso
@bmaso
@schrepfler Only fetch & cache
Srepfler Srdan
@schrepfler

@schrepfler Only fetch & cache

thanks @bmaso

Rob Norris
@tpolecat
~$ cs launch org.scalameta::scalafmt-cli:2.4.2 -- --help
Exception in thread "main" coursier.jvm.ErrnoException: Errno Permission denied (13)
    at coursier.jvm.Execve.execve(Execve.java:33)
    at coursier.cli.launch.Launch$.$anonfun$launchFork$9(Launch.scala:121)
    at coursier.cli.launch.Launch$.$anonfun$launchCall$10(Launch.scala:345)
    at coursier.cli.launch.Launch$.run(Launch.scala:534)
    at coursier.cli.Coursier$.$anonfun$runA$2(Coursier.scala:128)
    at coursier.cli.Coursier$.$anonfun$runA$2$adapted(Coursier.scala:112)
    at coursier.cli.CommandAppPreA.run(CommandAppPreA.scala:22)
    at caseapp.core.app.CommandAppWithPreCommand.$anonfun$main$5(CommandAppWithPreCommand.scala:99)
    at caseapp.core.app.CommandAppWithPreCommand.$anonfun$main$5$adapted(CommandAppWithPreCommand.scala:99)
    at scala.util.Either.fold(Either.scala:191)
    at caseapp.core.app.CommandAppWithPreCommand.$anonfun$main$3(CommandAppWithPreCommand.scala:99)
    at caseapp.core.app.CommandAppWithPreCommand.$anonfun$main$3$adapted(CommandAppWithPreCommand.scala:85)
    at scala.Option.foreach(Option.scala:407)
    at caseapp.core.app.CommandAppWithPreCommand.main(CommandAppWithPreCommand.scala:85)
    at coursier.cli.Coursier$.main(Coursier.scala:77)
    at coursier.cli.Coursier.main(Coursier.scala)
6 replies
Has anyone seen this? It just started happening for me, no idea why. I reinstalled cs, no change.
coursier works fine, just not the native launcher.
And cs works ok on its own, it just seems unable to fork the JVM.
~$ cs
Coursier 2.0.0-RC6-24
Usage: cs [options] [command] [command-options]

Available commands: bootstrap, complete, fetch, get, install, java, java-home, launch, list, publish, resolve, setup, uninstall, update

Type  cs command --help  for help on an individual command
Adam Davidson
@Adi255
using the cs command line tool (2.0.0-RC6-24) and I find if I give credentials via --credentials, it works, but using the exact same string and exporting it as COURSIER_CREDENTIALS, it doesn't work
also it can't seem to use the same values from my credentials.properties file
this is doing a fetch, I should point out
Chris Kipp
@ckipp01
I actually ran into this same issue this past week @Adi255. I submitted an issue for it coursier/coursier#1826
Nadav Wiener
@nadavwr
Hi there!
Any way to cs install ammonite --scala 2.12.12?
1 reply
(the --scala argument is supported for cs launch etc, but not for cs install)
Matthias Lüneberg
@matsluni
Hi, is it planned to support aarch64 as an architecture in coursier? I found there is a guard to only explicitly allow "x86_64" | "amd64" here: https://github.com/coursier/coursier/blob/master/modules/jvm/src/main/scala/coursier/jvm/JvmIndex.scala#L82
11 replies
Tobias Roeser
@lefou
Is there a (easy) way to collect all used licenses of the transitive dependencies?
11 replies
Dale Wijnand
@dwijnand
@alexarchambault I want to test coursier/coursier#1834 haven't broken scala-runners. Is it intentional that the homebrew formula is still on release 24 and/or that there's no native cs build associated to the releases?
1 reply
王翔(Shawn Wang)
@shwangdev
image.png
2 replies
installation process hanging here for really a long time
while brew installs calacenter/bloop/bloop
I thought it might be network issue
I have a proxy
how can i pass proxy configurations to coursier cli?
by setting a system variable
Jack Koenig
@jackkoenig
In the CLI, is there anyway to make the downloading log (eg. Downloading https://repo1.maven.org/maven2/org/...) go to stdout instead of stderr?
2 replies
Anton Sviridov
@keynmol
do you have access to shell's redirection?
Jack Koenig
@jackkoenig
Yes, redirecting all of stderr to stdout isn't what I want in case there are real errors
user753
@user753
Is it possible to install specific version of application? Something like coursier install bloop --version 1.4.1
1 reply
Julien Richard-Foy
@julienrf

I’m having an issue with checksum computation. When I try to load a project by running sbt, I get the following output:

[error] java.lang.NumberFormatException: For input string: "vars"
[error]         at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
[error]         at java.base/java.lang.Integer.parseInt(Integer.java:652)
[error]         at java.base/java.math.BigInteger.<init>(BigInteger.java:534)
[error]         at lmcoursier.internal.shaded.coursier.cache.CacheChecksum$$anonfun$findChecksum$1.applyOrElse(CacheChecksum.scala:22)
[error]         at lmcoursier.internal.shaded.coursier.cache.CacheChecksum$$anonfun$findChecksum$1.applyOrElse(CacheChecksum.scala:20)
[error]         at scala.collection.TraversableOnce.collectFirst(TraversableOnce.scala:172)
[error]         at scala.collection.TraversableOnce.collectFirst$(TraversableOnce.scala:159)
[error]         at scala.collection.AbstractTraversable.collectFirst(Traversable.scala:108)
[error]         at lmcoursier.internal.shaded.coursier.cache.CacheChecksum$.findChecksum(CacheChecksum.scala:20)
[error]         at lmcoursier.internal.shaded.coursier.cache.CacheChecksum$.$anonfun$parseChecksumAlternative$2(CacheChecksum.scala:31)
[error]         at scala.Option.orElse(Option.scala:447)
[error]         at lmcoursier.internal.shaded.coursier.cache.CacheChecksum$.parseChecksumAlternative(CacheChecksum.scala:30)
[error]         at lmcoursier.internal.shaded.coursier.cache.CacheChecksum$.$anonfun$parseRawChecksum$1(CacheChecksum.scala:58)
[error]         at scala.Option.orElse(Option.scala:447)
[error]         at lmcoursier.internal.shaded.coursier.cache.CacheChecksum$.parseRawChecksum(CacheChecksum.scala:58)
[error]         at lmcoursier.internal.shaded.coursier.cache.FileCache.$anonfun$validateChecksum$4(FileCache.scala:678)
[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) java.lang.NumberFormatException: For input string: "vars"
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore?

I’m not sure where to look at.

1 reply
Vladyslav Pekker
@agilesteel
The zsh completions section seems to be out of date https://get-coursier.io/docs/cli-installation.html#zsh-completions Are completions no longer supported? What's the recommended way to set them up?
1 reply
Matt Hughes
@matthughes
How is the sbt installed by Coursier (for 1.4) different than that provided by SBT website? The Coursier one doesn’t seem to accept flags. I used to be able to write sbt -help but that doesn’t work in the version provided by coursier.
1 reply
Corey O'Connor
@coreyoconnor
Is there an option to set jvm options for the launcher created by install?
2 replies
Poorva Gokhale
@Poorva17
Hey all, I want to use cs install for my application. Is there any way to pass java options to cs installed application? . I see java options support is there for cs launch https://get-coursier.io/docs/next/cli-launch.html#java-options. But I did not see any documentation for providing java options after cs install