I get a strange lrLinkage error on the browser con...
# compiler
t
I get a strange lrLinkage error on the browser console when I restart
jsBrowserDevelopmentRun
in a case where I transform a constructor parameter. If I do a Gradle
clean
and run
jsBrowserDevelopmentRun
after, everything works properly. Sometimes even the restart works.
Copy code
IrLinkageError: Constructor 'Panel.<init>' can not be called: No constructor found for symbol 'fun.adaptive.ui.workspace/Panel.<init>|<init>(fun.adaptive.utility.UUID<fun.adaptive.ui.workspace.Panel>;kotlin.String;fun.adaptive.resource.graphics.GraphicsResourceSet;fun.adaptive.ui.workspace.PanelPosition;kotlin.Function0<fun.adaptive.foundation.AdaptiveFragment>;kotlin.String?){}[0]'
The class in question (the issue should not be related to the problem). The transformation changes the signature of the
_fixme...
parameter type.
Copy code
class Panel(
    val uuid: UUID<Panel>,
    val name: String,
    val icon: GraphicsResourceSet,
    val position: PanelPosition,
    @Adaptive // <https://youtrack.jetbrains.com/issue/KT-74337/Local-Delegated-properties-dont-preserve-their-annotations-and-dont-show-up-in-reflection>
    val _fixme_adaptive_content: () -> AdaptiveFragment,
    val shortcut: String? = null
)
I guess this is some caching / incremental compilation issue. Any pointers on what to do with this one?
a
It's definitely an incremental compilation issue. Could you please fill out a YouTrack ticket for it?
t
Created one: KT-75416