Are the Kotlin-Script examples still functional? I...
# getting-started
b
Are the Kotlin-Script examples still functional? I've tried following the guides (where I end up with an
Unable to get script compilation classpath from context, please specify explicit classpath via "kotlin.script.classpath" property
error) or I try to clone the
kotlin-script-examples
project and I can't select any of the
host.kt
files for usage in a run configuration, and if I manually type the path in I get
error: unrecognized script type: host.kt; Specify path to the script file as the first argument
Update, does look like everything is functional, if a little obtuse. The
jvm
block inside the
ScriptCompilationConfiguration
was the core issue, needed to ensure that the script definition module name and the entry in
dependenciesFromCurrentContext
matched.
125 Views