Hey everyone, I've been seeing this in a bunch of ...
# kotest
s
Hey everyone, I've been seeing this in a bunch of KMP project. Anyone has any idea?
> Task xef corecompileTestKotlinJs FAILED
e: Could not find "kotest.kotest-assertions:kotest-assertions-core" in [/Users/simonvergauwen/Library/Application Support/kotlin/daemon]
e: java.lang.IllegalStateException: FATAL ERROR: Could not find "kotest.kotest-assertions:kotest-assertions-core" in [/Users/simonvergauwen/Library/Application Support/kotlin/daemon]
This happend when bumping from
5.5.x
to
5.6.x
, and I am only targeting
js(IR)
no legacy JS target
e
Could not find "kotest.kotest-assertions:kotest-assertions-core"
Shouldnt it be
io.kotest:kotest-assertions-core
? Can you see what’s pulling in the faulty dependency?
s
Yes, that’s what I have. I am also very confused by this error. I am just bumping version from 5.5.x to 5.6.x so if it was wrong it shouldn’t have been working, right?
Copy code
kotest-assertions = { module = "io.kotest:kotest-assertions-core", version.ref = "kotest" }
kotest-framework = { module = "io.kotest:kotest-framework-engine", version.ref = "kotest" }
kotest-property = { module = "io.kotest:kotest-property", version.ref = "kotest" }
kotest-junit5 = { module = "io.kotest:kotest-runner-junit5", version.ref = "kotest" }
kotest-testcontainers = { module = "io.kotest.extensions:kotest-extensions-testcontainers", version.ref = "kotest-testcontainers" }
kotest-assertions-arrow = { module = "io.kotest.extensions:kotest-assertions-arrow", version.ref = "kotest-arrow" }
These are all the Kotest dependencies I have in my version catalog
s
If you remove kotest-assertions = { module = "io.kotest:kotest-assertions-core", version.ref = "kotest" } does it resolve the rest ?
I wonder if it's failing on that just because it's first, or something with that dep in particular
s
I will test, but I doubt it. It's included like this in the
build.gradle.kts
.
Copy code
val commonTest by getting {
  dependencies {
    implementation(libs.kotest.property)
    implementation(libs.kotest.framework)
    implementation(libs.kotest.assertions)
    implementation(libs.kotest.assertions.arrow)
  }
}
When I remove
libs.kotest.assertions
, then I get
> Task xef corecompileTestKotlinJs FAILED
e: Could not find "kotest.kotest-assertions:kotest-assertions-shared" in [/Users/simonvergauwen/Library/Application Support/kotlin/daemon]
e: java.lang.IllegalStateException: FATAL ERROR: Could not find "kotest.kotest-assertions:kotest-assertions-shared" in [/Users/simonvergauwen/Library/Application Support/kotlin/daemon]
🤕 what is
shared
??
Actually this led me down a path, there is some conflict in
assertions.arrow
🤔 Did something break between
5.5.x
and
5.6.x
in assertions?
e
The dependency lookup looks so odd..
s
Are you using the 1.1.5 kotest arrow release ?
s
Yes, I am using
1.3.3
but I just tested the SNAPSHOT and that works 🤔
Which is also on 1.1.5
a
what Maven repos do you have defined? Only Maven Central / Google / Gradle Plugin Portal? Have you tried cleaning cache dirs in
$HOME/.gradle/
?