Hi, i’ve just updated my kotlin version to 1.4.0, ...
# kotest
w
Hi, i’ve just updated my kotlin version to 1.4.0, i updated the intellij plugin i updated my gradle build script all of that stuff. i went to run my tests and it says it fails in <init> saying
Could not initialize class io.kotest.core.test.TestResult
s
You need to wait for 4.2.0 which will be released Wednesday
w
oh so it’s a compatibility thing with Kotlin 1.4.0?
s
Yes
w
ah ok thanks!
i
Ah, so the only solution for now is to downgrade Kotlin?
s
Well it's only been out 24 hours 😂
i
Some people are OCD about these things 🙂 Thanks, will try snapshot
s
Yeah I know, we're working to get it out. I think it's good to go, once it's tested a bit more thoroughly later, I will release 4.2.0.RC3 and an updated intellij plugin. If that's all good, then it will become 4.2.0 final
i
Unable to resolve, do I need to add a different repository?
Copy code
testImplementation("io.kotest:kotest-runner-junit5-jvm:4.2.0.502-SNAPSHOT") 
    testImplementation("io.kotest:kotest-assertions-core-jvm:4.2.0.502-SNAPSHOT") 
    testImplementation("io.kotest:kotest-property-jvm:4.2.0.502-SNAPSHOT")
s
you need the maven snapshots repo
only the releases one is added when you do mavenCentral()
Copy code
maven {
    url "<https://oss.sonatype.org/content/repositories/snapshots/>"
}
🙏 1
i
Seems to be a dependency issue on kotlinx-datetime:
Copy code
Could not find org.jetbrains.kotlinx:kotlinx-datetime:0.1.0.
Searched in the following locations:
  - <https://repo.maven.apache.org/maven2/org/jetbrains/kotlinx/kotlinx-datetime/0.1.0/kotlinx-datetime-0.1.0.pom>
  - <https://jitpack.io/org/jetbrains/kotlinx/kotlinx-datetime/0.1.0/kotlinx-datetime-0.1.0.pom>
  - <https://jcenter.bintray.com/org/jetbrains/kotlinx/kotlinx-datetime/0.1.0/kotlinx-datetime-0.1.0.pom>
  - <https://oss.sonatype.org/content/repositories/snapshots/org/jetbrains/kotlinx/kotlinx-datetime/0.1.0/kotlinx-datetime-0.1.0.pom>
Required by:
    project : > io.kotest:kotest-assertions-core-jvm:4.2.0.502-SNAPSHOT:20200818.152631-1

Possible solution:
 - Declare repository providing the artifact, see the documentation at <https://docs.gradle.org/current/userguide/declaring_repositories.html>
ah, looks like I need bintray repo
s
you should only need that if you're using the new assertions library for kotlinx
I see it was left in the main assertions by mistake, I've stripped that out for next build
👍 1
i
I'm guessing this is a due to a version mismatch with the kotest IDEA plugin?
s
Yep the current plugin is not built against 4.2.0
The next plugin release with work with both 4.2.x and 4.1.x
w
i think i’ll just wait for the new plugin and new version XD
s
lol might be easier. I hope tonight, latest tomorrow.
👍 1
w
ok cool!
s
I'm seeing something similar with 1.4.0 and Kotest 4.2.0 (regular, not snapshot) in android studio, using a StringSpec with a test listener:
Copy code
java.lang.NoClassDefFoundError: io/kotest/core/engine/TestEngineListener
Should I try snapshot?
s
It's the plugin - we're waiting on jetbrains to approve the latest release. There's always a lag as they vet everything.
s
Cool, thanks
there's a plugin attached to that you can use
s
That zip looks like it's for Intellij, correct? Is there one yet for AS?
I'm currently using 1.1.11-IC-2019.3
s
Ok I can build it for 2019 as well
s
Wow, thanks!
Let me know if that's ok
s
Yup that zip fixes the issue. The version in the zip looks older than current, so I should just ignore the auto update requests for now, right?
s
The zip is up to date, I just use the same snapshot version. When you get the update prompt you can update to get rid of it (it will be the same content though)
s
Thanks! I'm good to go...