kotest: Incompatibility with Kotlin-1.7.0-Beta
Using the latest version of Kotest (5.3.0) and the Kotlin 1.7.0-Beta, I am encountering the following error:
java.lang.IncompatibleClassChangeError: Found interface kotlin.time.TimeMark, but class was expected
at io.kotest.engine.spec.interceptor.SpecFinishedInterceptor.intercept-0E7RQCE(SpecFinishedInterceptor.kt:37)
at io.kotest.engine.spec.interceptor.SpecFinishedInterceptor$intercept$1.invokeSuspend(SpecFinishedInterceptor.kt)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
The full stacktrace is attached.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 19
- Comments: 28 (20 by maintainers)
Commits related to this issue
- try downgrading kotlinx-datetime as per kotest/kotest#2960 — committed to breandan/galoisenne by breandan 2 years ago
- update to kotlin 1.7.0 kotest pending kotest/kotest#2960 — committed to breandan/kotlingrad by breandan 2 years ago
- update to kotlin 1.7.0 kotest pending kotest/kotest#2960 — committed to breandan/galoisenne by breandan 2 years ago
- replace measureTime with manual measure https://github.com/kotest/kotest/issues/2960 — committed to aSemy/kotest by aSemy 2 years ago
- Kotlin 1.7 compat test - replace `measureTime` with manual duration measure (#3052) * replace measureTime with manual measure https://github.com/kotest/kotest/issues/2960 * add TODOs for other ... — committed to kotest/kotest by aSemy 2 years ago
- chore: kotest 버전업 - https://github.com/kotest/kotest/issues/2960 Found interface kotlin.time.TimeMark, but class was expected 이슈 해결 — committed to unluckyjung/kotlin-learning by unluckyjung a year ago
- chore: kotest version 5.2.3 -> 5.3.1 https://github.com/kotest/kotest/issues/2960 — committed to jinyoungchoi95/kotlin-lotto by jinyoungchoi95 a year ago
- [로또] step1 (#611) * docs: 문자열 덧셈 계산기 요구사항 추가 * feat: remove gitkeep * chore: kotest version 5.2.3 -> 5.3.1 https://github.com/kotest/kotest/issues/2960 * feat: 공백 입력 시 0 반환기능 추가 및 테스트 ... — committed to next-step/kotlin-lotto by jinyoungchoi95 a year ago
- 🚀 2단계 - 로또(자동) 구현 완료 (#647) * feat(READ.md): 리드미 작성히여 TDD 준비 * feat: 문자열이 입력되면 , 구분자를 통해 숫자들을 반환한다 * feat: 문자열이 입력되면 ":" 구분자를 통해 숫자들을 반환한다 - "\\"과 "\n" 사이에 위치되는 문자열을 커스텀 구분자와 ","와 ":"가 섞여 ... — committed to next-step/kotlin-lotto by parkjun5 a year ago
1.7 just got released a few hours ago but we’ll wait for the official blog post. Then we can upgrade kotest and make sure it compiles and then release 5.4
On Wed, 8 Jun 2022 at 16:09, Ismar Slomic @.***> wrote:
@nielsvanvelzen it should be out now 😃
5.3.1 has been released, can you try that ?
The blog post is there now: https://blog.jetbrains.com/kotlin/2022/06/kotlin-1-7-0-released/
I had the same issue with Kotest (5.3.0), but with Kotlin version 1.6.21 also I was using kotlinx-datetime on version 0.3.3. Downgrade of kotlinx-datetime to 0.3.2 solved it for me.
Here’s the description of the change: https://kotlinlang.org/docs/whatsnew17.html#time-marks-based-on-inline-classes-for-default-time-source
(sharing for completeness)
Once 1.7 final is out we will release. See https://github.com/kotest/kotest/issues/2990
I can confirmed this is fixed after updating to Kotlin 1.7.0 and kotest 5.3.1
Are snapshots working with 1.7?