alexarchambault on gh-pages
Update website (compare)
alexarchambault on master
Remove deprecated sections (compare)
alexarchambault on gh-pages
Update website (compare)
alexarchambault on gh-pages
Update website (compare)
✗ cs bootstrap org.scala-lang:scala3-compiler_3.0.0-M3:3.0.0-M3 -D scala.usejavacp=true -M dotty.tools.dotc.Main -o scala_3.0.0-M3
✗./scala_3.0.0-M3 test.worksheet.sc
-- [E007] Type Mismatch Error: test.worksheet.sc:28:14 -------------------------
28 | forall { (bla: Int) =>
| ^
| Found: Int => Expectations
| Required: Nothing => ListSuite.Prop
29 | new Expectations {}
1 error found
❯ cs resolve com.lihaoyi::ujson:latest.stable
com.lihaoyi:geny_2.13:0.6.2:default
com.lihaoyi:ujson_2.13:1.2.2:default
com.lihaoyi:upickle-core_2.13:1.2.2:default
org.scala-lang:scala-library:2.13.1:default
org.scala-lang.modules:scala-collection-compat_2.13:2.1.4:default
Can't find a scala version suffix for com.google.protobuf::protobuf-java:3.0.0 (likely a non existing module or version)
No, not working with : ```cs resolve com.google.protobuf:protobuf-java:3.0.0
Ignoring environment variable COURSIER_REPOSITORIES, error parsing repositories from it:
Error parsing URL "https://repo1.maven.org/maven2/" (no protocol: "https://repo1.maven.org/maven2/")
https://repo1.maven.org/maven2/com/google/protobuf/protobuf-java/3.0.0/protobuf-java-3.0.0.pom
100.0% [##########] 4.0 KiB (16.9 KiB / s)
com.google.protobuf:protobuf-java:3.0.0:default```
coursier resolve com.google.protobuf:protobuf-java:3.0.0
https://repo1.maven.org/maven2/com/google/protobuf/protobuf-java/3.0.0/protobuf-java-3.0.0.pom
100.0% [##########] 4.0 KiB (10.1 KiB / s)
https://repo1.maven.org/maven2/com/google/protobuf/protobuf-parent/3.0.0/protobuf-parent-3.0.0.pom
100.0% [##########] 6.7 KiB (142.2 KiB / s)
https://repo1.maven.org/maven2/com/google/google/1/google-1.pom
100.0% [##########] 1.5 KiB (49.0 KiB / s)
com.google.protobuf:protobuf-java:3.0.0:default
COURSIER_CREDENTIALS
to work, but they do work if you pas them directly to the command that you're using
Hello guys, I have a question on coursier resolution exception that I can't figure out a way around. I am using sbt 1.3.13 with 1.0.3 coursier plugin (not using latest coursier due to sbt/sbt#5040). My default scalaVersion is 2.12, however I am trying to compile one subproject on 2.11 only which depends on a couple of other subprojects that are cross compatible for scala 2.11 and 2.12. So it looks like --
module A (scala 2.11 only) depends on module B (supports both 2.11 and 2.12) and module C (supports both 2.11 and 2.12).
When I try sbt +module A/test:compile
, everything works fine.
But when I do sbt +test:compile
, I get a dependency resolution exception as --
ObjectEvent(error, TraceEvent(Error, coursier.ResolutionException: Encountered 2 error(s) in dependency resolution:
com.org:moduleB_2.11:0.1-SNAPSHOT:
not found:
/home/org/.ivy2/local/com.org/moduleB_2.11/0.1-SNAPSHOT/ivys/ivy.xml
https://repo1.maven.org/maven2/com/org/moduleB_2.11/0.1-SNAPSHOT/moduleB_2.11-0.1-SNAPSHOT.pom
com.org:moduleC_2.11:0.1-SNAPSHOT:
not found:
/home/org/.ivy2/local/com.org/moduleC_2.11/0.1-SNAPSHOT/ivys/ivy.xml
https://repo1.maven.org/maven2/com/org/moduleC_2.11/0.1-SNAPSHOT/moduleC_2.11-0.1-SNAPSHOT.pom
So I am a bit baffled here is there any difference in terms of coursier resolution when just the moduleA is compiled vs all subprojects get cross compiled. What am I supposed to interpret out of this?
Hi, in mill we got the following issue opened lihaoyi/mill#1099:
Actually, Mill seems to pull dependencies by directly building an URL to the supposed pom. However, this method doesn't work on some repositories like for Spigot dependencies.
Mill should first pull the first maven-metadata.xml (example) at
<repoUrl>/<group separated by />/<artifactId>/maven-metadata.xml
to retrieve the version's metadata file (example) and get the jar name from it.
Does coursier support maven-metatdata.xml
?
Hi everyone, I got a strange resolution question. Consider the code below:
val module = mod"com.streese.registravka4s::registravka4s-core"
// val module = mod"com.sksamuel.avro4s::avro4s-core"
val res = Resolve()
.addDependencies(Dependency(module, "latest.release"))
.addRepositories(MavenRepository("https://packages.confluent.io/maven/"))
.run()
When I run this for the module that is not commented out (registravka4s) I get the following error:
[error] (run-main-6) coursier.error.ResolutionError$CantDownloadModule: Error downloading com.streese.registravka4s:registravka4s-core_2.13:latest.release
[error] No latest release version found in file:/home/max/.ivy2/local/com.streese.registravka4s/registravka4s-core_2.13/
[error] not found: https://repo1.maven.org/maven2/com/streese/registravka4s/registravka4s-core_2.13/maven-metadata.xml
[error] not found: https://packages.confluent.io/maven/com/streese/registravka4s/registravka4s-core_2.13/maven-metadata.xml
[error] coursier.error.ResolutionError$CantDownloadModule: Error downloading com.streese.registravka4s:registravka4s-core_2.13:latest.release
[error] No latest release version found in file:/home/max/.ivy2/local/com.streese.registravka4s/registravka4s-core_2.13/
[error] not found: https://repo1.maven.org/maven2/com/streese/registravka4s/registravka4s-core_2.13/maven-metadata.xml
[error] not found: https://packages.confluent.io/maven/com/streese/registravka4s/registravka4s-core_2.13/maven-metadata.xml
[error] at coursier.Resolve$.$anonfun$validate$1(Resolve.scala:323)
[error] at scala.collection.immutable.List.map(List.scala:246)
[error] at scala.collection.immutable.List.map(List.scala:79)
[error] at coursier.Resolve$.validate(Resolve.scala:321)
[error] at coursier.Resolve.validate0$1(Resolve.scala:115)
[error] at coursier.Resolve.$anonfun$ioWithConflicts0$4(Resolve.scala:161)
[error] at coursier.util.Task$.$anonfun$flatMap$extension$1(Task.scala:14)
[error] at coursier.util.Task$.$anonfun$flatMap$extension$1$adapted(Task.scala:14)
[error] at coursier.util.Task$.wrap(Task.scala:84)
[error] at coursier.util.Task$.$anonfun$flatMap$2(Task.scala:14)
[error] at scala.concurrent.impl.Promise$Transformation.run(Promise.scala:434)
[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)
However when I run the code with the other module (avro4s) then everything works as expected.
What I cannot wrap my head around is the error description which states that the file https://repo1.maven.org/maven2/com/streese/registravka4s/registravka4s-core_2.13/maven-metadata.xml does not exist but it actually does. And what is more is it looks equivalent to https://repo1.maven.org/maven2/com/sksamuel/avro4s/avro4s-core_2.13/maven-metadata.xml, as does the whole directory structure. So I do not get how registravka4s is different from avro4s here in such a way that for one the code fails and for the other it does not.
I am getting this error when trying to do sbt compile
on a project
coursier.ResolutionException: Exception during resolution
[error] Caused by: java.io.FileNotFoundException: <path to artifactory>/artifactory/typesafe-ivy-releases/org.junit.vintage/junit-vintage-engine/5.7.0/ivys/ivy.xml.sha1.lock (No such file or directory)
I am using sbt 1.3.13
. I have checked and the dependency is present in the remote artifactory. The repostories
configuration is proper. I am confused because I don't see an attempt to try to resolve this from the remote repository as it is not present in cache. What am I missing?
If I get
Exception in thread "main" coursier.cache.ArtifactError$DownloadError: download error: Caught java.net.MalformedURLException: unknown protocol: zip+https (unknown protocol: zip+https) while downloading zip+https://github.com/sbt/sbt/releases/download/v1.4.6/sbt-1.4.6.zip!sbt/bin/sbtn-x86_64-pc-linux
when running coursier install sbtn
- where should I look for issues? old coursier version? jdk issue?
readlink
$(dirname $(readlink -f "$0"))
solves this issue
--progress
supposed to completely hide any progress at all?
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