-
Notifications
You must be signed in to change notification settings - Fork 454
Open
Labels
Milestone
Description
It is probably relevant to any error produced by the dokka engine.
If a project has samples that are configured incorrectly (#3760) then the failure in 2.1.0 looks like:
> Task :mpp-module:dokkaGenerateModuleHtml FAILED
w: [:single-target-jvm:dokkaGenerateModuleHtml] Couldn't resolve link for HttpClient in KJvmAnotherClass.kt/org.jetbrains.qa.common.getHttpClientFromKtor
[Incubating] Problems report is available at: file:///Users/Andrei.Tyrin/IdeaProjects/dokka-multimodule-project/build/reports/problems/problems-report.html
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':mpp-module:dokkaGenerateModuleHtml'.
> A failure occurred while executing org.jetbrains.dokka.gradle.workers.DokkaGeneratorWorker
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to generate a Build Scan (Powered by Develocity).
> Get more help at https://help.gradle.org.
BUILD FAILED in 20s
128 actionable tasks: 105 executed, 23 up-to-date
Configuration cache entry stored.
And till I call it with --stacktrace
it is not clear what exactly happened. With stacktrace:
Caused by: org.jetbrains.dokka.DokkaException: Pre-generation validity check failed: Source sets 'apple' and 'appleTest' have the common sample roots: /Users/Andrei.Tyrin/IdeaProjects/dokka-multimodule-project/mpp-module/src/kotlin/commonMain/samples.kt. Every Kotlin source file should belong to only one source set (module).
In 2.0.0 with K2 opt-in the error was shown by default.