Skip to content

Compilation error only happening during Dokka build #170

@CLOVIS-AI

Description

@CLOVIS-AI

I am facing a compilation error when generating the Dokka output. However, the problem does not appear when compiling the project normally (./gradlew check).

It seems Dokka cannot find the standard library, and complains about many symbols from it:

e: file:///…/src/commonMain/kotlin/Parameters.kt:46:31 Unresolved reference: HashMap
e: file:///…/src/commonMain/kotlin/Parameters.kt:120:3 Unresolved reference: JvmInline
e: file:///…/commonMain/kotlin/Parameters.kt:141:4 Unresolved reference: require
e: file:///…/src/commonMain/kotlin/Parameters.kt:141:17 Unresolved reference: isNotBlank

Reproduction:

  • Clone the repository https://gitlab.com/opensavvy/spine.git
  • Checkout commit a5dede751c40d143b671b12e33df2ac769e3fdfd
  • Run ./gradlew check ← passes
  • Run ./gradlew :dokkatooGeneratePublicationHtml ← fails with compilation error

The full output of the failed execution is available here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    blocked-by:GradleBlocked by a bug/missing feature in GradlebugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions