Skip to content

Conversation

@vmishenev
Copy link
Contributor

@vmishenev vmishenev commented Oct 30, 2025

Fixes https://teamcity.jetbrains.com/buildConfiguration/KotlinTools_Dokka_IntegrationTests/5619041
Dokka Integration Tests [K2] were run only on the Gradle projects.

The CLI runner uses its own version of stdlib instead of the shadowed stdlib from analysis (e.g., see #4229).
This PR has a quick fix.

The ideal solution is to have an isolated classloader like in #4182. Or cli-runner can be bundled with symbols-analysis without the ability to switch between K1 and K2.

@vmishenev vmishenev force-pushed the vmishenev/fix-cli-runner-force-use-of-stdlib2.2 branch from b27a54f to a2eb69f Compare October 30, 2025 13:21
@vmishenev vmishenev force-pushed the vmishenev/fix-cli-runner-force-use-of-stdlib2.2 branch from a2eb69f to 285e5c1 Compare October 30, 2025 14:35
org.jetbrains.dokka.javaToolchain.mainCompiler=8
org.jetbrains.dokka.javaToolchain.testLauncher=8
org.jetbrains.dokka.enforceGradleKotlinCompatibility=true
org.jetbrains.dokka.enforceGradleKotlinCompatibility=false
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The current stdlib 2.2 is compatible with the stdlib from the compiler.

@vmishenev vmishenev marked this pull request as ready for review October 30, 2025 21:09
@vmishenev vmishenev requested a review from whyoleg October 30, 2025 21:09
Copy link
Collaborator

@whyoleg whyoleg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mind creating an issue for further improvements mentioned in the issue?

I believe that for now (and for the near future), the quick fix will be just enough.

@vmishenev vmishenev merged commit 9f8e377 into master Nov 3, 2025
12 of 13 checks passed
@vmishenev vmishenev deleted the vmishenev/fix-cli-runner-force-use-of-stdlib2.2 branch November 3, 2025 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants