Dokka crashes on new coroutine code


It looks like the latest dokka (0.9.11) can’t handle some code meant for the latest kotlin (1.1-M04). Dokka crashes on a line of code that is using the new coroutines. Is it supposed to work with 1.1?

Documentation is essential. Shouldn’t this be part of the core kotlin distribution, just like javadoc is part of the JDK?


ERROR: Exception while analyzing expression at (34,20) in /Users/rob/[…]/src/main/kotlin/[…]l/Loggers.kt:
generate {
for (i in 1…10) {

java.lang.IndexOutOfBoundsException: Index: 2, Size: 2
at java.util.ArrayList.rangeCheck(
at java.util.ArrayList.get(
at org.jetbrains.kotlin.types.TypeSubstitutor.substituteTypeArguments(
at org.jetbrains.kotlin.types.TypeSubstitutor.substituteCompoundType(
at org.jetbrains.kotlin.types.TypeSubstitutor.unsafeSubstitute(


Thanks for the notification! We’ll release an update to Dokka incorporating an updated compiler:

It’s possible that Dokka will be bundled with Kotlin at some point.