bsideup
01/31/2017, 9:13 AMapp
module for the scriptsilya.chernikov
02/01/2017, 9:35 AMapatrida
02/02/2017, 9:37 PMprintln(x); val x = 99; println(x)
produces error:
uy.kohesive.keplin.kotlin.script.ReplCompilerException: error: unexpected tokens (use ';' to separate expressions on the same line)
println(x); val x = 99; println(x)
^
apatrida
02/02/2017, 9:38 PMapatrida
02/02/2017, 10:13 PMkotlin-jupyter
up to dateapatrida
02/03/2017, 1:12 AMfitzoh
02/03/2017, 1:44 AMfitzoh
02/03/2017, 2:05 PMmax
02/18/2017, 10:55 AMapatrida
03/15/2017, 2:04 PMethankhall
04/08/2017, 5:33 PMirus
04/12/2017, 3:54 AMirus
04/16/2017, 6:21 PMmgtriffid
05/10/2017, 1:16 PM@Grab
annotation. Or this is not implemented yet and I should pick some 3rd-party thing like kscript? It seems fine, but I'd prefer solution from JB of courseirus
05/27/2017, 10:22 AMsuspend override fun <T> execute(inputStream: InputStream): T {
// ToDo: Is scriptEngine thread safe?
return CompletableFuture.supplyAsync { scriptEngine.eval(inputStream.reader()) as T }.await()
}
alex.hart
08/09/2017, 9:40 AMraulraja
08/14/2017, 6:24 PMkotlinc
and feeding it snippets to verify they can be compiled. Is there a way to also evaluate expressions and obtain their results in the same way the kotlinc
REPL does? Any help or pointers in the right direction are appreciated 🙂jlleitschuh
08/15/2017, 6:42 PMalex.hart
08/18/2017, 7:13 PMthis
reference when inside an extension method?sdeleuze
08/29/2017, 8:36 AMWARN: [kts] kotlin.script.experimental.dependencies.DependenciesResolver.NoDependencies must have a constructor without required parameters
raulraja
09/02/2017, 1:11 AMinline fun HierarchicalScope.processForMeAndParent(process: (HierarchicalScope) -> Unit) {
var currentScope = this
while (true) {
process(currentScope)
currentScope = currentScope.parent ?: break
}
}
jlleitschuh
09/06/2017, 11:43 PMjlleitschuh
09/07/2017, 3:00 PMGary Tierney
09/20/2017, 6:01 PMilya.chernikov
09/21/2017, 8:33 AMGary Tierney
09/21/2017, 8:46 AMjlleitschuh
09/21/2017, 4:12 PM@file:....
annotation? That way the IDE can automatically configure itself for a specific scripting file?jlleitschuh
10/09/2017, 4:53 PMenum class Build { Debug, Release }
fun applySomething(build: Build) = when (build) {
Build.Debug -> "environmentDebug"
Build.Release -> "environmentRelease"
}
This seems like a scripting bug, yes?
https://github.com/gradle/kotlin-dsl/issues/526
Just want to make sure that this isn't a "works as expected"holgerbrandl
11/04/2017, 10:41 PM