https://kotlinlang.org logo
#kotest
Title
# kotest
s

simon.vergauwen

05/31/2023, 12:15 PM
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

Emil Kantis

05/31/2023, 12:29 PM
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

simon.vergauwen

05/31/2023, 12:50 PM
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

sam

05/31/2023, 2:26 PM
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

simon.vergauwen

05/31/2023, 4:27 PM
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

Emil Kantis

05/31/2023, 4:48 PM
The dependency lookup looks so odd..
s

sam

05/31/2023, 8:28 PM
Are you using the 1.1.5 kotest arrow release ?
s

simon.vergauwen

06/01/2023, 6:19 AM
Yes, I am using
1.3.3
but I just tested the SNAPSHOT and that works 🤔
Which is also on 1.1.5
a

Adam S

06/01/2023, 3:34 PM
what Maven repos do you have defined? Only Maven Central / Google / Gradle Plugin Portal? Have you tried cleaning cache dirs in
$HOME/.gradle/
?
15 Views