Thread
#jvm-ir-backend-feedback
    ralf

    ralf

    1 year ago
    We started to test the new backend and see a lot of red due to the Parcelize plugin? Is this a known issue? Happy to file a ticket if none exists (I wanted to double check first).
    e: java.lang.IndexOutOfBoundsException: Empty list doesn't contain element at index 0.
    	at kotlin.collections.EmptyList.get(Collections.kt:36)
    	at kotlin.collections.EmptyList.get(Collections.kt:24)
    	at org.jetbrains.kotlin.backend.common.ir.IrUtilsKt.remapTypeParameters(IrUtils.kt:330)
    	at org.jetbrains.kotlin.backend.common.ir.IrUtilsKt.remapTypeParameters(IrUtils.kt:343)
    	at org.jetbrains.kotlin.backend.common.ir.IrUtilsKt.copyTo$default(IrUtils.kt:121)
    	at org.jetbrains.kotlin.ir.builders.declarations.DeclarationBuildersKt.addFunction(declarationBuilders.kt:188)
    	at org.jetbrains.kotlin.ir.builders.declarations.DeclarationBuildersKt.addFunction$default(declarationBuilders.kt:164)
    	at org.jetbrains.kotlin.parcelize.ir.ParcelizeIrTransformer.addOverride(ParcelizeIrTransformer.kt:279)
    	at org.jetbrains.kotlin.parcelize.ir.ParcelizeIrTransformer.visitClass(ParcelizeIrTransformer.kt:115)
    Ivan Kubyshkin [JetBrains]

    Ivan Kubyshkin [JetBrains]

    1 year ago
    Looks like we don't have an issue with this problem. Can you file it in YouTrack, please?
    udalov

    udalov

    1 year ago
    If the issue is not reproducible without Parcelize, I suppose it should be reported to the Google issue tracker instead? (https://android-developers.googleblog.com/2020/11/the-future-of-kotlin-android-extensions.html)
    ralf

    ralf

    1 year ago
    @Ivan Kubyshkin [JetBrains] Done: https://youtrack.jetbrains.com/issue/KT-44891 I’ve also attached a sample project. @udalov Parcelize is part of the Kotlin codebase. The coordinates hint that JetBrains owns it:
    org.jetbrains.kotlin.plugin.parcelize
    . Do you think it’s better to file a ticket for Android?
    Eugene

    Eugene

    1 year ago
    @ralf yep, it's owned by Google. By some tech reasons we decided to keep it in our repository. And yes, it's better to address issues to Google tracker
    ralf

    ralf

    1 year ago