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

Non-embeddable compiler JAR compilations are broken in 1.0.7 #1155

Closed
rickclephas opened this issue Oct 22, 2022 · 0 comments · Fixed by #1275
Closed

Non-embeddable compiler JAR compilations are broken in 1.0.7 #1155

rickclephas opened this issue Oct 22, 2022 · 0 comments · Fixed by #1275
Assignees
Labels
bug Something isn't working
Milestone

Comments

@rickclephas
Copy link

After updating KSP from 1.7.20-1.0.6 to 1.7.20-1.0.7 projects with the following gradle property

kotlin.native.useEmbeddableCompilerJar=false

fail to build in the kspKotlin tasks with

e: java.lang.IllegalStateException: The provided plugin com.google.devtools.ksp.KotlinSymbolProcessingComponentRegistrar is not compatible with this version of compiler
	at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment$Companion.registerExtensionsFromPlugins$cli(KotlinCoreEnvironment.kt:664)
	...
Caused by: java.lang.AbstractMethodError: Receiver class com.google.devtools.ksp.KotlinSymbolProcessingComponentRegistrar does not define or inherit an implementation of the resolved method 'abstract void registerProjectComponents(com.intellij.mock.MockProject, org.jetbrains.kotlin.config.CompilerConfiguration)' of interface org.jetbrains.kotlin.compiler.plugin.ComponentRegistrar.
	at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment$Companion.registerExtensionsFromPlugins$cli(KotlinCoreEnvironment.kt:656)

Looking at the changes between those versions I think this is caused by f35af30.
The symbol-processing dependency seems to be added regardless of the useEmbeddableCompilerJar setting.

rickclephas added a commit to rickclephas/KMP-NativeCoroutines that referenced this issue Oct 22, 2022
@neetopia neetopia added the bug Something isn't working label Nov 7, 2022
@ting-yuan ting-yuan self-assigned this Jan 5, 2023
@ting-yuan ting-yuan added this to the 1.0.9 milestone Jan 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants