does dokka not support multiple `@see` entries?
# dokka
e
does dokka not support multiple
@see
entries?
i
It should Can you give an example of how you're using it?
e
@see [foo] @see [bar] @see [baz]
all that shows up is the final one
this is with 1.7.10
i
Is
{
instead of
[
intentional or a mistake?
e
oh. a mistake. πŸ™‚ sorry.
i
Copy code
/**
 * Generic description
 *
 * @see [IllegalStateException] for exception
 * @see [List] for list
 * @see [Map] for map
 */
fun seeDemo() {}
Yeah, should work just fine It'll look a bit better in the next release ;)
e
i guess the difference is i'm trying to refer to other functions as opposed to other types.
e.g., this class has
find()
and
stream()
which are similar but different so i'm trying to cross-reference
(dokka's output/format has come a long way since i last looked. i quite like it especially compared to the recent javadoc formats)
i
Even if the type is not resolved, it should still be present in documentation, just not clickable (i.e not pointing to any specific declaration). Functions should work just the same as types Could you share a more close to life example and what you're seeing in Dokka's output? To try to reproduce the problem
e
ok. i think i've perhaps isolated the what/where. it looks like it's combining entries with a shared type almost as if being stored in a Map (i know i'm guessing here)
i'll show you my source and then a screen clip of the rendered bits.
Copy code
/**
     * @see [List] check the listing!
     * @see [Map] paging Lewis and Clark
     * @see [find] find me
     * @see [list] list me
     * @see [stream] stream me
     */
image.png
so as you can see the
List
and
Map
render correctly but the three refs to functions end up only being the last one
(also it would be great if those packages weren't included especially when referring to functions)
i can file a formal issue on this so you don't have to rely on slack to keep track of it if you'd like.
i
Thanks for reporting it, I'll have a closer look today
e
want me to file something on YouTrack?
i
Hi! I'm able to reproduce it, so no need, you've helped a lot as it is, thanks! I've created an issue on GitHub with a simple reproducer to keep track: https://github.com/Kotlin/dokka/issues/2626
e
perfect. thanks. mine weren't static fwiw but i'm sure it's all related. 🀞🏻
i
Isn't
PanacheCompanionBase
a
companion object
or just an
object
?
as far as I can see Kotlin doesn't let you import functions otherwise
e
oh, right. that's a companion object, right. i had it as an interface in my head because some of waves hand in there uses interfaces.
i
I'm surprised we haven't encountered this before: the function that resolves fully qualified names returns only the class name for all functions and properties that are static or declared in objects. So
@see [Collections.emptyList]
would be resolved to just
@see [Collections]
And of course further down the road there's that piece of code:
Copy code
<tags>.groupByTo(linkedMapOf()) { it.second.name }
it looks like it's combining entries with a shared type almost as if being stored in a Map (i know i'm guessing here)
So you were quite right here ^ πŸ™‚
e
ha! nice. i hate it when people try to say where/what the bug is but I feel like i've been bitten by this exact thing myself a time or two. πŸ™‚
🦜 1
i
JFYI the fix will be released in 1.7.20, and it seems like there's no workaround for now 😞
e
no worries. it's not a rush here. we do releases every 2ish weeks anyway so when .20 lands, we'll get it.
is there a plugin to create a dokka-format jar and attach it to the maven project or should i wire that up manually.
like
javadocJar
but with the dokka format.
i
Not that I'm aware of, no Imho it makes little sense outside jvm platform, and for m2 publishing people usually put Dokka's output inside
javadoc.jar
. Here's an example
e
ugh. we're a maven shop but i know how to do it all manually in maven. was just hoping I didn't have to. πŸ™‚
i
I believe you can automate it in maven as well, here's a configuration Unfortunately, maven support is overall poor in Dokka, with some key features missing 😞
e
oh! that's exactly what I was looking for! πŸ™‚
i thought I'd seen that somewhere but couldn't find it yesterday when I went looking. thanks.
i
Yeah, it was linked recently by another member in the javadoc.io discussion, props to @Joe for figuring it out πŸ™‚