adte
03/29/2023, 1:53 AMRyan Smith
03/29/2023, 2:56 PMjavax.xml.bind
(which I think is the Oracle JAXB implementation), while the latter is based on the Jakarta
JAXB implementation from The Eclipse Project.
Are there any license or other issues with using the jaxb
converter (and, by extension, javax.xml.bind
)? I'd prefer the Jakarta
-based converter, but I can't find an artifact for it on Maven.
I suppose a more general question is "which is the recommended XML converter to use with Retrofit?"spierce7
03/29/2023, 9:59 PMs3rius
03/31/2023, 1:25 PMcommonMain
I use implementation(compose.uiTooling)
.
In 1.4.0-alpha1000
, I see the following dependency tree for my desktop variant:
+--- org.jetbrains.compose.ui:ui-tooling:1.4.0-alpha01-dev1000
| \--- org.jetbrains.compose.ui:ui-tooling-desktop:1.4.0-alpha01-dev1000
| +--- org.jetbrains.compose.ui:ui-tooling-data:1.4.0-alpha01-dev1000
| | \--- org.jetbrains.compose.ui:ui-tooling-data-desktop:1.4.0-alpha01-dev1000
| | +--- androidx.compose.runtime:runtime:1.2.1
| | | \--- org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.1 -> 1.6.4
Note the coroutines-android at the end. It seems this causes Android's MainDispatcherFactory
to be present in the source, which takes precendence over Swings MainDispatcherFactory
. As a result, my desktop app tries to load Androids Main Dispatcher and crashes.
In 1.4.0-alpha977
this dependency doesn't exist:
+--- org.jetbrains.compose.ui:ui-tooling:1.4.0-alpha01-dev977
| \--- org.jetbrains.compose.ui:ui-tooling-desktop:1.4.0-alpha01-dev977
| +--- org.jetbrains.compose.ui:ui-tooling-data:1.4.0-alpha01-dev977
| | \--- org.jetbrains.compose.ui:ui-tooling-data-desktop:1.4.0-alpha01-dev977
| | +--- org.jetbrains.compose.runtime:runtime:1.4.0-alpha01-dev977 (*)
Now, given that uiTooling
has an explicit desktop
variant it should probably be fine to use it in non-Android environments. So I'm guessing this has been a bug introduced by the recent merge of Google's Compose 1.4.0 where uiTooling doesn't depend on the correct runtime anymore?Kirill Grouchnikov
03/31/2023, 1:58 PMkevin
03/31/2023, 4:18 PMMichael Paus
03/31/2023, 4:28 PMKirill Grouchnikov
03/31/2023, 8:02 PMkevin
04/01/2023, 9:40 AMkevin
04/01/2023, 2:19 PMadte
04/02/2023, 11:40 PMMichael Paus
04/03/2023, 8:11 AMPHondogo
04/03/2023, 11:06 AMkevin
04/03/2023, 12:42 PMMarco Gomiero
04/04/2023, 7:34 AMrunDistributable
(finished with non-zero exit value 133
). I noticed that the crash will stop if I comment out the signing
block in my gradle configuration.
I've tried every jdk from 15 to 19 (zulu).
I'm using Kotlin 1.8.10, compose 1.3.1.
Anybody has any clue about what I'm missing?
Stacktrace and gradle config is in the thread 🧵Michael Paus
04/04/2023, 6:40 PMZac Sweers
04/04/2023, 7:27 PMTim McCormack
04/04/2023, 9:50 PMmikehearn
04/05/2023, 1:20 PMVerticalScrollbar
and syncing them via a scrollState
but it doesn't seem to work properly.benkuly
04/05/2023, 2:30 PMcompose-multiplatform-core
release cycle?
For the upgrade from material2 to material3 I need ModalBottomSheetLayout
and it seems to be available in googles compose material3 version 1.1.0-beta01
.adte
04/05/2023, 5:28 PMFontFamily
from a string e.g. "SF Mono"? I only see the resource based Font class.Damien
04/06/2023, 6:03 AMchao.zhang
04/06/2023, 12:14 PMException in thread "DefaultDispatcher-worker-2" java.lang.IllegalArgumentException: Unable to create converter for class net.ModuleInfoResp0
for method RetrofitService.getModuleInfo0
at retrofit2.Utils.methodError(Utils.java:54)
at retrofit2.HttpServiceMethod.createResponseConverter(HttpServiceMethod.java:126)
at retrofit2.HttpServiceMethod.parseAnnotations(HttpServiceMethod.java:85)
at retrofit2.ServiceMethod.parseAnnotations(ServiceMethod.java:39)
at retrofit2.Retrofit.loadServiceMethod(Retrofit.java:202)
at retrofit2.Retrofit$1.invoke(Retrofit.java:160)
at com.sun.proxy.$Proxy0.getModuleInfo0(Unknown Source)
at net.RetrofitService$DefaultImpls.getModuleInfo0$default(RetrofitService.kt:17)
at ui.Module0Kt$Module0$2$1.invokeSuspend(Module0.kt:23)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
Suppressed: kotlinx.coroutines.DiagnosticCoroutineContextException: [androidx.compose.ui.awt.ComposeLayer$coroutineExceptionHandler$1@23bd828d, androidx.compose.runtime.BroadcastFrameClock@772580d1, StandaloneCoroutine{Cancelling}@3aa10bfa, <http://Dispatchers.IO]|Dispatchers.IO]>
Caused by: java.lang.IllegalArgumentException: cannot construct instances of net.ModuleInfoResp0
at com.squareup.moshi.ClassFactory.get(ClassFactory.java:133)
at com.squareup.moshi.ClassJsonAdapter$1.create(ClassJsonAdapter.java:79)
at com.squareup.moshi.Moshi.adapter(Moshi.java:137)
at com.squareup.moshi.Moshi.adapter(Moshi.java:97)
at retrofit2.converter.moshi.MoshiConverterFactory.responseBodyConverter(MoshiConverterFactory.java:89)
at retrofit2.Retrofit.nextResponseBodyConverter(Retrofit.java:362)
at retrofit2.Retrofit.responseBodyConverter(Retrofit.java:345)
at retrofit2.HttpServiceMethod.createResponseConverter(HttpServiceMethod.java:124)
... 15 more
mohamed rejeb
04/06/2023, 1:22 PMMichael Paus
04/06/2023, 6:38 PMTim McCormack
04/06/2023, 9:33 PMadte
04/07/2023, 1:06 AMclickable
modifier, it's applied on mouse up (pointer release) instead of mouse down, which creates a noticeable delay in the UI. (User expectaion is for the action to happen on press, not during recoil)
Is that a known issue? I don't find anything about it in the bug tracker.adte
04/07/2023, 4:49 AMfocusable
or some other focus modifier for onKeyEvent
modifier to be called on a composable?
I'm trying to implement keyboard navigation in a LazyVerticalGrid
with a selected cell, but onKeyEvent
isn't being called. I've used the Window
onKeyEvent so far but I have several composables in the window that need keyboard navigation and so I want to have precedence order based on who is in focus :)Igor Demin
04/07/2023, 11:59 AM1.4.0-rc03
with Kotlin 1.8.20 support.
1.4.0-rc03 will be 1.4.0 if there are no critical issues and regressions.
Any feedback is appreciated 👍.s3rius
04/07/2023, 1:03 PM