mkobit
07/26/2018, 6:47 PMcompiler-embeddable
artifact, but that doesn't seem to be documented too wellbart
08/12/2018, 2:00 PMholgerbrandl
08/17/2018, 2:55 PMilya.chernikov
08/20/2018, 8:42 AMholgerbrandl
08/21/2018, 9:43 AMKShell
with all script dependencies being resolved. See https://github.com/holgerbrandl/kscript/tree/master/misc/kshell_launcherdeviant
09/05/2018, 7:06 AM@file:KotlinOpts("-classpath deps.jar")
in the kscript?Parshav
09/05/2018, 3:36 PMerror: cannot choose among the following candidates without completing type inference:
public fun <T> lazy(initializer: () -> ???): Lazy<???> defined in kotlin
public fun <T> lazy(initializer: () -> ???): Lazy<???> defined in kotlin
Not sure what to do. I cleared cache but still lingers on. I only have one lazy evaluation and it is breaking on it :
val ss: String by lazy { "hello" }
Any ideas on what could be going on?bart
09/06/2018, 6:27 PMNikky
09/08/2018, 4:53 PMGary Tierney
09/18/2018, 1:23 PMilya.chernikov
09/19/2018, 11:30 AMkotlin-compiler-embeddable
, right? If so, I recommend to do it with the regular compiler.Nikky
09/21/2018, 1:43 PMvaskir
09/23/2018, 12:22 PMSrSouza
09/24/2018, 3:44 PMNikky
09/26/2018, 4:27 PMLuke
09/27/2018, 7:07 PMjlleitschuh
10/01/2018, 7:27 PMlburgazzoli
10/08/2018, 2:58 PMvoddan
10/11/2018, 1:09 PM.kts
file it works anywhere except the /src/main/kotlin
folder. The exception is src/main/kotlin/test.kts: (3, 1): Cannot access script base class 'kotlin.script.templates.standard.ScriptTemplateWithArgs'. Check your module classpath for missing or conflicting dependencies
. What is the problem?Gary Tierney
10/11/2018, 1:30 PMvoddan
10/11/2018, 2:13 PMNikky
10/13/2018, 8:21 AMDALDEI
10/15/2018, 11:18 PMNikky
10/16/2018, 6:32 AMNikky
10/17/2018, 9:53 PMScriptDiagnostic(message=No class roots are found in the JDK path: /usr/lib/jvm/intellij-jdk/jre, severity=ERROR, location=null, exception=null)
my code to load a simple script lookslike so:
fun main(args: Array<String>) {
val code = FileScriptSource(File("/home/nikky/dev/experiments/kotlin-scripting-test/test.voodoo.kts"))
val a = BasicJvmScriptingHost().eval(
FileScriptSource(File("/home/nikky/dev/experiments/kotlin-scripting-test/test.voodoo.kts")),
ScriptCompilationConfiguration {
set(baseClass, KotlinType(ScriptDefinition::class))
},
null
)
println(a.toString())
a.reports.forEach {
println(it)
}
}
Nikky
10/19/2018, 8:00 PMoshai
10/21/2018, 3:32 PMNikky
10/23/2018, 12:17 PMScriptDiagnostic(message=Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6. Please specify proper '-jvm-target' option, severity=ERROR, location=Location(start=Position(line=101, col=35, absolut
how or where do i configure compilation options like this ?
i found tat i can do this:
compilerOptions.append("-jvm-target", "1.8")
but it has no effectNikky
10/24/2018, 7:01 PMlburgazzoli
10/25/2018, 2:57 PMlburgazzoli
10/25/2018, 2:57 PMilya.chernikov
10/25/2018, 3:00 PMlburgazzoli
10/25/2018, 3:05 PM