kotlin-script-examples icon indicating copy to clipboard operation
kotlin-script-examples copied to clipboard

Examples of Kotlin Scripts and usages of the Kotlin Scripting API

Results 18 kotlin-script-examples issues
Sort by recently updated
recently updated
newest added

https://youtrack.jetbrains.com/issue/KT-53221/Scripts-Backend-Internal-error-Exception-during-IR-lowering-when-assigning-this-to-a-variable

Fixed the files which failed to due to dead bintray. Ran the tests, and upgraded to available kotlinx.html. Upgraded to kotlin 1.6.20 and the matching coroutines 1.6.1 because its available...

"Packages No packages published" is displayed right now, fortunately this pointless section can be removed. Edit repo page config to remove it (cog next to the description). I am not...

Could you please extend the examples to also make auto-completion, e.g. in `hello-kotlinx-html.scriptwithdeps.kts`, work in IntelliJ? For example, if I'm extending `ScriptWithMavenDeps` with a dummy property like ``` abstract class...

can you add sample to get return value of eval() ? something like this: ``` val result : ResultWithDiagnostics = eval(...) result.castOrError { "script evaluation failed. $it" }.value.returnValue.castOrError { "script...

Sorry for this question-like type of issue, but when reading though https://github.com/Kotlin/kotlin-script-examples/blob/d48abed5341ef7cc060a511eb862e06f563a2310/jvm/jsr223/jsr223-simple/src/main/kotlin/org/jetbrains/kotlin/script/examples/jvm/jsr223/simple/repl.kt#L11 I was wondering why there is no `META-INF/services/javax.script.ScriptEngineFactory` file anymore which contains the string `kotlin.script.experimental.jsr223.KotlinJsr223DefaultScriptEngineFactory`. Is this not...

import org.junit.Test import javax.script.ScriptEngineManager import kotlin.test.assertEquals class ScriptTest { @Test fun testSimpleEval() { val engine = ScriptEngineManager().getEngineByExtension("kts")!! val res = engine.eval("2+4") assertEquals(6,res) } @Test fun testSimpleBinding() { val engine =...

> If you know good examples of the Kotlin scripting API usage, not mentioned here, please submit an issue or a pull request with the link and short description. Same...