Adam Brown
08/31/2023, 5:45 AMparcelize-darwin
plugin:
error: Compilation failed: Back-end: Please report this problem <https://kotl.in/issue>
/Users/runner/work/hammer-editor/hammer-editor/common/src/commonMain/kotlin/com/darkrockstudios/apps/hammer/common/components/projectselection/projectslist/ProjectsList.kt:-1:-1
Details: Internal error in file lowering: java.lang.IllegalStateException: Error generating encode statement for FIELD PROPERTY_BACKING_FIELD name:toast type:dev.icerock.moko.resources.StringResource? visibility:private [final] of CLASS CLASS name:State modality:FINAL visibility:public [data] superTypes:[com.arkivanov.parcelize.darwin.Parcelable{ com.arkivanov.essenty.parcelable.Parcelable }]
...
Caused by: java.lang.IllegalStateException: Error generating encode statement for FIELD PROPERTY_BACKING_FIELD name:toast type:dev.icerock.moko.resources.StringResource? visibility:private [final] of CLASS CLASS name:State modality:FINAL visibility:public [data] superTypes:[com.arkivanov.parcelize.darwin.Parcelable{ com.arkivanov.essenty.parcelable.Parcelable }]
This looks like the file in question:
https://github.com/Wavesonics/hammer-editor/blob/develop/common/src/commonMain/kot[…]common/components/projectselection/projectslist/ProjectsList.ktAdam Brown
08/31/2023, 6:33 AM@TypeParcelizer
for that type, and it didn't fix itArkadii Ivanov
08/31/2023, 8:11 AMtoast
property is of type StringResource
, but in the code it's String. Also please try updating Essenty to at least 1.2.0-alpha-05 and parcelize-darwin
plugin to at least 0.1.5.Adam Brown
08/31/2023, 3:42 PMStringResource
previously, I just changed it to resolve the compiler crash: https://github.com/Wavesonics/hammer-editor/commit/31385a34d04dd114a308d4e90572287bd6ab91b8#diff-632a3c5513eb91b6728a5[…]5fe92684bfccd218fbb6ee44L41Adam Brown
08/31/2023, 3:43 PMAdam Brown
08/31/2023, 3:43 PMdecompose = "2.1.0-alpha-07"
essenty = "1.2.0-alpha-06"
parcelize_darwin = "0.2.0"
Arkadii Ivanov
08/31/2023, 4:09 PMStringResource
with TypeParceler
annotation. Please see https://github.com/arkivanov/Essenty#custom-parcelersArkadii Ivanov
08/31/2023, 7:39 PMArkadii Ivanov
08/31/2023, 7:41 PMAdam Brown
08/31/2023, 8:08 PMAdam Brown
08/31/2023, 11:26 PMArkadii Ivanov
08/31/2023, 11:39 PMTypeParceler
annotation. Would be helpful to have a reproducer.Arkadii Ivanov
08/31/2023, 11:42 PMStringResource?
to StringResource
and see if it works this way?Arkadii Ivanov
08/31/2023, 11:42 PMAdam Brown
09/01/2023, 1:07 AMArkadii Ivanov
09/01/2023, 1:17 AMArkadii Ivanov
09/01/2023, 4:44 PM