John O'Reilly
04/09/2024, 12:40 PMCaused by: java.lang.ExceptionInInitializerError: Exception java.lang.ArrayStoreException: org.jetbrains.kotlin.konan.target.KonanTarget$IOS_ARM32 [in thread "Daemon worker"]
error when syncing.....this is in KMP project so maybe known issue? Full stack in thread. Tried latest AS canary so farJohn O'Reilly
04/09/2024, 12:41 PMdmitriy.novozhilov
04/09/2024, 12:42 PMJohn O'Reilly
04/09/2024, 12:42 PMJohn O'Reilly
04/09/2024, 12:43 PMcompose {
kotlinCompilerPlugin.set(libs.versions.compose.compiler)
kotlinCompilerPluginArgs.add("suppressKotlinVersionCompatibilityCheck=${libs.versions.kotlin}")
}
dmitriy.novozhilov
04/09/2024, 12:47 PMdmitriy.novozhilov
04/09/2024, 12:47 PMJohn O'Reilly
04/09/2024, 12:50 PMcompose-compiler = "1.5.6-dev2-kt2.0.0-Beta3"
dmitriy.novozhilov
04/09/2024, 12:54 PMOleksandr Karpovich [JB]
04/09/2024, 12:55 PMtapchicoma
04/09/2024, 1:16 PMJohn O'Reilly
04/09/2024, 1:25 PMJohn O'Reilly
04/09/2024, 1:27 PMcompose-plugin = "2.0.0-RC1"
[plugins]
jetbrainsCompose = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "compose-plugin" }
and
plugins {
alias(libs.plugins.jetbrainsCompose)
...
}
tapchicoma
04/09/2024, 1:31 PMJohn O'Reilly
04/09/2024, 1:32 PMJohn O'Reilly
04/09/2024, 1:32 PMtapchicoma
04/09/2024, 1:33 PMcompose
section in your version catalog?John O'Reilly
04/09/2024, 1:33 PMJohn O'Reilly
04/09/2024, 1:33 PMJohn O'Reilly
04/09/2024, 1:34 PMJohn O'Reilly
04/09/2024, 1:37 PMJohn O'Reilly
04/09/2024, 1:37 PMtapchicoma
04/09/2024, 2:02 PMJohn O'Reilly
04/09/2024, 2:08 PMcompose
not being resolvable now?tapchicoma
04/09/2024, 2:08 PMJohn O'Reilly
04/09/2024, 2:10 PMJohn O'Reilly
04/09/2024, 2:13 PMPavel Shishkin
04/09/2024, 2:57 PMJohn O'Reilly
04/09/2024, 5:18 PM2.0.0-RC1
of the compose plugin (and also using org.jetbrains.kotlin.plugin.compose
now).....what 1.6.2 dependency would we be using then (once it's available)?John O'Reilly
04/09/2024, 5:23 PMimplementation(compose.runtime)
to pull in common CMP dependenciestapchicoma
04/09/2024, 5:53 PMcompose-plugin = "1.6.1"
from your version catalogJohn O'Reilly
04/09/2024, 5:56 PMtapchicoma
04/09/2024, 5:57 PMtapchicoma
04/09/2024, 5:59 PMeygraber
04/09/2024, 7:14 PMtapchicoma
04/09/2024, 7:47 PMkotlin.git
. You should expect some official announcement either from us or from Google (or joint one).Oliver.O
04/09/2024, 7:58 PMe: Please initialize at least one Kotlin target in 'frontend-html (:application:frontend-html)'.
This happens at Gradle script compilation time, before I even have a chance to define a Compose compiler plugin.
With the new Compose Gradle plugin 2.0.0-RC1, the compose
extension is missing, so these CMP settings don't work:
compose {
desktop.application.mainClass = "FrontendMainKt"
experimental {
web.application {}
}
}
Oliver.O
04/09/2024, 8:01 PMplugins {
kotlin("multiplatform") version "2.0.0-RC1"
// kotlin("plugin.compose") version "2.0.0-RC1" // <- does not support the `compose` extension
id("org.jetbrains.compose") version "1.6.1" // <- "Please initialize at least one Kotlin target"
}
kotlin {
jvmToolchain(11)
jvm()
}
compose {
desktop.application.mainClass = "FrontendMainKt"
}
eygraber
04/09/2024, 8:14 PMfix for gradle compose plugin would be published in compose 1.6.2@Pavel Shishkin will there be a dev release, or will 1.6.2 be released before then?
John O'Reilly
04/10/2024, 5:20 PM1.6.10-dev1575
CMP version (https://github.com/JetBrains/compose-multiplatform/releases/tag/v1.6.10-dev1575) that was published today and getting a bit further....currently running in to other issues due to not having version of KSP plugin yet that works with Kotlin 2.0.0-RC1John O'Reilly
04/10/2024, 5:35 PMJohn O'Reilly
04/10/2024, 5:36 PMJohn O'Reilly
04/10/2024, 5:42 PMOliver.O
04/10/2024, 5:45 PM