-
Notifications
You must be signed in to change notification settings - Fork 408
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
Multi-module project fails to resolve inter-module links #2679
Comments
The problem might be related to Kotlin not having proper support for multiplatform projects with a single target, KT-52664. Setting This problem was also discussed in Kotlin Slack: https://kotlinlang.slack.com/archives/C0F4UNJET/p1664570734894159 |
Yes and to follow up: setting |
Any update on this issue? We're still pinned to Kotlin 1.7.10 until this is fixed. We've tried regressing on 1.7.20 and 1.8.0 and both versions cause the |
(to comment on the previous post: we continued the discussion in Kotlin Community Slack, and found a workaround) JFYI There were some changes in Kotlin 1.9.0-Beta that might affect this issue or the workaround, but it's unclear as of now whether these changes will be shipped in the final release version. Do ping us if it starts blocking you again though, please |
This particular problem was more difficult to resolve as fixing it for aws projects broke some other projects like ktor. However, we seem to have found a workaround, and it will be released in Dokka 1.9.0, which should hopefully happen next week. I've provided more information about it in #3122. Let's keep this issue open until you migrate and verify that you are able to build documentation without this problem. |
Hi Ignat, thanks for the update. I just tried upgrading our Kotlin/Dokka versions to 1.9.0 and built some test docs, but still see |
Describe the bug
While attempting to use Dokka with a multi-module project (smithy-kotlin), it is observed that code in a dependent module which references types in a dependency module leads to generated documentation containing
Error class: unknown class
.Expected behaviour
It is expected that types declared in dependency modules resolve correctly in docs for dependent modules.
Screenshots
(coming soon)
To Reproduce
./gradlew -Dorg.gradle.jvmargs='-Xmx6G -XX:MaxMetaspaceSize=2G' dokkaHtmlMultiModule
-Xmx6G -XX:MaxMetaspaceSize=2G
argumentsError class: unknown class
errors wherever dependency types are referencedDokka configuration
The Dokka configuration is part of the root build.gradle.kts file:
Installation
Additional context
(n/a)
Are you willing to provide a PR?
I don't understand the root cause. Otherwise, I'd be happy to submit a PR.
The text was updated successfully, but these errors were encountered: