Alejandro Rios
12/11/2020, 2:43 PMSkia
or Skiko
to render UI, does anyone have an article that explains what is and how it works? just to learn about it, Thanks!Javier
12/11/2020, 4:50 PMRuckus
12/11/2020, 8:19 PMCannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6. Please specify proper '-jvm-target' optionBut I have it set in my gradle
tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "15"
useIR = true
}
}
And in my project settings, so I'm not sure what would be causing that. Any ideas?
The code compiles and runs fine. The error is only in the IDE.Kyant
12/11/2020, 11:07 PMsuppressKotlinVersionCompatibilityCheck
but don't say I didn't warn you!).`Kirill Grouchnikov
12/13/2020, 2:25 AMxetra11
12/16/2020, 11:22 PMCasey Brooks
12/17/2020, 4:43 PMModifier.clickable()
has a long-click event (which doesn’t seem to do anything on desktop) but not a right-clickMichał Kalinowski
12/18/2020, 8:22 AMxetra11
12/18/2020, 12:59 PMDialog
?
I have this logic on a close button inside the Dialog composition onClick = { }
but when I click it the following exception comes up:
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Anchor refers to a group that was removed
Also tried to mutate a toggleDialog
variable to "hide" the dialog but the same problem occursThomas
12/18/2020, 1:19 PMMichael Paus
12/18/2020, 3:22 PMdrawBitmapMesh
. I can’t find this, or any equivalent method, in the Compose canvas, so that I could use that on desktop too. I have to render my images distorted, so that I can accommodate to different projections of my map-tiles.xetra11
12/19/2020, 12:22 AMgradle packageMsi
in my GitHub Action pipeline. Unfortunately I fail with this error:
* What went wrong:
Execution failed for task ':packageMsi'.
> Process 'command 'C:\hostedtoolcache\windows\jdk\14.0.2\x64\bin\jpackage.exe'' finished with non-zero exit value 1
I used this runs-on
OS:
Virtual Environment
Environment: windows-2019
Version: 20201210.0
xetra11
12/19/2020, 3:22 PMpackageDeb
when having a v
prefix in the version name?
https://github.com/JetBrains/compose-jb/issues/205Peter
12/21/2020, 3:32 PMDario Valdespino
12/21/2020, 3:36 PMPaul Woitaschek
12/21/2020, 11:18 PMPaul Woitaschek
12/22/2020, 4:18 PMJavier
12/22/2020, 7:12 PMKirill Grouchnikov
12/23/2020, 4:15 PMcaelum19
12/24/2020, 9:35 PMLilly
12/24/2020, 10:59 PMxetra11
12/25/2020, 7:37 PMxetra11
12/25/2020, 8:01 PMonClick
function.
Please see the snippet:
fun main() {
initializeApp()
loadProject()
Window(
title = "CK3 Mod Workbench",
menuBar = MenuBar(
Menu(
"File",
MenuItem(
"Open Project",
onClick = { loadProjectFile(AppWindowAmbient.current!!) }
),
MenuItem("Exit", onClick = { AppManager.exit() })
),
...
And here is the loadProjectFile(appWindow: AppWindow)
function:
private fun loadProjectFile(appWindow: AppWindow) {
val file = File("")
val fileChooser = JFileChooser()
fileChooser.addChoosableFileFilter(ProjectFileFilter())
when (fileChooser.showOpenDialog(appWindow.window)) {
APPROVE_OPTION -> {
val projectManager = ProjectManager()
val projectFile = fileChooser.selectedFile
val projectFromFile = Json.decodeFromString<Project>(projectFile.readText())
projectManager.loadProject(projectFromFile)
}
CANCEL_OPTION -> {
NotificationsService.warn("Cancel project file opening")
}
}
}
And I receive the classical compose error message here:
e: /home/xetra11/Development/projects/app/src/main/kotlin/main.kt: (55, 66): @Composable invocations can only happen from the context of a @Composable function
What I do not understand is why it's saying I do a @Composable
invocation? onClick
seems to have nothing to do with it as far as I can see since @Composable stuff starts at the Window.content property/lambda.
Anyway I attached @Composable
to the loadProjectFile
fun but the error still exists. I feel like I still do not fully understand the conceptxetra11
12/25/2020, 9:41 PMfun main() {
Window(title = "CK3 Mod Workbench") {
MaterialTheme() {
val currentDialog = remember { mutableStateOf("noDialog") }
if (currentDialog.value == "characterDialog") Dialog(
onDismissRequest = { currentDialog.value = "noDialog" }
) {
Button(onClick = { currentDialog.value = "noDialog" }) {
Text("Close Dialog")
}
}
Button(onClick = { currentDialog.value = "characterDialog" }
) { Text("Open Dialog") }
}
}
}
I always end up with this exception preventing the dialog from being reopened:
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Anchor refers to a group that was removed
Any idea what is going wrong here? I tried so many things but I just do not understand the problem.orangy
12/25/2020, 10:56 PMorangy
12/26/2020, 4:29 PMModifier.tooltip("Text")
for simple cases and then Modifier.tooltip { … }
with Slot API for custom tooltips.orangy
12/26/2020, 4:35 PMScrollableColumn
to show actual scroll bars, according to system settings? E.g. autohide on mac, etc.suresh
12/26/2020, 9:20 PM> Task :VideoPlayer:common:compileKotlinDesktop FAILED
e: java.lang.NoClassDefFoundError: Could not initialize class org.jetbrains.kotlin.com.intellij.pom.java.LanguageLevel
at org.jetbrains.kotlin.com.intellij.core.CoreLanguageLevelProjectExtension.<init>(CoreLanguageLevelProjectExtension.java:26)
at org.jetbrains.kotlin.com.intellij.core.JavaCoreProjectEnvironment.<init>(JavaCoreProjectEnvironment.java:42)
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreProjectEnvironment.<init>(KotlinCoreProjectEnvironment.kt:26)
Getting this error when running the video player component on openjdk-15. Has anybody seen this error?Marin Tolić
12/28/2020, 1:11 AMHamza
12/28/2020, 11:29 AMHamza
12/28/2020, 11:29 AMIgor Demin
12/28/2020, 11:46 AMThomas
12/28/2020, 12:50 PMHamza
12/28/2020, 12:50 PMgildor
12/28/2020, 1:36 PMIgor Demin
12/28/2020, 1:39 PMJFileChooser
uses Swing to draw UI, so it has not ideal Look&Feel (even with UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName())
).
JFileChooser
should be used only if functionality of FileDialog is not enough.Thomas
12/28/2020, 2:57 PMHamza
12/29/2020, 2:00 AM