Marc Knaup
01/15/2022, 3:06 PMserver
01/17/2022, 1:11 PMPiotr Krzemiński
01/20/2022, 9:58 AMRescribet
01/20/2022, 10:56 AMhfhbd
01/24/2022, 4:39 PMjava.lang.IllegalStateException: Validation failed in file main.kt
is almost impossible to debug without any hints. And the stack trace is not very helpful.Matt Robertson
01/27/2022, 10:11 PMUnit
to be a sort of anonymous extension function on a given class? I noticed it in the Compose code (I think) but I haven't been able to find it in the docs.
Example:
fun render(node: Node, action: Node.() -> Unit) {
node.action()
}
rrva
01/30/2022, 4:29 PMChachako
01/31/2022, 4:34 PMSyntheticResolveExtension
execution? I need to synthesize a new property, and then the type of this property depends on the initializer expression of another property, so I must use BindingContext.getType
to parse the actual type of another property’s initializer, but unfortunately SyntheticResolveExtension
is executed a bit too early, at this time the value returned by the BindingContext.getType
is null
. Or is there another way for me to infer the type of another expression during synthesis?Chachako
01/31/2022, 5:06 PMClassDescriptor
? I found this usage: https://github.com/JetBrains/kotlin/blob/1.6.0/plugins/kotlin-serialization/kotlin[…]otlinx/serialization/compiler/resolve/SerializableProperties.kt, but I can’t use it, an error will be thrown when I try to use the same code:
e: java.lang.AssertionError: Recursion detected on input: actualType under LockBasedStorageManager@30057fbe (TopDownAnalyzer for JVM)
at org.jetbrains.kotlin.resolve.lazy.descriptors.AbstractLazyMemberScope.getContributedVariables(AbstractLazyMemberScope.kt:139)
at org.jetbrains.kotlin.resolve.lazy.descriptors.LazyClassMemberScope.getContributedVariables(LazyClassMemberScope.kt:395)
at org.jetbrains.kotlin.resolve.lazy.descriptors.AbstractLazyMemberScope.computeDescriptorsFromDeclaredElements(AbstractLazyMemberScope.kt:234)
at org.jetbrains.kotlin.resolve.lazy.descriptors.LazyClassMemberScope.doDescriptors(LazyClassMemberScope.kt:68)
at org.jetbrains.kotlin.resolve.lazy.descriptors.LazyClassMemberScope.access$doDescriptors(LazyClassMemberScope.kt:52)
at org.jetbrains.kotlin.resolve.lazy.descriptors.LazyClassMemberScope$allDescriptors$1.invoke(LazyClassMemberScope.kt:64)
Chachako
02/03/2022, 5:54 PMprivate
. Is that possible now?Lewis Jacobs
02/07/2022, 4:06 PMserver
02/07/2022, 7:12 PM* What went wrong:
Execution failed for task ':generateMavenPluginDescriptor'.
> org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException: No mojo definitions were found for plugin: com.bnorm.template:kotlin-ir-plugin-template.
server
02/07/2022, 7:25 PMserver
02/08/2022, 11:19 PMdependencies {
compileOnly("org.jetbrains.kotlin:kotlin-compiler-embeddable")
kapt("com.google.auto.service:auto-service:1.0")
compileOnly("com.google.auto.service:auto-service-annotations:1.0")
testImplementation("org.junit.jupiter:junit-jupiter-engine:5.8.2")
testImplementation(kotlin("test-junit"))
testImplementation("org.jetbrains.kotlin:kotlin-compiler-embeddable")
testImplementation("com.github.tschuchortdev:kotlin-compile-testing:1.4.4")
testImplementation("org.junit.jupiter:junit-jupiter-params:5.8.1")
Peter Mandeljc
02/09/2022, 9:27 AMclass Foo { private val bar = "bar" }
, is compiler smart enough to convert bar to static field (companion object)?Javier
02/09/2022, 12:57 PMbuild-1.7.0-dev-1671
without having to build it myself?mikehearn
02/10/2022, 12:37 PMmikehearn
02/10/2022, 12:38 PMeygraber
02/10/2022, 7:00 PMCoffee Guy
02/13/2022, 6:22 AMShreyas Patil
02/14/2022, 1:32 PMrocketraman
02/17/2022, 4:51 PMmbonnin
02/18/2022, 3:27 PMUnresolved Reference
.
I'm not really expecting this use case to work but curious when to giveup and throw a better error message than Unresolved Reference
myotive
03/01/2022, 11:52 PM@SerializedName
annotation and Moshi’s @Json
annotation to all the properties of a data class. Everything seems to be working in my transformer (IrElementTransformerVoidWithContext
) , but the resulting class doesn’t seem to have the annotations when I try to run a unit test (which loads the class from a temp working directory).
If anyone has any documentation or resources that could help, I would be most grateful. Thanks!ventura
03/02/2022, 11:39 AMMichael
03/02/2022, 2:04 PMjava.lang.AssertionError: SyntheticAccessorLowering should not attempt to modify other files!
https://pastes.dev/IumlkSq7Qggalex
03/04/2022, 6:40 AMNick
03/08/2022, 3:36 AMDariusz Kuc
03/10/2022, 2:22 AMMatthias Geisler
03/15/2022, 7:53 AM