https://kotlinlang.org logo
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
  • r

    robstoll

    04/12/2017, 5:29 PM
    I am having some trouble with dokka. If I do not specify a return type explicitly (I am using the syntax: fun foo() = bar()) then dokka uses NonExistentClass instead. I do not want to type return types only because dokka is not good enough. any suggestions?
    s
    • 2
    • 3
  • d

    Dalinar

    04/14/2017, 9:48 AM
    @robstoll I'm not entirely sure how to do that, I imported it but the import is greyed out and squiggly-lined saying "unused import"... and the
    [Long.myExtensionFunction]
    is still underlined (the stuff after the
    .
    ) - update: now it's removed the import
    r
    • 2
    • 7
  • i

    Ian

    04/15/2017, 4:54 PM
    Is there a way to include a code sample that defines some new sealed classes in a kdoc? I’m aware of
    @snippet
    but that requires that the code be in a function, and I can’t declare sealed classes inside a function. I’ve also tried using the triple-backticks to embed the code directly, but for some reason that doesn’t seem to retain indenting (at least in the Intellij preview of the kdoc)
    s
    • 2
    • 3
  • c

    codeprogression

    04/18/2017, 5:49 PM
    I am including some sample code for a package using an “includes” markdown file. The sample code is fenced by three backticks. The default documentation generates as expected. However, the generated javadoc has the code all on one line. Is backticks the proper way to apply the code fence in an includes document?
    s
    • 2
    • 5
  • e

    ericksli

    04/23/2017, 5:24 AM
    @semoro Thanks. That means if I want to upgrade android gradle build tool, I have to check whether the current version of dokka is supported?
    s
    • 2
    • 1
  • a

    alex2069

    05/18/2017, 6:28 AM
    @semoro I'm getting a FileNotFoundException "https://kotlinlang.org/api/latest/jvm/stdlib/package-list" on master (using 1.1.3-eap-34) - is this known/expected?
    Caused by: java.io.FileNotFoundException: <https://kotlinlang.org/api/latest/jvm/stdlib/package-list>
    	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1872)
    	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474)
    	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
    	at java.net.URL.openStream(URL.java:1045)
    	at org.jetbrains.dokka.ExternalDocumentationLinkResolver.loadPackageLists(ExternalDocumentationLinkResolver.kt:30)
    	at org.jetbrains.dokka.ExternalDocumentationLinkResolver.<init>(ExternalDocumentationLinkResolver.kt:60)
    	at org.jetbrains.dokka.ExternalDocumentationLinkResolver$$FastClassByGuice$$34356095.newInstance(<generated>)
    s
    • 2
    • 2
  • n

    natpryce

    05/22/2017, 11:40 AM
    I’ve brew installed kotlin, but can’t find a package for dokka
    s
    • 2
    • 10
  • n

    natpryce

    05/22/2017, 12:07 PM
    I can’t even get help out of it
    s
    • 2
    • 10
  • c

    chrmelchior

    05/25/2017, 11:07 AM
    So this problem might be a bit of a corner case, but I’m wondering if it is supported by Dokka: I have created a Kotlin specific library with a bunch of extension methods for a normal Android library. The base library is included as a
    provided
    dependency. Now I want to generate KDoc files for only my extension methods, but It doesn’t look possible without getting a lot of errors about missing types and the resulting Doc looks like this
    fun <E> <ERROR CLASS>.where(clazz: KClass<E>): <ERROR CLASS><E>
    . Is there a way to generate the KDoc for only my extension method and still show the class names?
    s
    • 2
    • 3
  • f

    fred.deschenes

    05/30/2017, 3:34 PM
    yeah I debated putting them in the org.slf4j package (since you're going to import that anyway if you're going to use them)
    s
    • 2
    • 1
  • n

    natpryce

    06/01/2017, 11:04 AM
    Any chance of getting dokka into sdkman, so it’s installed when I do
    sdkman install kotlin
    ?
    s
    • 2
    • 2
  • s

    suresh

    06/01/2017, 5:31 PM
    https://github.com/Kotlin/dokka/issues/167 - Any body else facing this issue with
    0.9.14
    ?
    s
    • 2
    • 1
  • k

    kyle

    06/05/2017, 3:37 PM
    Anyone ever seen an error like
    Error:Could not get unknown property 'org' for project ':library' of type org.gradle.api.Project.
    when using dokka? Trying to do
    task dokkaJavadoc(type: org.jetbrains.dokka.gradle.DokkaTask) {
                outputFormat = 'javadoc'
                outputDirectory = "$buildDir/javadoc"
            }
    
            task androidDokkaJar(type: Jar, dependsOn: dokkaJavadoc) {
                classifier = 'javadoc'
                from dokkaJavadoc.outputDirectory
            }
    s
    c
    • 3
    • 15
  • s

    semoro

    06/26/2017, 4:56 PM
    Dokka 0.9.15 released! https://github.com/Kotlin/dokka/releases/tag/0.9.15 * Bundled Kotlin compiler updated to 1.1.3 * (Gradle) processConfigurations now deprecated, new configuration mechanism kotlinTasks added. * (#168) Compatibility with Android Build Tools 3.0.0-alpha3+ * When Gradle plugin dokka-android used Android Reference now linked by default. * (#171) Fixed parameters formatting is broken in 0.9.14 * (#167, KT-18213) Fixed StringIndexOutOfRange for Markdown reference style links. * Added opt-in caching of package-list's, see cacheRoot in the docs.
    👍 3
    s
    • 2
    • 2
  • s

    sdeleuze

    08/24/2017, 7:53 PM
    Any idea when it will be released ? (I would like to use that in Spring Framework documentation)
    s
    • 2
    • 2
  • s

    sdeleuze

    08/28/2017, 10:37 AM
    Any reason why
    classpath
    is not an
    Iterable<File>
    like
    sourceDirs
    ? It seems to prevent using easily
    FileCollection
    ...
    t
    • 2
    • 3
  • r

    robfletcher

    09/22/2017, 5:41 PM
    Looks like if I have
    dokka-gradle-plugin:0.9.15
    and
    kotlin-gradle-plugin:1.1.50
    my build blows up with
    Using Kotlin incremental compilation
    e: java.lang.NoSuchMethodError: kotlin.reflect.jvm.internal.KClassImpl.getData()Lkotlin/reflect/jvm/internal/ReflectProperties$LazyVal;
            at kotlin.reflect.full.KClasses.getMemberProperties(KClasses.kt:149)
            at org.jetbrains.kotlin.compilerRunner.ArgumentUtils.convertArgumentsToStringList(ArgumentUtils.java:59)
            at org.jetbrains.kotlin.compilerRunner.ArgumentUtils.convertArgumentsToStringList(ArgumentUtils.java:47)
            at org.jetbrains.kotlin.compilerRunner.GradleCompilerRunner.compileWithDaemonOrFallback(GradleKotlinCompilerRunner.kt:147)
            at org.jetbrains.kotlin.compilerRunner.GradleCompilerRunner.compileWithDaemonOrFallback(GradleKotlinCompilerRunner.kt:52)
            at org.jetbrains.kotlin.compilerRunner.KotlinCompilerRunner.runCompiler(KotlinCompilerRunner.kt:127)
            at org.jetbrains.kotlin.compilerRunner.GradleCompilerRunner.runJvmCompiler(GradleKotlinCompilerRunner.kt:107)
            at org.jetbrains.kotlin.gradle.tasks.KotlinCompile.callCompiler$kotlin_gradle_plugin(Tasks.kt:326)
            at org.jetbrains.kotlin.gradle.tasks.KotlinCompile.callCompiler$kotlin_gradle_plugin(Tasks.kt:231)
            at org.jetbrains.kotlin.gradle.tasks.AbstractKotlinCompile.execute(Tasks.kt:203)
            …
    s
    • 2
    • 9
  • n

    napperley

    09/24/2017, 2:28 AM
    Getting an NPE when running the dokka Gradle task (using Gradle 4.1): https://kotlinlang.slack.com/files/U5R5FGVH7/F776ZPUE4/npe_with_dokka_task.txt
    s
    • 2
    • 1
  • n

    napperley

    09/26/2017, 3:59 AM
    Is this for Gradle DSL or Gradle Kotlin DSL?
    s
    • 2
    • 1
  • s

    sdeleuze

    09/26/2017, 8:10 AM
    That could be also an opportunity to make Dokka suitable by default for kotlin2js and Gradle Kotlin DSL.
    n
    • 2
    • 1
  • c

    codeprogression

    10/18/2017, 3:00 PM
    @semoro I'm willing to take a crack at this one: https://github.com/Kotlin/dokka/issues/197, but could use a little guidance as to how you might want is structured.
    s
    • 2
    • 6
  • c

    cody

    10/25/2017, 1:42 PM
    Has anyone ran into issues with
    @property
    when writing KDoc? Using the Kotlin plugin for Android Studio it appears to break the generation of documentation for the tooltip window. Essentially everything after
    @property
    does not display.
    s
    • 2
    • 6
  • p

    pniederw

    10/29/2017, 7:37 AM
    is it feasible to support showing java signatures for java classes in dokka (with
    outputFormat = 'html'
    )? I’d love to use a single doc generator with single look & feel for my project’s java and kotlin apis. however, I need the java docs to show java signatures. (the reason for writing some of my apis in java is that I can’t impose kotlin on everyone.)
    c
    • 2
    • 1
  • a

    andrei.heidelbacher

    11/03/2017, 12:26 PM
    Not sure if this is an error in the generated documentation or the generated bytecode (but I can hardly believe that protected methods compile down to public ones, so I would guess it's an error with Dokka?)
    s
    • 2
    • 5
  • m

    madorb

    12/05/2017, 3:35 PM
    i’m using dokka to generate javadoc - i’m seeing methods like
    componentN()
    that have the documentation of each @property definition of my class applied to them (on top of the generated
    getProperty()
    methods). is this expected?
    /**
     * Represents an error that will be serialized back to the client in a standardized format.
     * This should be used for all error responses that require a body to be returned in the response.
     *
     * @property description User-facing description of the error
     * @property type Type of the error
     * @property code An optional unique identifier for the particular error
     * @constructor Create an Error instance
     */
    data class Error(val description: String, val type: ErrorType, val code: String? = null)
    s
    • 2
    • 3
  • m

    mikehearn

    12/13/2017, 3:08 PM
    Any idea when the next Dokka release will be?
    s
    • 2
    • 1
  • m

    mkobit

    12/25/2017, 8:09 PM
    @Ian sounds similar to https://github.com/Kotlin/dokka/issues/146
    🖖 1
    i
    • 2
    • 1
  • t

    todd.ginsberg

    01/01/2018, 4:33 PM
    Well, I think I've hit a dead end. I defined my own
    FormatDescriptor
    for a style that does everything the html format does excpet using
    KotlinWebsiteSampleProcessingService
    . That seems straight forward - define dokka/format/myformatname.properties and away we go. But I think the way the gradle-dokka plugin is looking up resources, I'm never going to be able to package my`FormatDescriptor` and its property files in a separate jar. I tried doing this and the packaging looks correct, and the jar for my formatter is on the build's classpath (so, in the buildscript/dependencies section), but I keep getting exceptions that it can't be found. https://github.com/Kotlin/dokka/blob/d1eee305ef865eee8848989363db3f0fed63e11a/core/src/main/kotlin/Utilities/ServiceLocator.kt#L33
    y
    s
    • 3
    • 4
  • s

    Slackbot

    01/01/2018, 7:30 PM
    This message was deleted.
    i
    • 2
    • 2
  • d

    david.bilik

    01/25/2018, 11:37 AM
    is there any convention how to put comment for the whole file? If I put some blank line between comment and the first class in that file, the comment is linked with that class nevertheless
    ➕ 1
    y
    • 2
    • 1
Powered by Linen
Title
d

david.bilik

01/25/2018, 11:37 AM
is there any convention how to put comment for the whole file? If I put some blank line between comment and the first class in that file, the comment is linked with that class nevertheless
➕ 1
y

yole

01/28/2018, 10:16 AM
the generated documentation has no concept of "files", so if you want to see your comment in the generated documentation, you need to attach it to a declaration. if you don't want to see it in the generated docs, use a regular // comment instead of a kdoc.
View count: 5