https://kotlinlang.org logo
Docs
Join the conversationJoin Slack
Channels
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
alexa
algeria
algolialibraries
amsterdam
android
android-architecture
android-databinding
android-studio
androidgithubprojects
androidthings
androidx
androidx-xprocessing
anime
anko
announcements
apollo-kotlin
appintro
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chicago
chile
china
chucker
cincinnati-user-group
cli
clikt
cloudfoundry
cn
cobalt
code-coverage
codeforces
codemash-precompiler
codereview
codingame
codingconventions
coimbatore
collaborations
colombia
colorado
communities
competitive-programming
competitivecoding
compiler
compose
compose-android
compose-desktop
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effective-kotlin
effectivekotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
flow
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
functional
funktionale
gamedev
ge-kotlin
general-advice
georgia
geospatial
german-lang
getting-started
github-workflows-kt
glance
godot-kotlin
google-io
gradle
graphic
graphkool
graphql
graphql-kotlin
graviton-browser
greece
grpc
gsoc
gui
hackathons
hacktoberfest
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
jackson-kotlin
jadx
japanese
jasync-sql
java-to-kotlin-refactoring
javadevelopers
javafx
javalin
javascript
jdbi
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm-ir-backend-feedback
jxadapter
k2-early-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kinta
klaxon
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-dev
komapper
kondor-json
kong
kontent
kontributors
korau
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlin-asia
kotlin-beam
kotlin-by-example
kotlin-csv
kotlin-data-storage
kotlin-foundation
kotlin-fuel
kotlin-in-action
kotlin-inject
kotlin-latam
kotlin-logging
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlin-szeged
kotlin-website
kotlinacademy
kotlinbot
kotlinconf
kotlindl
kotlinforbeginners
kotlingforbeginners
kotlinlondon
kotlinmad
kotlinprogrammers
kotlinsu
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlinx-datetime
kotlinx-files
kotlinx-html
kotrix
kotson
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
ktcc
ktfmt
ktlint
ktor
ktp
kubed
kug-leads
kug-torino
kvision
kweb
lambdaworld_cadiz
lanark
language-evolution
language-proposals
latvia
leakcanary
leedskotlinusergroup
lets-have-fun
libgdx
libkgd
library-development
linkeddata
lithuania
london
losangeles
lottie
love
lychee
macedonia
machinelearningbawas
madrid
malaysia
mathematics
meetkotlin
memes
meta
metro-detroit
mexico
miami
micronaut
minnesota
minutest
mirror
mockk
moko
moldova
monsterpuzzle
montreal
moonbean
morocco
motionlayout
mpapt
mu
multiplatform
mumbai
munich
mvikotlin
mvrx
myndocs-oauth2-server
naming
navigation-architecture-component
nepal
new-mexico
new-zealand
newname
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
oolong
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
practical-functional-programming
proguard
prozis-android-backup
pyhsikal
python
python-contributors
quasar
random
re
react
reaktive
realm
realworldkotlin
reductor
reduks
redux
redux-kotlin
refactoring-to-kotlin
reflect
refreshversions
reports
result
rethink
revolver
rhein-main
rocksdb
romania
room
rpi-pico
rsocket
russian
russian_feed
russian-kotlinasfirst
rx
rxjava
san-diego
science
scotland
scrcast
scrimage
script
scripting
seattle
serialization
server
sg-user-group
singapore
skia-wasm-interop-temp
skrape-it
slovak
snake
sofl-user-group
southafrica
spacemacs
spain
spanish
speaking
spek
spin
splitties
spotify-mobius
spring
spring-security
squarelibraries
stackoverflow
stacks
stayhungrystayfoolish
stdlib
stlouis
strife-discord-lib
strikt
students
stuttgart
sudan
swagger-gradle-codegen
swarm
sweden
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
test
testing
testtestest
texas
tgbotapi
thailand
tornadofx
touchlab-tools
training
tricity-kotlin-user-group
trójmiasto
truth
tunisia
turkey
turkiye
twitter-feed
uae
udacityindia
uk
ukrainian
uniflow
unkonf
uruguay
utah
uuid
vancouver
vankotlin
vertx
videos
vienna
vietnam
vim
vkug
vuejs
web-mpp
webassembly
webrtc
wimix_sentry
wwdc
zircon
Powered by Linen
dokka
  • a

    Aaron Todd

    04/08/2022, 1:48 PM
    Randomly our team hits this issue:
    Cannot change dependencies of dependency configuration ':aws-runtime:dokkaGfmPlugin' after it has been resolved.
    Project builds fine from cli but intellij won't load the project. Anyone have any insights how to solve?
    i
    • 2
    • 23
  • g

    Grégory Lureau

    04/15/2022, 6:57 AM
    Hello! Is there a way to load a generated markdown at the class level? If no, could we add something like
    ## class full.qualifier.of.ClassName
    (same syntax than module/package) if it makes sense ? (context)
    i
    • 2
    • 1
  • i

    Ignat Beresnev

    04/15/2022, 10:28 AM
    Happy to announce that Dokka 1.6.20 is out! 🎉 :kotlin-intensifies: Highlights: •
    OutOfMemoryError: Metaspace
    -related issues should now be solved for the majority of cases • New
    documentedVisibilities
    setting which lets you configure visibility modifiers that end up in documentation (public/private/internal/protected/package-private). This is a replacement for
    includeNonPublic
    which has now been deprecated. • HTML format refinements, the most noticable being ◦ vertical alignment (wrapping) of signatures when 3 and more parameters are present ◦ primary constructor signature now displays `val`/`var` keywords and shows default values • First iteration of HTML format customization through
    FreeMarker
    HTML templates • Bugfixes, a couple of new extension points, stability improvements Full release notes here: https://github.com/Kotlin/dokka/releases/tag/v1.6.20
    🎉 10
    • 1
    • 1
  • h

    hfhbd

    04/25/2022, 8:37 AM
    How do you handle a non existing localDirectory inside sourceLinks?, eg
    `
    sourceLink {
        localDirectory by file("src/$sourceSetName/kotlin") // there is no watchosSimulatorArm64 because all sources are in commonMain...
        remoteUrl by uri("<https://github.com/hfhbd/RateLimit/tree/main/src/$sourceSetName/kotlin>").toURL()
        remoteLineSuffix by "#L"
    }
    • 1
    • 1
  • m

    Michal Klimczak

    05/05/2022, 10:43 AM
    It's weird, because it seems like a common thing to do, but I swear, I can't find any info about this, maybe you guys can help. I want to attach javadocs to a closed source sdk. The goal is for the javadoc and names to be visible in IDE, but the method bodies should be stripped. I learned that I need to have sources.jar to show javadocs in IDE. But can I configure the sources jar to strip method bodies (ideally just leave public stuff)?
    java {
        withSourcesJar()
        withJavadocJar()
    }
    k
    e
    i
    • 4
    • 15
  • m

    mike.holler

    05/05/2022, 2:36 PM
    Is there a way to configure dokka to automatically put doc comments from
    expect
    functions in
    commonMain
    on the
    actual
    functions for each runtime? When dokka generates docs, it generates an individual (e.g.,) function doc for each runtime (jvm, js, native, ...). The common one has documentation because it has doc comments, the concrete runtime ones do not have doc comments. I'd like them to be "inherited" from the
    expect
    ➕ 6
    i
    j
    • 3
    • 8
  • s

    Su5eD

    05/09/2022, 11:40 AM
    Hello, is it possible to replace the default favicon with a custom png file?
    i
    • 2
    • 4
  • g

    Grégory Lureau

    05/11/2022, 7:41 AM
    Mermaid plugin (for Dokka HTML) has been released in 0.3.1, with MermaidJs 9.1.0, adding accessibility features and improving GitGraph. Have a great day!
    🎉 4
    i
    • 2
    • 3
  • d

    DJ

    05/14/2022, 4:27 AM
    I want to create a dokka plugin that exports some basic information about classes/functions into a json file that is stored into the generated docs folder. My motivation to do this is to create a discord bot for searching and linking to the correct documentation. What is the best extension point to do this?
    i
    • 2
    • 2
  • 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
    g
    i
    • 3
    • 12
  • h

    hfhbd

    05/20/2022, 2:01 PM
    https://github.blog/changelog/2022-05-19-render-mathematical-expressions-in-markdown/ Sounds like a new possible plugin for dokka, like mermaid :)
    👀 2
    i
    • 2
    • 5
  • a

    Adrian Landborn

    05/31/2022, 11:28 AM
    Hi, Is there a way to not overwrite the CSS files or index.html when I run
    ./gradlew dokkaHtmlMultiModule
    ? What I am trying to achieve is to replace the path for the logo. 🧵
    i
    • 2
    • 16
  • g

    Gleb Minaev

    06/11/2022, 7:13 PM
    Hello! I've just tried dokka plugin MathJax. I have a docstring with 2 formulas and I tried to place
    @usesMathJax
    in the begining and in the end of it. In both cases documentation on the page of documented symbol renders great, but not in short description of the symbol: either all documentation or formulas are not rendered respectively. (See images in the thread for details.) Is it feature, bug, or me doing something wrong?
    g
    i
    v
    • 4
    • 7
  • g

    Gleb Minaev

    06/13/2022, 4:28 PM
    Sorry, I found another strange case. You can write a docstring including something like "[Point] [Collector]" meaning that both braced words should be parsed as links to elements
    Point
    and
    Collector
    respectively. But no matter what space you put between them until there is no paragraph break between them it will be parsed as a word "Point" with link to
    Collector
    . I found a workaround by placing any element that is parsed as a space (for example,
    <wbr>
    ,
    &#32;
    , etc.). But the workaround works in IntelliJ IDEA but not in HTML version. More precisely, in HTML version the links are separated and parsed correctly, but there is no space between them (no matter what space element you put between them). It is a bug, isn't it? Is there any official solution (or at least workaround) for this?
    ➕ 1
    i
    m
    • 3
    • 4
  • g

    Grégory Lureau

    06/16/2022, 9:03 PM
    Releasing Mermaid Html plugin 0.3.2 to get the latest 9.1.2 Mermaid.js features &amp; bugfixes. Also announcing a new toy: generating your classes diagrams via KSP directly to your Dokka documentation! It's fancy to quickly visualize what your modules or packages contains, see the relationships between classes/interfaces/enums, and allow navigation directly from the graph. You can have a look at the live demo here Please tell me what you think!
    👍 8
    ❤️ 6
    i
    • 2
    • 3
  • g

    Grégory Lureau

    06/17/2022, 8:19 AM
    Is there an example of custom html pages somewhere? I don't see how to change the templatesDir from gradle on my project 🤔
    ✅ 1
    i
    • 2
    • 2
  • g

    Grégory Lureau

    06/17/2022, 12:03 PM
    Is there a way to group modules by directories? I've a structure where modules are grouped, and they appear flat in the documentation, it's a bit harder to use.
    h
    • 2
    • 1
  • i

    Ignat Beresnev

    06/20/2022, 2:53 PM
    Dokka 1.7.0 has been released 🎉 Highlights: • Kotlin 1.7 & Support for definitely-non-nullable types • Don't expose enum entry constructor arguments • Preserve ordering of enum entries as in source code, previously reversed • Improved support for inherited
    Java
    fields with accessors, now properly interpreted as `val`/`var` properties • Make rendered default value dependent on source set for expect/actual declarations • Better support for Kotlin/native libraries in KMP projects • [HTML] Render quotes as blockquotes instead of code blocks • [GFM] Support rendering of code blocks and inline code used in KDocs And a bunch of other changes and bugfixes along with stability improvements. Full release notes: https://github.com/Kotlin/dokka/releases/tag/v1.7.0
    🎉 6
    l
    • 2
    • 1
  • r

    Robert Jaros

    06/20/2022, 4:51 PM
    After updating Dokka from 1.6.21 to 1.7.0 my project no longer builds. More info in the thread.
    👀 1
    ✅ 1
    i
    j
    +3
    • 6
    • 25
  • b

    Ben Lancaster

    06/24/2022, 9:43 AM
    I’m having a bit of trouble with Dokka on a Kotlin Multiplatform, multi-module project. Unfortunately the error message/stacktrace are pretty vague and I haven’t really got much of a clue where to start, can anyone give me some pointers? More in the thread…
    j
    v
    k
    • 4
    • 10
  • s

    simon.vergauwen

    07/04/2022, 12:42 PM
    Hey everyone 👋, Anyone has any idea what is causing all these
    ERROR CLASS
    in my generated HTML page? https://nomisrev.github.io/kotlinx-serialization-jsonpath/-kotlin-x%20-serialization%20-json-path/io.github.nomisrev/index.html It's referencing KotlinX Serialization types which is exposed through an
    api
    dependency 🤔
    i
    • 2
    • 27
  • i

    Ignat Beresnev

    07/13/2022, 12:22 PM
    Dokka 1.7.10 has been released 🥳 This is a bugfix release that addresses several blockers and regressions. Full changelog: Gradle plugin • Do not expose Kotlin stdlib in plugin dependencies, this should fix errors like Module was compiled with an incompatible version of Kotlin when using Dokka. Thanks to @mbonnin Java sources • Fixed build failure caused by having configured source links for Java code • Fixed several exotic problems that led to build failures, all related to using annotation in Java sources • Fixed IntelliJ platform
    WARN: Attempt to load key
    messages that appeared when analyzing Java sources Release notes on GH: https://github.com/Kotlin/dokka/releases/tag/v1.7.10
    👍🏾 1
    :kotlin-intensifies: 6
    👍 1
    m
    • 2
    • 15
  • t

    tomekj

    07/14/2022, 3:46 PM
    Hello there. I am trying to set up 2 dokka tasks, so that: 1. they both generate documentation for the same multi module project 2. the first one generates html docs with kotlin definitions (that one is pretty simple) 3. the second one generates html docs with java definitions (and I want it to coexist with the first one) For a single module project adding a custom task like the one below would do the trick:
    tasks.register("dokkaHtmlJava", DokkaTask::class) {
        dependencies {
            plugins("org.jetbrains.dokka:kotlin-as-java-plugin:1.7.10")
        }
    }
    But for a multi module project I am really struggling to make it work. I believe I need to register a custom
    DokkaMultiModuleTask
    in my root build.gradle.kts and then some custom
    DokkaTaskPartial
    in my modules' build.gradle.kts files. Yet I can't seem to configure this properly. Can anyone help me with this?
  • v

    v79

    07/18/2022, 9:15 PM
    Hello! Could a #dokka plugin be written which could parse code like this:
    class MyClass {
    @Router
    fun myRouter() =
      route {
        get("/hello") {
          println("hello")
        }
        get("/bananas") {
          println("bananas")
        }
    }
    }
    And generate an output something like this?
    GET /hello com.example.MyClass
    GET /bananas com.example.MyClass
    I stumbled upon a medium article which suggested Dokka could do this sort of static analysis.
    i
    • 2
    • 8
  • p

    peekandpoke

    07/19/2022, 2:28 PM
    Hi there! Has any one seen this error with Dokka 1.7.10 and Kotlin 1.7.10 when trying to run dokkaHtml for a multi-platform-project?
    Caused by: java.lang.IllegalStateException: Illegal use of flexible type deserializer.
            at org.jetbrains.kotlin.library.metadata.NullFlexibleTypeDeserializer.create(NullFlexibleTypeDeserializer.kt:19)
            at org.jetbrains.kotlin.library.metadata.NullFlexibleTypeDeserializer.create(NullFlexibleTypeDeserializer.kt:12)
            at org.jetbrains.kotlin.serialization.deserialization.TypeDeserializer.type(TypeDeserializer.kt:66)
            at org.jetbrains.kotlin.serialization.deserialization.MemberDeserializer.loadProperty(MemberDeserializer.kt:57)
            at org.jetbrains.kotlin.serialization.deserialization.descriptors.DeserializedMemberScope$OptimizedImplementation.computeProperties(DeserializedMemberScope.kt:314)
            at org.jetbrains.kotlin.serialization.deserialization.descriptors.DeserializedMemberScope$OptimizedImplementation.access$computeProperties(DeserializedMemberScope.kt:228)
            at org.jetbrains.kotlin.serialization.deserialization.descriptors.DeserializedMemberScope$OptimizedImplementation$properties$1.invoke(DeserializedMemberScope.kt:253)
            at org.jetbrains.kotlin.serialization.deserialization.descriptors.DeserializedMemberScope$OptimizedImplementation$properties$1.invoke(DeserializedMemberScope.kt:253)
            at org.jetbrains.kotlin.storage.LockBasedStorageManager$MapBasedMemoizedFunction.invoke(LockBasedStorageManager.java:578)
            at org.jetbrains.kotlin.storage.LockBasedStorageManager$MapBasedMemoizedFunctionToNotNull.invoke(LockBasedStorageManager.java:651)
            at org.jetbrains.kotlin.serialization.deserialization.descriptors.DeserializedMemberScope$OptimizedImplementation.getContributedVariables(DeserializedMemberScope.kt:338)
            at org.jetbrains.kotlin.serialization.deserialization.descriptors.DeserializedMemberScope$OptimizedImplementation.addFunctionsAndPropertiesTo(DeserializedMemberScope.kt:352)
            at org.jetbrains.kotlin.serialization.deserialization.descriptors.DeserializedMemberScope.computeDescriptors(DeserializedMemberScope.kt:115)
            at org.jetbrains.kotlin.serialization.deserialization.descriptors.DeserializedClassDescriptor$DeserializedClassMemberScope$allDescriptors$1.invoke(DeserializedClassDescriptor.kt:301)
            at org.jetbrains.kotlin.serialization.deserialization.descriptors.DeserializedClassDescriptor$DeserializedClassMemberScope$allDescriptors$1.invoke(DeserializedClassDescriptor.kt:300)
            at org.jetbrains.kotlin.storage.LockBasedStorageManager$LockBasedLazyValue.invoke(LockBasedStorageManager.java:408)
            at org.jetbrains.kotlin.storage.LockBasedStorageManager$LockBasedNotNullLazyValue.invoke(LockBasedStorageManager.java:527)
            at org.jetbrains.kotlin.serialization.deserialization.descriptors.DeserializedClassDescriptor$DeserializedClassMemberScope.getContributedDescriptors(DeserializedClassDescriptor.kt:311)
            at org.jetbrains.kotlin.resolve.scopes.ResolutionScope$DefaultImpls.getContributedDescriptors$default(ResolutionScope.kt:50)
            at org.jetbrains.kotlin.resolve.scopes.SubstitutingScope$_allDescriptors$2.invoke(SubstitutingScope.kt:38)
            at org.jetbrains.kotlin.resolve.scopes.SubstitutingScope$_allDescriptors$2.invoke(SubstitutingScope.kt:38)
            at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
            at org.jetbrains.kotlin.resolve.scopes.SubstitutingScope.get_allDescriptors(SubstitutingScope.kt:38)
            at org.jetbrains.kotlin.resolve.scopes.SubstitutingScope.getContributedDescriptors(SubstitutingScope.kt:87)
            at org.jetbrains.kotlin.resolve.scopes.ResolutionScope$DefaultImpls.getContributedDescriptors$default(ResolutionScope.kt:50)
            at org.jetbrains.kotlin.resolve.lazy.descriptors.LazyClassMemberScope.computeExtraDescriptors(LazyClassMemberScope.kt:115)
            at org.jetbrains.kotlin.resolve.lazy.descriptors.LazyClassMemberScope.doDescriptors(LazyClassMemberScope.kt:72)
            at org.jetbrains.kotlin.resolve.lazy.descriptors.LazyClassMemberScope.access$doDescriptors(LazyClassMemberScope.kt:51)
            at org.jetbrains.kotlin.resolve.lazy.descriptors.LazyClassMemberScope$getContributedDescriptors$2.invoke(LazyClassMemberScope.kt:108)
            at org.jetbrains.kotlin.resolve.lazy.descriptors.LazyClassMemberScope$getContributedDescriptors$2.invoke(LazyClassMemberScope.kt:107)
            at org.jetbrains.kotlin.storage.LockBasedStorageManager.compute(LockBasedStorageManager.java:290)
            at org.jetbrains.kotlin.storage.LockBasedLazyResolveStorageManager.compute(LockBasedLazyResolveStorageManager.kt)
            at org.jetbrains.kotlin.resolve.lazy.descriptors.LazyClassMemberScope.getContributedDescriptors(LazyClassMemberScope.kt:107)
            at org.jetbrains.kotlin.resolve.scopes.ResolutionScope$DefaultImpls.getContributedDescriptors$default(ResolutionScope.kt:50)
            at org.jetbrains.dokka.base.translators.descriptors.DokkaDescriptorVisitor.getDescriptorsWithKind(DefaultDescriptorToDocumentableTranslator.kt:820)
            at org.jetbrains.dokka.base.translators.descriptors.DokkaDescriptorVisitor.getDescriptorsWithKind$default(DefaultDescriptorToDocumentableTranslator.kt:819)
            at org.jetbrains.dokka.base.translators.descriptors.DokkaDescriptorVisitor$classDescriptor$2.invokeSuspend(DefaultDescriptorToDocumentableTranslator.kt:383)
            at org.jetbrains.dokka.base.translators.descriptors.DokkaDescriptorVisitor$classDescriptor$2.invoke(DefaultDescriptorToDocumentableTranslator.kt)
            at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:89)
            at kotlinx.coroutines.CoroutineScopeKt.coroutineScope(CoroutineScope.kt:264)
            at org.jetbrains.dokka.base.translators.descriptors.DokkaDescriptorVisitor.classDescriptor(DefaultDescriptorToDocumentableTranslator.kt:382)
            at org.jetbrains.dokka.base.translators.descriptors.DokkaDescriptorVisitor.access$classDescriptor(DefaultDescriptorToDocumentableTranslator.kt:132)
            at org.jetbrains.dokka.base.translators.descriptors.DokkaDescriptorVisitor$classDescriptor$1.invokeSuspend(DefaultDescriptorToDocumentableTranslator.kt)
            at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
            at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:33)
            at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102)
            at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
            at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:33)
            at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102)
            at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
            at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:33)
            at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102)
            at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
            at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
            at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
            at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
            at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
            at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
    😨 1
    i
    • 2
    • 16
  • p

    peekandpoke

    07/19/2022, 3:37 PM
    Is there a way to create an empty docs.jar? I need to publish an artifact, but it must have the docs.jar attached, otherwise maven.org will not accept the it. Any idea how I could do this for the time being? (until the thing above is fixed)
    • 1
    • 1
  • m

    mbonnin

    07/27/2022, 3:48 PM
    Is the Dokka version bound to the Kotlin plugin version? I.e. can I use Dokka 1.7.10 with Kotlin 1.6.21? (or the other way around)
    i
    • 2
    • 1
  • f

    ftomassetti

    07/29/2022, 10:58 AM
    Hi, I would like to extract comments from Kotlin code using Dokka and produce a JSON or something similar. My goal is to use those comments together with other information to generate domain specific documentation. Is this something possible? Any pointer to share?
    i
    • 2
    • 2
  • a

    andrei.heidelbacher

    07/30/2022, 11:18 AM
    Hi! I'm trying to configure Dokka 1.7.10 for a multi-module project that uses Gradle 7.4 with conventions plugins. The repository is at https://github.com/andreihh/chronolens. If I add
    implementation(libs.dokka.gradle)
    to
    buildSrc/build.gradle.kts
    dependencies section and
    id("org.jetbrains.dokka")
    to
    buildSrc/src/main/kotlin/chronolens.common-conventions.gradle.kts
    plugins section, then I get the following error when running any Gradle task (compiling the conventions plugins seems to fail):
    e: /home/andrei/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.7.10/bac80c520d0a9e3f3673bc2658c6ed02ef45a76a/kotlin-stdlib-common-1.7.10.jar!/META-INF/kotlin-stdlib-common.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.7.1, expected version is 1.5.1.
    e: /home/andrei/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/1.7.10/1ef73fee66f45d52c67e2aca12fd945dbe0659bf/kotlin-stdlib-jdk7-1.7.10.jar!/META-INF/kotlin-stdlib-jdk7.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.7.1, expected version is 1.5.1.
    e: /home/andrei/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk8/1.7.10/d70d7d2c56371f7aa18f32e984e3e2e998fe9081/kotlin-stdlib-jdk8-1.7.10.jar!/META-INF/kotlin-stdlib-jdk8.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.7.1, expected version is 1.5.1.
    e: /home/andrei/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.7.10/d2abf9e77736acc4450dc4a3f707fa2c10f5099d/kotlin-stdlib-1.7.10.jar!/META-INF/kotlin-stdlib.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.7.1, expected version is 1.5.1.
    Does anyone have any idea how to fix this problem? I tried deletng the
    .gradle/caches
    , but to no avail.
  • a

    andrei.heidelbacher

    07/30/2022, 11:25 AM
    Dokka 1.7.10 advertises to have fixed this issue (https://github.com/Kotlin/dokka/releases/tag/v1.7.10), but it persists for me
    i
    • 2
    • 2
Powered by Linen
Title
a

andrei.heidelbacher

07/30/2022, 11:25 AM
Dokka 1.7.10 advertises to have fixed this issue (https://github.com/Kotlin/dokka/releases/tag/v1.7.10), but it persists for me
i

Ignat Beresnev

07/30/2022, 6:35 PM
Hi! Yeah, unfortunately, it's still relevant, but hopefully will be fixed for good in 1.7.20 See this issue for context and workarounds: https://github.com/Kotlin/dokka/issues/2546#issuecomment-1185529177
a

andrei.heidelbacher

07/30/2022, 9:59 PM
Awesome, one of the mitigations mentioned there was upgrading to Gradle 7.5, and that worked. Thank you!
View count: 6