https://kotlinlang.org logo
#dokka
Title
g

George

05/17/2022, 12:24 PM
Hi folks, im trying to run
./gradlew dokkaHtml
for a simple project but im getting the error
Copy code
* What went wrong:
Execution failed for task ':dokkaHtml'.
> 'void kotlinx.coroutines.Dispatchers.shutdown()'
Anyone has encountered anything similar? Kotlin Version: 1.6.21 Dokka Version: 1.6.21
Here is a simple project which reproduces the error: https://github.com/GeorgePap-719/simple-springboot-kotlin/tree/dokka
g

Grégory Lureau

05/17/2022, 12:57 PM
Did you try to update coroutines to 1.6.1 ?
g

George

05/17/2022, 12:59 PM
yup, i just did. still the same..
i

Ignat Beresnev

05/17/2022, 1:27 PM
Huh, weird. I know where it might be coming from, but I have no idea why. I'll have a quick look later today, thank you for the reproducer
🙏 1
But yeah, I'm almost sure it's related to an outdated coroutines version. The method it's complaining about should be present in coroutines 1.6.0 (issue), but it seems that for some reason Dokka sees coroutines <=1.5.2 on the classpath... No idea why at the moment
g

George

05/17/2022, 2:09 PM
indeed, there is on my classpath kotlinx-coroutines-core-jvm:1.5.2, not sure why tho.
i

Ignat Beresnev

05/17/2022, 2:10 PM
Spring boot 2.6.7 seems to be using coroutines 1.5.2: https://github.com/spring-projects/spring-boot/blob/5abc680c7dffec632c521c5ed66cc3[…]aec79/spring-boot-project/spring-boot-dependencies/build.gradle They've migrated to 1.6.1 in 2.7.0, but it hasn't been released yet 😞
😢 1
g

George

05/17/2022, 2:11 PM
Thanks for your help tho, appreciate it
i

Ignat Beresnev

05/17/2022, 2:13 PM
We'll think how to avoid such problems in the future, I guess not everyone migrates to the latest coroutines straight away. Thanks for reporting the problem! You can try locking coroutines 1.6.0/1.6.1 in your buildscript somehow, i.e make spring use newer coroutines, maybe it'll work
Or just downgrade to Dokka 1.6.10, it should work 🙂 There are some visual enhancements missing, but it'll be enough for you to get acquainted with Dokka
g

George

05/17/2022, 2:28 PM
indeed, it works like a charm.
🎉 1
26 Views