kissed
03/18/2021, 9:24 AMGary Tierney
03/22/2021, 6:35 AMMETA-INF/kotlin/script/templates
as many of the other existing examples do it. I wonder if the IDE runs into some error processing my definition, but if it is that's not being made visible to memkobit
03/29/2021, 6:13 PM@ScriptBody
is implemented yet. It there a different way to return a value from a script to the scripting host?Timo Drick
04/03/2021, 1:16 PMDave K
04/07/2021, 9:18 PMyschimke
04/09/2021, 4:51 PMushort
04/17/2021, 12:21 AMSrSouza
04/19/2021, 6:32 PMAndrew Steinmetz
04/22/2021, 1:45 AMSrSouza
04/23/2021, 7:30 PMSrSouza
04/23/2021, 9:35 PMnfrankel
05/08/2021, 7:39 AMerror: backend Internal error: Exception during code generation
File being compiled: update.main.kts
The root cause java.lang.RuntimeException was thrown at: org.jetbrains.kotlin.backend.jvm.codegen.FunctionCodegen.generate(FunctionCodegen.kt:54) (update.main.kts): org.jetbrains.kotlin.backend.common.BackendException: Backend Internal error: Exception during code generation
File being compiled: update.main.kts
The root cause java.lang.RuntimeException was thrown at: org.jetbrains.kotlin.backend.jvm.codegen.FunctionCodegen.generate(FunctionCodegen.kt:54)
Error: Process completed with exit code 1.
i searched to open a bug on kotlin youtrack but didn’t find a way 😬
if a jetbrains employee finds this message, please ping meRayeW47
05/12/2021, 12:02 AMBig Chungus
06/03/2021, 5:40 PMBig Chungus
06/04/2021, 12:52 PMneugartf
06/04/2021, 6:33 PMScriptJvmCompiler
I’m running into a this error:
Using old JVM backend
java.lang.IllegalStateException: The provided plugin org.jetbrains.kotlin.samWithReceiver.SamWithReceiverComponentRegistrar is not compatible with this version of compiler
(Script is placed in buildSrc
)
Does anyone have an idea? JDK is 11.0.10 and Kotlin 1.5.10.
https://scans.gradle.com/s/rdbi5m2x3g27o/failure#1Neon
06/05/2021, 4:00 PMeygraber
06/09/2021, 5:12 PMAlex Ostrovsky
06/10/2021, 2:11 PMTianyu Zhu
06/16/2021, 3:35 PM@KotlinScript(fileExtension = "my.kts")
abstract class MyScript
Presumably with some default imports and some implicit receivers, how do I get IntelliJ to help me highlight and autocomplete my file?Bmyte
06/17/2021, 2:24 AMrnett
06/19/2021, 2:13 AMPiotr Krzemiński
06/27/2021, 5:48 AMlouiscad
07/01/2021, 8:37 AM.main.kts
scripts? IDEA and Android Studio take the Kotlin version of the current Gradle project, while they share no Kotlin version.Colton Idle
07/02/2021, 11:40 PMnfrankel
07/07/2021, 9:16 AMprintln()
statements in different places
the problem is that it doesn’t show up in the action’s log
i’ve blamed github and moved to a docker container
however, it doesn’t output to the standard out either, though it prints warning messages related to the classpath
now, i’m wondering what is wrongFlorian Magin
07/23/2021, 10:45 AMobj
as a "Binding", like wrapping the entire .kts
Script I want to evaluate in a with (obj){ }
block?SrSouza
08/08/2021, 6:44 PMEgor
08/17/2021, 9:24 AM//========================== Script 1 =============================
@file:Import("script2.cp.kts")
fun doMain() {
doSomeDummyWork()
}
//========================== script2.cp.kts =============================
fun doSomeDummyWork(): Int {
return 42
}
The error message:
The root cause java.lang.RuntimeException was thrown at: org.jetbrains.kotlin.backend.jvm.codegen.FunctionCodegen.generate(FunctionCodegen.kt:50)
at org.jetbrains.kotlin.backend.common.CodegenUtil.reportBackendException(CodegenUtil.kt:239)
at org.jetbrains.kotlin.backend.common.CodegenUtil.reportBackendException$default(CodegenUtil.kt:235)
...
Caused by: java.lang.RuntimeException: Exception while generating code for:
FUN name:doMain visibility:public modality:FINAL <> ($this:<root>.Script1_cp) returnType:kotlin.Unit
$this: VALUE_PARAMETER name:<this> type:<root>.Script1_cp
BLOCK_BODY
COMPOSITE type=kotlin.Unit origin=null
CALL 'public final fun doSomeDummyWork (): <http://kotlin.Int|kotlin.Int> declared in <root>.Script2_cp' type=<http://kotlin.Int|kotlin.Int> origin=null
$this: GET_VAR '<this>: <root>.Utils_cp declared in <root>.Rater_cp.<init>' type=<root>.Utils_cp origin=null
COMPOSITE type=kotlin.Unit origin=null
at org.jetbrains.kotlin.backend.jvm.codegen.FunctionCodegen.generate(FunctionCodegen.kt:50)
at org.jetbrains.kotlin.backend.jvm.codegen.FunctionCodegen.generate$default(FunctionCodegen.kt:43)
...
Caused by: java.lang.IllegalStateException: No mapping for symbol: VALUE_PARAMETER SCRIPT_IMPLICIT_RECEIVER name:<this> index:1 type:<root>.Script2_cp
at org.jetbrains.kotlin.backend.jvm.codegen.IrFrameMap.typeOf(irCodegenUtils.kt:64)
at org.jetbrains.kotlin.backend.jvm.codegen.ExpressionCodegen.visitGetValue(ExpressionCodegen.kt:648)
@ilya.chernikov can you help here?louiscad
08/23/2021, 2:26 PM