cannot update from 5.1.0 to 5.2.1
See original GitHub issueWhich version of Kotest are you using
i am currently using v5.1.0
When trying to update to the latest version 5.2.1 i get some errors when running the tests:
Caused by:
java.lang.NoClassDefFoundError: kotlinx/coroutines/CopyableThreadContextElement
at io.kotest.assertions.jvmerrorcollector.getErrorCollectorContextElement(ErrorCollector.kt:20)
at io.kotest.engine.test.interceptors.CoroutineErrorCollectorInterceptor.intercept(CoroutineErrorCollectorInterceptor.kt:27)
at io.kotest.engine.test.TestCaseExecutor$execute$2$1.invokeSuspend(TestCaseExecutor.kt:83)
at io.kotest.engine.test.TestCaseExecutor$execute$2$1.invoke(TestCaseExecutor.kt)
at io.kotest.engine.test.TestCaseExecutor$execute$2$1.invoke(TestCaseExecutor.kt)
at io.kotest.engine.test.interceptors.CoroutineDispatcherFactoryInterceptor$intercept$4.invokeSuspend(coroutineDispatcherFactoryInterceptor.kt:57)
at io.kotest.engine.test.interceptors.CoroutineDispatcherFactoryInterceptor$intercept$4.invoke(coroutineDispatcherFactoryInterceptor.kt)
at io.kotest.engine.test.interceptors.CoroutineDispatcherFactoryInterceptor$intercept$4.invoke(coroutineDispatcherFactoryInterceptor.kt)
at io.kotest.engine.concurrency.FixedThreadCoroutineDispatcherFactory$withDispatcher$4.invokeSuspend(FixedThreadCoroutineDispatcherFactory.kt:53)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
Issue Analytics
- State:
- Created 2 years ago
- Reactions:10
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Cannot update spyder=5.1.5 on new anaconda install
I tried letting it run for more than 8 hours, but I had to cancel it because I got tired. Tried. conda install...
Read more >can't upgrade 5.1 -> 5.2 using dist-upgrade - Proxmox forums
I'd like to upgrade it to 5.2. Everything I've read so far says that this is as simple as "apt update && apt...
Read more >Upgrade Rails From 5.0 to 5.1 - FastRuby.io
Learn the details of how to upgrade Ruby on Rails from 5.0 to 5.1, including the required removals and configurations.
Read more >Upgrading a Minor Version (e.g. 5.0.0 to 5.1.0) (Symfony Docs)
Upgrading a Minor Version (e.g. 5.0.0 to 5.1.0) · 1) Update the Symfony Library via Composer. Dependency Errors; Upgrading other Packages · 2)...
Read more >What version of Pico OS are you running on your Pico 4?
I'm based in South Korea and the latest version I have is 5.1.0, even though YouTubers in ... I'm also from germany and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
thanks @ewoelfel!
yes, i am using spring. i think you mean
org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm
here?i have added an explicit dependency to that artifact:
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.6.0")
. That helped resolve the issue. Don’t understand though why the wrong version was selected in the first place 🤷🏽♂️ thanks again for the hint!Are you using spring? I had the same error as the wrong version of
io.kotest:kotest-assertions-core-jvm
was pulled (1.5.2). For me the fix was to add a gradle.properties file containingkotlin-coroutines.version=1.6.0