Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android: classes from different product flavor not resolved/linked properly #2882

Open
bvschaik opened this issue Feb 20, 2023 · 0 comments
Open
Labels
bug platform: android-jvm An issue/PR that has some Android platform specifics

Comments

@bvschaik
Copy link

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

  1. Clone this example project
  2. Run ./gradlew dokkaHtml
  3. 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.

@bvschaik bvschaik added the bug label Feb 20, 2023
@IgnatBeresnev IgnatBeresnev added the platform: android-jvm An issue/PR that has some Android platform specifics label Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug platform: android-jvm An issue/PR that has some Android platform specifics
Projects
None yet
Development

No branches or pull requests

2 participants