question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cannot update from 5.1.0 to 5.2.1

See original GitHub issue

Which 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:closed
  • Created 2 years ago
  • Reactions:10
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
abendtcommented, Mar 15, 2022

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!

6reactions
ewoelfelcommented, Mar 15, 2022

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 containing kotlin-coroutines.version=1.6.0

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found