Hm, I'm getting this… does it ring a bell to anyon...
# compiler
c
Hm, I'm getting this… does it ring a bell to anyone?
Copy code
e: java.lang.IllegalStateException: Symbol for [ opensavvy.material3.tailwind.demo.utils/named|named@opensavvy.material3.tailwind.demo.utils.Parameters(kotlin.String;0:0){0§<kotlin.Any>}[0] <- Local[<TP>,0|TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any] reified:false] ] is unbound
        at org.jetbrains.kotlin.ir.symbols.impl.IrBindablePublicSymbolBase.getOwner(IrPublicSymbolBase.kt:63)
        at org.jetbrains.kotlin.backend.common.linkage.partial.PartiallyLinkedIrTreePatcher$ExpressionTransformer.checkReferencedDeclaration(PartiallyLinkedIrTreePatcher.kt:585)
        at org.jetbrains.kotlin.backend.common.linkage.partial.PartiallyLinkedIrTreePatcher$ExpressionTransformer.checkReferencedDeclaration$default(PartiallyLinkedIrTreePatcher.kt:574)
        at org.jetbrains.kotlin.backend.common.linkage.partial.PartiallyLinkedIrTreePatcher$ExpressionTransformer.visitClassReference(PartiallyLinkedIrTreePatcher.kt:492)
(Kotlin 1.9.22)
d
Is it reproducible with 2.0.0-RC1?
c
The project is broken under 2.0.0-RC1:
Copy code
> A problem occurred configuring project ':tailwindcss'.
   > Failed to notify project evaluation listener.
      > org/jetbrains/kotlin/gradle/plugin/mpp/pm20/util/TargetsKt
do you know what this could be caused by?
d
It's something unfamiliar to me @tapchicoma do you know about such problem?
t
@CLOVIS could you show a full stacktrace of the error?
c
There's a small chance it's completely unrelated and it was a problem that existed previously but only surfaced recently, but I don't exactly know how to debug it
Wait, no, it's definitely this, no? Did the way to access Kotlin targets change?
t
It was moved under
org.jetbrains.kotlin.gradle.utils
package and become
internal
You could introduce similar method inside your codebase:
Copy code
internal val KotlinProjectExtension.targets: Iterable<KotlinTarget>
    get() = when (this) {
        is KotlinSingleTargetExtension<*> -> listOf(this.target)
        is KotlinMultiplatformExtension -> targets
        else -> error("Unexpected 'kotlin' extension $this")
    }
thank you color 1