You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I have an Android project with two product flavors, and thus multiple source sets. When a class from the main (shared) source set is used in another source set, the class is not recognized. For Kotlin sources, it generates <Error class: unknown class> for the type, for Java sources it does display the type name but doesn't generate a link.
Expected behaviour
Class is resolved and linked properly for both Kotlin and Java sources.
Look at the generated documentation for the "PathFinder" classes:
BasicPathFinder (in same source set as Direction): fun findPath(direction: Direction, distance: Int): Boolean - Direction linked to correct page
AdvancedKotlinPathFinder (Kotlin, in different source set): fun findPath(direction: <Error class: unknown class>, distance: Int): Boolean
AdvancedJavaPathFinder (Java, in different source set): open fun findPath(direction: Direction, distance: Int): Boolean - Direction not linked to anything
Dokka configuration
Default configuration.
Installation
Operating system: macOS
Build tool: Gradle v7.5
Dokka version: 1.7.20
Additional context
Class not resolved in Kotlin might be related to #503
Not linking might be resolved by #2877
Are you willing to provide a PR?
If I could, I would. However, I spent a day trying to find out where the unknown class came from, but apparently it's deep down in dokka-kotlin-analysis-intellij.
The text was updated successfully, but these errors were encountered:
Describe the bug
I have an Android project with two product flavors, and thus multiple source sets. When a class from the main (shared) source set is used in another source set, the class is not recognized. For Kotlin sources, it generates
<Error class: unknown class>
for the type, for Java sources it does display the type name but doesn't generate a link.Expected behaviour
Class is resolved and linked properly for both Kotlin and Java sources.
To Reproduce
./gradlew dokkaHtml
BasicPathFinder (in same source set as Direction):
fun findPath(direction: Direction, distance: Int): Boolean
-Direction
linked to correct pageAdvancedKotlinPathFinder (Kotlin, in different source set):
fun findPath(direction: <Error class: unknown class>, distance: Int): Boolean
AdvancedJavaPathFinder (Java, in different source set):
open fun findPath(direction: Direction, distance: Int): Boolean
-Direction
not linked to anythingDokka configuration
Default configuration.
Installation
Additional context
Class not resolved in Kotlin might be related to #503
Not linking might be resolved by #2877
Are you willing to provide a PR?
If I could, I would. However, I spent a day trying to find out where the unknown class came from, but apparently it's deep down in dokka-kotlin-analysis-intellij.
The text was updated successfully, but these errors were encountered: