Ty Smith
01/30/2020, 3:47 AMbnorm
02/04/2020, 5:40 PMorg.jetbrains.kotlin.ir.SourceManager
but I'm not sure if that can be used to read the source file given an IrCall
.Rohan Maity
02/06/2020, 11:29 AMjava.lang.RuntimeException: Compilation failed. java.lang.ClassCastException: Cannot cast io.quarkus.allopen.cli.QuarkusComponentRegistrar to org.jetbrains.kotlin.compiler.plugin.ComponentRegistrar
How could I make it work ?Foso
02/06/2020, 2:12 PMPHondogo
02/14/2020, 10:11 AMredrield
02/15/2020, 12:47 AMmbonnin
02/16/2020, 3:55 PMCaused by: org.jetbrains.kotlin.codegen.CompilationException: Back-end (JVM) Internal error: Couldn't inline method call 'withLock$default' into
public suspend inline fun <T> kotlinx.coroutines.sync.Mutex.`withLock$default`(owner: kotlin.Any?, action: () -> T, `$mask0`: <http://kotlin.Int|kotlin.Int>, `$handler`: kotlin.Any?, `$completion`: kotlin.coroutines.Continuation<T>): kotlin.Any? defined in kotlinx.coroutines.sync
I'm currently trying out jetpack compose dev04 and Android Studio canary so I don't mind the occasional exception but is it worth reporting it somewhere ?raulraja
02/17/2020, 12:57 PMDominaezzz
02/18/2020, 10:17 AMCorbin McNeely-Smith
02/18/2020, 5:16 PMCorbin McNeely-Smith
02/20/2020, 9:09 PMjava.lang.NoClassDefFoundError: org/jetbrains/kotlin/compiler/plugin/CommandLineProcessor
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at <http://java.net|java.net>.URLClassLoader.defineClass(URLClassLoader.java:468)
at <http://java.net|java.net>.URLClassLoader.access$100(URLClassLoader.java:74)
at <http://java.net|java.net>.URLClassLoader$1.run(URLClassLoader.java:369)
at <http://java.net|java.net>.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at <http://java.net|java.net>.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.jetbrains.kotlin.preloading.MemoryBasedClassLoader.loadClass(MemoryBasedClassLoader.java:75)
at org.jetbrains.kotlin.preloading.MemoryBasedClassLoader.loadClass(MemoryBasedClassLoader.java:82)
at org.jetbrains.kotlin.preloading.MemoryBasedClassLoader.loadClass(MemoryBasedClassLoader.java:75)
at java.lang.ClassLoader.loadClass(ClassLoader.java:411)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
As you can see it's running in a subset class loader that was seeded with the compiler jar -- but it can't find the class that is most certainly in the jar. (double checked, in fact)
Tried add the jar explicitly to the cp, as well as passing it .as a plugin (bit of a hail mary, that.)
Any advice?louiscad
02/22/2020, 1:03 PMturastory
02/26/2020, 5:01 AMPHondogo
03/02/2020, 6:46 PMoverride fun visitCall(expression: IrCall, data: Unit): IrElement
?Zach Klippenstein (he/him) [MOD]
03/02/2020, 8:41 PMPHondogo
03/03/2020, 7:51 PMIrType.isInterface
, got
java.lang.IllegalStateException: Symbol for deserialized class Any is unbound.
As i understand this cause when getting owner from symbol of other module.
Please advice me how to solve it.
Almas Shagdarov
03/05/2020, 5:45 AMjw
03/06/2020, 9:13 PMPHondogo
03/07/2020, 1:42 PM-Xir-produce-js
I got a lot of compilation error from jsTest that it can't find symbols that located in jsMain.
Without setting this flag all compiles well.
Please advise me how can i compile my Kotlin code to js using IR?
P.S. it is the same for browser{} and nodejs{}PHondogo
03/08/2020, 7:55 AMfun main() {
embeddedServer(Netty, port = 8080, host = "127.0.0.1") {
routing {
get("/") {
call.respondHtml {
head {
title("Hello from Ktor!")
}
body {
+"${hello()} from Ktor. Check me value: ${Sample().checkMe()}"
div {
id = "js-response"
+"Loading..."
}
script(src = "/static/test_js.js") {}
}
}
}
static("/static") {
resource("test_js.js")
}
}
}.start(wait = true)
}
After compiling it with useIR=false
it works ok, but
after compiling it with useIR=true
it throws execption on `call.respondHtml {`:
java.lang.NoSuchMethodError: 'java.lang.Object io.ktor.html.RespondHtmlKt.respondHtml$default(io.ktor.application.ApplicationCall, io.ktor.http.HttpStatusCode, kotlin.jvm.functions.Function1, int, java.lang.Object, kotlin.coroutines.Continuation)'
Please, advice me how can I make it work with useIR=true
.Drew Hamilton
03/08/2020, 11:48 AMInstructionAdapter.ireturn()
function. How do I write the JVM IRETURN
(integer return) bytecode into my generated code?jimn
03/10/2020, 3:18 AMbetterclever
03/10/2020, 12:09 PMbetterclever
03/11/2020, 4:34 PMraulraja
03/17/2020, 7:52 PMowner
property in the IR nodes are now null whereas before they always contained the pointer to the symbol
spierce7
03/23/2020, 5:00 AMraulraja
03/23/2020, 1:53 PMkotlin.internal.ir.Intrinsic
. I suppose this is an issue in code generation and not that I actually need an IR runtime to run that code and it’s missing as dependency. Is that the case? Or does anyone else know where this may be coming from? Any help is appreciated, thanks!
Exception in thread "main" java.lang.NoClassDefFoundError: kotlin/internal/ir/Intrinsic
at consumer.MainKt.<clinit>(main.kt:5)
Caused by: java.lang.ClassNotFoundException: kotlin.internal.ir.Intrinsic
at <http://java.net|java.net>.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 1 more
Manuel Wrage
03/25/2020, 3:53 PMHadi Lashkari
03/27/2020, 8:13 AMmp
04/04/2020, 5:35 PM./gradlew classes
takes 40-50s from a clean workspace with ktor 1.3.1. I've been waiting 8 minutes so far on 1.3.2... Is this a known issue?