Sean Proctor
07/08/2022, 5:54 PMMichael Paus
07/09/2022, 8:52 AMjava.lang.IllegalStateException: IrBasedSimpleFunctionDescriptor: FUN name:DataTooltipArea visibility:public modality:FINAL <> (dataString:kotlin.String, modifier:androidx.compose.ui.Modifier, content:kotlin.Function2<androidx.compose.runtime.Composer, kotlin.Int, kotlin.Unit>) returnType:kotlin.Unit [expect]
The project builds and runs perfectly on JVM and even on Web (Canvas). Can anybody tell me what this error message actually means?Sean Proctor
07/10/2022, 12:35 AMChristopher Porto
07/10/2022, 3:35 AMNo context is current or a function that is not available in the current context was called. The JVM will abort execution.
I'm sure this is due to some threading done underneath and was wondering if there was a way around it. I'll post code in thread. I'm not tied to using LWJGL or AWT, I simply wish to utilize OpenGL within Compose 🙂Mikołaj Kąkol
07/10/2022, 8:33 PMSean Proctor
07/11/2022, 3:43 PMNorbi
07/11/2022, 3:52 PMScott Martin
07/11/2022, 6:44 PMdimsuz
07/12/2022, 2:11 PMLucas
07/12/2022, 7:23 PMArkadii Ivanov
07/13/2022, 6:22 PMv1.2.0-alpha01-dev741
and v1.2.0-alpha01-dev745
compile just fine with Kotlin 1.7.10. Did anything change recently? I thought we would have to wait for a release compatible with Kotlin 1.7.10.K J
07/13/2022, 8:27 PMLucas
07/14/2022, 1:41 AMAdam Brown
07/14/2022, 6:21 AMAlertDialog
Lucas
07/14/2022, 1:29 PMComposeDialog
?Francesco Pedron
07/14/2022, 4:44 PMCannot expand ZIP 'C:\Users\User\Documents\project_dir\build\wixToolset\wix311.zip' as it is not a file.
In fact "wix311.zip" is not a file, but a directory that contains a "wix311-binaries.zip" file.
I checked online but I haven't found any reference to this bug.
Do you have any idea if it is a known issue and how may I resolve it?
Let me know if there's any information I can provide, thanks.
This is the gradle output just before the mentioned error message is printed:
18:35:25: Executing 'packageMsi'...
> Task :downloadWix
Download <https://github.com/wixtoolset/wix3/releases/download/wix3112rtm/wix311-binaries.zip>
Download <https://github.com/wixtoolset/wix3/releases/download/wix3112rtm/wix311-binaries.zip>
> Task :unzipWix FAILED
Adam Brown
07/14/2022, 11:53 PMorangy
07/15/2022, 8:28 AMGuilherme Delgado
07/15/2022, 10:02 AMelihart
07/15/2022, 9:34 PMGuilherme Delgado
07/17/2022, 4:10 PMwindows
and linux
configuration/sample, did I miss it? 🤔mbonnin
07/18/2022, 11:57 AMDidier Villevalois
07/18/2022, 2:02 PMwindow
in the FrameWindowScope
of the Window
composable, but is there a corresponding ambient?Emmanuel
07/18/2022, 5:04 PMfun onRefreshTrackCollection() {
val job = scope.launch {
refreshTrackCollection()
}
when(job.isCompleted) {
// show snackbar message
}
}
How do I better execute a UI change when a coroutine job is complete?Jose Luis Torres Aguilar
07/18/2022, 8:32 PMCyril Kym
07/19/2022, 11:05 AMKey.Enter
by using the onPreviewKeyEvent
Modifier and I do not want the BasicTextField
to unfocus when Enter is pressed. I was searching for a solution like preventDefault in JS but couldn't find anything so far.Guilherme Delgado
07/19/2022, 11:55 AM1.2.0-alpha01-dev741
and I’m having problems importing androidx.compose.foundation.lazy.grid.
With version 1.0.1 I was using*:*
import androidx.compose.foundation.lazy.GridCells
import androidx.compose.foundation.lazy.LazyVerticalGrid
Now, with version 1.2.0-alpha01-dev741 I have to change to:
import androidx.compose.foundation.lazy.grid.LazyVerticalGrid
import androidx.compose.foundation.lazy.grid.GridCells
Otherwise the IDE throws an error. Up on changing the IDE doesn’t complain and finds the classes, but when I try to build I get the following:
> Task :shared-ui-compose:compileDebugKotlinAndroid FAILED
Unresolved reference: grid
Unresolved reference: grid
Unresolved reference: LazyVerticalGrid
Unresolved reference: GridCells
Unresolved reference: item
@Composable invocations can only happen from the context of a @Composable function
@Composable invocations can only happen from the context of a @Composable function
What’s missing? 🤔Javier
07/19/2022, 1:35 PM1.2.0-alpha01-dev748
is failing with
This version (1.2.0) of the Compose Compiler requires Kotlin version 1.7.0 but you appear to be using Kotlin version 1.7.10 which is not known to be compatible. Please fix your configuration (or `suppressKotlinVersionCompatibilityCheck` but don't say I didn't warn you!).
Meanwhile 1.2.0-alpha01-dev745
is working correctly 🤔orangy
07/19/2022, 4:10 PM:compose:ui:ui-tooling-data
available for desktop? I’m experimenting with some tooling (kinda in-app inspector), and would like to process CompositionData
, and it seems doing it via SlotTree
is the best way of doing so.Guilherme Delgado
07/20/2022, 10:12 AMGuilherme Delgado
07/20/2022, 10:12 AMfun main() = application {
var expand by remember { mutableStateOf(false) }
val width: Dp by animateDpAsState(
targetValue = if (expand) 1024.dp else 600.dp,
animationSpec = tween(durationMillis = 250, easing = FastOutSlowInEasing),
)
val height: Dp by animateDpAsState(
targetValue = if (expand) 1024.dp else 600.dp,
animationSpec = tween(durationMillis = 250, easing = FastOutSlowInEasing),
)
val dpSize: DpSize by remember { mutableStateOf(DpSize(width, height)) }
val windowState = rememberWindowState(size = dpSize)
Window(state = windowState) {
MyComposable(
onSomething = {
expand = !expand
//windowState.size = dpSize
})
}
}
//windowState.size = dpSize
directly, but this will not animate 🤔Sean Proctor
07/24/2022, 8:08 PMwindowState.size = dpSize
immediately after val windowState = ...
LaunchedEffect(dpSize) {
windowState.size = dpSize
}
Guilherme Delgado
07/25/2022, 9:12 AMonSomething
- in this case - it’s actually being called inside a LaunchedEffect
, but the key is not the dpSize 🤔 will try to add it as key to see what happens (edit: nothing 😢).LaunchedEffect(animate) {
repeat(5) {
delay(1000)
windowState.size = DpSize(windowState.size.width + 100.dp, windowState.size.height)
}
}
quick test and this is the only way I can “animate” the windowState.size
🤮/**
* Creates a [WindowState] that is remembered across compositions.
*
* Changes to the provided initial values will **not** result in the state being recreated or
* changed in any way if it has already been created.
*
* @param placement the initial value for [WindowState.placement]
* @param isMinimized the initial value for [WindowState.isMinimized]
* @param position the initial value for [WindowState.position]
* @param size the initial value for [WindowState.size]
*/
🤔Sean Proctor
07/27/2022, 11:28 PMGuilherme Delgado
07/28/2022, 9:26 AM