Hello everyone, I'm having trouble getting the new...
# kotest
m
Hello everyone, I'm having trouble getting the new Arrow assertions to work in my Compose Multiplatform project and could use some guidance. Setup: • Arrow: 2.1.2 (already using Arrow in my commonMain source set) • Kotest: 6.0.0.M5 • Using the new coordinates: io.kotest:kotest-assertions-arrow • KMP project with commonTest and desktopTest source sets Error: Getting "Cannot access 'Kind' which is a supertype of either" and "Cannot access class 'arrow.core.Either'. Check your module classpath for missing or conflicting dependencies" Configuration:
Copy code
commonMain.dependencies {
  implementation(libs.arrow.core)
}

commonTest.dependencies {
  implementation(libs.arrow.core)
  implementation(libs.kotest.assertions.arrow)
}
Questions: • Are there any known issues with Arrow 2.1.2 + Kotest 6.0.0.M5? • Any special configuration needed for KMP projects? • Should I be using a different Kotest version?
e
Kotest is also built with Arrow 2.1.2, so likely something else causing a dependency conflict. If you use the command
./gradlew dependencies
you should get some output which tells you which component expects an old arrow version
c
Copy code
./gradlew :<yourModule>:dependencyInsight --dependency io.arrow-kt:arrow-core --configuration jvmMainCompileClasspath
💯 2
m
@CLOVIS, @Emil Kantis, much appreciated. Indeed another dependency (pact) was pulling in an older version of arrow.