https://kotlinlang.org logo
Title
p

PHondogo

05/16/2022, 10:50 AM
Hello! When running desktop version of compose and making first right click on text field, message logged:
Exception "java.lang.ClassNotFoundException: com/intellij/codeInsight/editorActions/FoldingData"while constructing DataFlavor for: application/x-java-jvm-local-objectref; class=com.intellij.codeInsight.editorActions.FoldingData
what does it means?
👀 1
m

Michael Paus

05/16/2022, 12:27 PM
I have observed the same issue and just verified that it only happens when I have previously copied some source code into the clipboard as @mikehearn suggested. It shows immediately though for me after launching the application, i.e., I don’t have to click into a text field.
Exception "java.lang.ClassNotFoundException: com/intellij/codeInsight/editorActions/FoldingData"while constructing DataFlavor for: application/x-java-jvm-local-objectref; class=com.intellij.codeInsight.editorActions.FoldingData
Exception "java.lang.ClassNotFoundException: com/intellij/codeInsight/editorActions/FoldingData"while constructing DataFlavor for: application/x-java-jvm-local-objectref; class=com.intellij.codeInsight.editorActions.FoldingData
Exception "java.lang.ClassNotFoundException: org/jetbrains/kotlin/idea/codeInsight/BasicKotlinReferenceTransferableData"while constructing DataFlavor for: application/x-java-jvm-local-objectref; class=org.jetbrains.kotlin.idea.codeInsight.BasicKotlinReferenceTransferableData
Exception "java.lang.ClassNotFoundException: org/jetbrains/kotlin/idea/codeInsight/BasicKotlinReferenceTransferableData"while constructing DataFlavor for: application/x-java-jvm-local-objectref; class=org.jetbrains.kotlin.idea.codeInsight.BasicKotlinReferenceTransferableData
m

mikehearn

05/16/2022, 12:55 PM
Frankly it smells like a bug. What is
application/x-java-jvm-local-objectref
, that sounds like some kind of generic serialized object stream? is this some intellij thing or a general piece of infrastructure.
at any rate, Compose Desktop shouldn't be trying to load arbitrary classes without even a paste operation.
k

Kirill Grouchnikov

05/16/2022, 2:41 PM
The thing is, once it started happening a couple weeks ago, it never goes away. It now happens on every launch of any Compose desktop app, in IDEA or in terminal. Even when the Finder clipboard shows up empty.
m

mikehearn

05/16/2022, 3:45 PM
Feels like maybe some IDEA utility libs got pulled into compose by mistake
s

smallshen

05/18/2022, 5:02 AM
I think it's clipboard metadata