nekoinemo
05/20/2018, 7:11 PMval bindings: Bindings
available in its context. However, when editing a .kts file there doesn't seem to be obvious way to inform IDE about that, short of writing val bindings: Bindings = SimpleBindings()
at the beginning of the file and commenting it out before compiling.Gary Tierney
05/20/2018, 8:59 PMGary Tierney
05/20/2018, 9:00 PMilya.chernikov
05/21/2018, 8:07 AMkotlin-scripting-*
modules and related samples/tests in the Kotlin project.sdeleuze
05/28/2018, 2:11 PMsrc/main/resources/*.kts
file in src/main/kotlin/*.kt
and get kts
class autocomplete from the kt
file ? Use case is *.kts
based configuration.Gary Tierney
05/28/2018, 9:34 PMsdeleuze
05/28/2018, 10:48 PMilya.chernikov
05/29/2018, 9:51 AM.kts
and .kt
files in one sourceset and reference one another. To use a script class from a regular .kt
you’ll need to know how script class names are generated.
What is new with 1.2.50 is that you may have custom scripts in your sourcesets, distinguished by an extension (still should end with .kts
for a moment though) and automatically recognized by compiler and IDE using discovery mechanism, by just adding appropriate dependency to the project.nekoinemo
05/30/2018, 10:38 AM