You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use kotlin 2.0.0 (+ tested on 1.9.23 same error), compose multiplatform 1.6.10, and last version of calendar 1.0.1
On android, desktop and js all working pretty fine
All error code
Task :composeApp:linkDebugFrameworkIosSimulatorArm64
Failed to load native library:libjansi.jnilib. The native library file at /user/.gradle/native/jansi/1.18/osx/libjansi.jnilib is not executable, make sure that the directory is mounted on a partition without the noexec flag, or set the jansi.tmpdir system property to point to a proper location. osinfo: Mac/arm64
java.lang.UnsatisfiedLinkError: Can't load library: /user/.gradle/native/jansi/1.18/osx/libjansi.jnilib
error: Compilation failed: Exception during generating code for following declaration:
Inside: FILE fqName:com.KopohGames.Scheduler.ui.Schedule fileName:/repo/composeApp/src/commonMain/kotlin/com/KopohGames/Scheduler/ui/Schedule/ScheduleScreen.kt
Inside: CLASS CLASS name:ScheduleScreen modality:FINAL visibility:public superTypes:[cafe.adriel.voyager.core.screen.Screen; org.koin.core.component.KoinComponent]
Inside: FUN LOCAL_FUNCTION_FOR_LAMBDA name:Content$lambda$53$lambda$38 visibility:private modality:FINAL <> ($daysOfWeek:kotlin.collections.List<kotlin.String>, state:@[ParameterName(name = "dayState")] io.wojciechosak.calendar.config.DayState, $composer:androidx.compose.runtime.Composer?, $changed:kotlin.Int) returnType:kotlin.Unit
Inside: FILE fqName:androidx.compose.foundation.layout fileName:/opt/buildAgent/work/8a20760945d0aeba/compose/foundation/foundation-layout/src/commonMain/kotlin/androidx/compose/foundation/layout/Column.kt
Inside: FILE fqName:androidx.compose.ui.layout fileName:/opt/buildAgent/work/8a20760945d0aeba/compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/layout/Layout.kt
Inside: FILE fqName:androidx.compose.runtime fileName:/opt/buildAgent/work/8a20760945d0aeba/compose/runtime/runtime/src/commonMain/kotlin/androidx/compose/runtime/Composables.kt
Inside: FILE fqName:androidx.compose.foundation.layout fileName:/opt/buildAgent/work/8a20760945d0aeba/compose/foundation/foundation-layout/src/commonMain/kotlin/androidx/compose/foundation/layout/Column.kt
// FILE: ScheduleScreen.kt
// path: /repo/composeApp/src/commonMain/kotlin/com/KopohGames/Scheduler/ui/Schedule/ScheduleScreen.kt
package com.KopohGames.Scheduler.ui.Schedule
Through trial and error, I identified a problem in passing the state in the Webview component, because if I copy the DayState exactly, and just redefine the values via
data class TESTDAYState(
val date: LocalDate,
val isActiveDay: Boolean = false,
val isForPreviousMonth: Boolean = false,
val isForNextMonth: Boolean = false,
val enabled: Boolean = true
)
val DayState: TESTDAYState = TESTDAYState(
state.date,
state.isActiveDay,
state.isForNextMonth,
state.isForPreviousMonth,
state.enabled
)
This code is from this library repo (I just change data class and colors to MaterialTheme)
Then everything starts to build, but the choice of the day and its background do not work (with this it is clear, the values are simply not returned back to the function above)
I found root of problems.
It's Kotlin 2.0 bug. You can track it here https://youtrack.jetbrains.com/issue/CMP-4809.
Now, you can fix it by adding the following lines to your gradle.properties file:
I use kotlin 2.0.0 (+ tested on 1.9.23 same error), compose multiplatform 1.6.10, and last version of calendar 1.0.1
On android, desktop and js all working pretty fine
All error code
Through trial and error, I identified a problem in passing the state in the Webview component, because if I copy the DayState exactly, and just redefine the values via
This code is from this library repo (I just change data class and colors to MaterialTheme)
To display my weekview I use example from docs
Then everything starts to build, but the choice of the day and its background do not work (with this it is clear, the values are simply not returned back to the function above)
Simulator.Screen.Recording.-.iPhone.15.Plus.-.2024-07-11.at.22.07.13.mp4
The text was updated successfully, but these errors were encountered: