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

Compilation error when applying the plugin #55

Open
CLOVIS-AI opened this issue Jul 27, 2024 · 3 comments
Open

Compilation error when applying the plugin #55

CLOVIS-AI opened this issue Jul 27, 2024 · 3 comments

Comments

@CLOVIS-AI
Copy link

Sorry in advance, I don't know anything about compiler plugin, so I don't know how to interpret this message at all. Maybe it's obvious.

Reproduction:

This creates the following compilation error:

e: Compilation failed: IrPropertyPublicSymbolImpl for opensavvy.prepared.runner.kotest/launcher|{}launcher[0] is already bound: PROPERTY name:launcher visibility:public modality:FINAL [val]

 * Source files: 
 * Compiler version: 2.0.0
 * Output kind: PROGRAM

e: java.lang.IllegalStateException: IrPropertyPublicSymbolImpl for opensavvy.prepared.runner.kotest/launcher|{}launcher[0] is already bound: PROPERTY name:launcher visibility:public modality:FINAL [val]
        at org.jetbrains.kotlin.ir.symbols.impl.IrBindablePublicSymbolBase.bind(IrPublicSymbolBase.kt:69)
        at org.jetbrains.kotlin.ir.declarations.impl.IrPropertyImpl.<init>(IrPropertyImpl.kt:65)
        at org.jetbrains.kotlin.ir.declarations.impl.AbstractIrFactoryImpl.createProperty(IrFactoryImpl.kt:297)

By using the good ol' method of commenting out code until it works, I believe this class is the one that causes the crash:

abstract class PreparedSpec(body: SuiteDsl.() -> Unit) : StringSpec({
	preparedSuite { body() }
})

I guess the plugin is trying to register it as an actual test because it implements StringSpec, but since it's abstract it can't?

@sksamuel
Copy link
Member

sksamuel commented Aug 9, 2024

Which version ?

@CLOVIS-AI
Copy link
Author

CLOVIS-AI commented Aug 9, 2024

Version of what? The Kotest plugin version is 5.9.1, as written in the issue.

@sksamuel
Copy link
Member

sksamuel commented Aug 9, 2024

Ok the compiler plugin not the kotest gradle plugin. Got it.

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

No branches or pull requests

2 participants