Closed oblakr24 closed 4 months ago
What compose version are you using? Could you please try using Essenty 2.1.0 and Compose 1.6.10?
@arkivanov yep I used Essenty 2.1.0 (just tried with 2.0.0 to ensure which version bump was related to the issue).
I am using 1.6.11:
compose-plugin = "1.6.11"
jetbrainsCompose = { id = "org.jetbrains.compose", version.ref = "compose-plugin" }
Would it be possible to provide a reproducer?
This looks like a compiler bug.
I have the app here: https://github.com/oblakr24/personallm
I am assuming the minimal reproducible scenario would be a Pager with this animation, but haven't set that up to validate.
But yes, it does seem like a compiler bug. Perhaps related (but closed?): https://github.com/JetBrains/compose-multiplatform/issues/4809
That issue looks related, thanks! I would check a reproducer and report a bug to Compose, if you could provide a link to a runnable project with the failing changes.
I pushed the bump here: https://github.com/oblakr24/personallm/tree/feature/decompose-to-3.1.0 the project should be runnable (no other setup needed). I can try setting up a smaller project later (not today) with min repro scenario.
Thanks! I managed to create a minimal reproducer. Reported here: https://github.com/JetBrains/compose-multiplatform/issues/4809#issuecomment-2169302897
Let's keep this bug open for visibility purposes.
The suggested workaround works. Add the following lines to gradle.properties
.
kotlin.native.cacheKind=none
compose.kotlin.native.manageCacheKind=false
Great, thank you, the workaround works for me too. But yes let's keep it open until the related CMP issue is resolved.
Looks like this issue should be fixed in Kotlin 2.0.10
, the fix is already available in Kotlin 2.0.10-RC2
. See https://github.com/JetBrains/compose-multiplatform/issues/4809#issuecomment-2245621488. Closing this for now.
I have a KMP project (Kotlin 2.0.0) with an iOS target. Updating from 3.0.0 to 3.1.0 (Essenty at 2.0.0) works fine on Android and Desktop, but on iOS I get the following build failure:
This is a composable in my app which is a page in a pager.
and is specifically related to this line:
scrollAnimation = PagesScrollAnimation.Default,
commenting out this line solves the issue.The root stacktrace below:
Please let me know if I can provide any further info.