is there a way to get intellij to show javadoc on ...
# community-support
c
is there a way to get intellij to show javadoc on hover over (kotlin dsl), like it would for java?
v
Just do it? 😄
Works just fine for me
c
it doesn't for me... I get no javadoc
so, cool story bro 😉 you want a screenshot?
v
I'm not aware I somehow enabled this. And I also do not see any relevant setting, neither for Java nor Kotlin.
If you Ctrl+Click / Ctrl+B, do you land at the sources or something decompiled?
For which construct did you try and it does not work?
I think if it cannot find the sources properly, it also does not have the JavaDoc, so cannot find it.
And in some not too old, previous Gradle versions there were some problems that the sources for some moved classes were not found by IntelliJ and for Kotlin files it still is the case.
c
that shows the signature, not the javadoc
wait... maybe register and create don't have javadoc
why would that not surprise me
never occurred to me that it might be that the api isn't completely documented
headdesk
🤦‍♂️
yeah, the thing I can't remember, register or create, no docs
not that switching to register solved my problem
v
There the problem is, that the source it not found, not that it is not documented. Those are documented, but IntelliJ does not find the sources. Exactly what I wrote above.
👍 1
I'll search the issue for you, one moment
The issue is about the navigating to source, but it's the same. If the navigation would work, the quick-doc should work too.
c
And in some not too old, previous Gradle
ancient versions like 8.7 and intellij 2023.3.6 ?
😉
v
No
That was about the Java files
👍 1
For those it was fixed on Gradle side
Just for the Kotlin files it is still broken
c
well, I gave it my thumbs up
v
For the Java files it was fixed in Gradle 8.6
👍 1
And still worked in 8.3 or so
c
so gradle fixed it, not intellij? or they only fixed it for recent versions
v
Gradle was giving wrong information about source location to IntelliJ for the Java files that were moved from
subprojects/....
to the new
platforms/...
file structure
So for the Java files it was a pure fix on Gradle side in 8.6
I have no idea whether for the Kotlin files it is also Gradle's fault or IntelliJs, neither JetBrains folks, not @Paul Merlin really answered that so far as far as I remember.
c
I always assume they're pointing the finger at the other person
because usually when I have a problem where I don't know and it's not concluded that I'm an idiot, that's what they do instead of helping or providing evidence of who's fault it is
obviously "they" is "everyone else"
not particularly jetbrains or paul
that, and the same scenario but blaming upstream where I know nothing about upstream, or why it's them
but expecting me to file that report
p
This is all interesting problems that should be understood and fixed if needed. But guys, this thread is far from motivating ...
v
Oh, sorry, I actually didn't mean to mention you. Just wanted to say that luckily you fixed it for the Java classes but unfortunately didn't answer whether the problem with the Kotlin classes is similar or on JetBrains' side.
p
Yeah, my comment was not about the mention but more about the signal/noise ratio in this thread. It's discouraging doing any sort of investigation.