Lucas
10/18/2022, 11:02 PMDragos Rachieru
10/19/2022, 7:51 AMspierce7
10/19/2022, 1:59 PMCedric Lindigkeit
10/20/2022, 9:17 AMClickableText(
text = "Awesome text",
modifier = Modifier.testTag("SOME_TEST_TAG"),
onClick = { ... }
)
ErrorMessage:
Failed to assert the following: (OnClick is defined)
Reason: Expected exactly '1' node but could not find any node that satisfies: (TestTag = 'SOME_TEST_TAG')
However, the unmerged tree contains '1' node that matches. Are you missing `useUnmergedNode = true` in your finder?
Sean Proctor
10/20/2022, 11:08 PMError: Unable to initialize main class packageName.MainKt
Caused by: java.lang.VerifyError: Expecting a stackmap frame at branch target 58
czuckie
10/21/2022, 2:51 PMSebastian Schuberth
10/22/2022, 11:20 AMSlackbot
10/22/2022, 6:26 PMNorbi
10/23/2022, 8:44 AMRyan Smith
10/23/2022, 3:42 PMsubscribeAsState
functions outlined in the docs here https://developer.android.com/reference/kotlin/androidx/compose/runtime/rxjava3/package-summaryRyan Smith
10/23/2022, 7:22 PMMaterialTheme
object like this
MaterialTheme(colors = darkColors()) {
Text("Hello, world!")
}
doesn't change anything? The surface color should be 0xFF121212
(dark grey) and the text white, but my app still opens with a white surface color and black text which is the default light theme color.spierce7
10/24/2022, 4:20 PMandylamax
10/25/2022, 1:24 PMkotlin("jvm")
gradle plugin instead of kotlin("multiplatform")
gradle plugin??Luis Alonso Ato Neyra
10/26/2022, 2:32 AMPHondogo
10/26/2022, 9:52 AMalexfacciorusso
10/26/2022, 1:21 PMpackageDmg
also uses proguard, when it isn’t supposed to as per documentation, and also disabling obfuscation via the buildTypes.release.proguard.obfuscate = false
still runs proguard. Very strange.
Any ideas?
This is the error I get:alexfacciorusso
10/26/2022, 3:49 PMDialog
factory function with the create
block, in which I make a ComposeDialog
with all the settings), but my dialog seems to not being picked up by the system’s shadow creation routine (or whatever it can be called!).
I have checked the system’s window sizes and I know for sure JetBrains Toolbox is not creating a fake shadow (e.g. a shadow drawn by Compose) and the shadow is instead system-native, and it also follows very nicely the shape of the transparent dialog. Anyone who knows how to achieve a similar setup?Ryan Smith
10/27/2022, 12:52 AMFlow
and Compose
? One of the predominant lessons I've been learning is "make your composables stateless by hoisting". I'm trying to adhere to this by exposing as much state as makes sense through properties on my view models.
For example, my data layer has an in-memory Repository that exposes a collection of items through a Flow
. My view model is meant to collect
that flow as state, and expose that state to my Table
composable to be displayed on the screen. But since collectAsState
is marked as @Composable
I can't call it from my view model. As I see it I could either pass the Flow
directly through my view model to my Table
composable or stick with mutableStateOf
and collect the Flow
internally to the view model and just expose the MutableState
to my Table
.
More generally, though, it feels like the two ideas "state through the view model" and "collectAsState is Composable-only" are at odds here, which makes me think there's "the way" to do this sort of thing that I'm not seeing right now.PHondogo
10/27/2022, 7:42 AMopen class A {
@Composable
fun test(
x: String,
lambda: @Composable () -> Unit = {} // runtime exception below is caused by this parameter
) {
Text(x)
lambda()
}
}
open class B : A {
}
open class C : B { // C -> B - > A
@Composable
fun anotherTest() {
test("1") // while incremental compile (change for example "1" -> "2") throws runtime error: java.lang.ClassCastException: class androidx.compose.runtime.internal.ComposableLambdaImpl cannot be cast to class kotlin.jvm.functions.Function0
}
}
Compose Desktop version 1.3.0-alpha01-dev831
Edit: In my case A, B are located in one Gradle module, while C in another. But may be it will reproduce when all classes in the same module (I didn't check it).Daniyar Mukhanov
10/27/2022, 11:04 AMSamuel Ochuba
10/27/2022, 2:19 PMandylamax
10/28/2022, 6:03 AMKirill Grouchnikov
10/28/2022, 3:21 PMe: java.lang.UnsupportedClassVersionError: androidx/compose/compiler/plugins/kotlin/ComposeComponentRegistrar has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 53.0
in both IntelliJ and terminal build with compose desktop.
My Java stays on 11.0.16+11-LTS-199
in both places. Once that starts, pretty much the only way out is to reboot my machine. Is there anything I can run to help diagnose this once it starts happening? Otherwise I’m not sure how useful it would be to file it as a bug.Sean Proctor
10/28/2022, 8:03 PMArjan van Wieringen
10/29/2022, 7:43 AM.shadow
somehow stretching with the size of the component?
Column {
Box(modifier = Modifier.padding(16.dp).size(width = 800.dp, height = 200.dp).shadow(4.dp).background(Color.White))
Box(modifier = Modifier.padding(16.dp).size(width = 1600.dp, height = 200.dp).shadow(4.dp).background(Color.White))
}
I thought it was related to the ambient and spot color parameters, but it isn't. Changing them has no impact?Alex Styl
10/30/2022, 8:33 AMJesus Medina
10/30/2022, 10:42 PMDragos Rachieru
10/31/2022, 8:52 AMJules Marche
10/31/2022, 1:56 PMAlex Styl
11/01/2022, 8:56 AM