https://kotlinlang.org logo
#scripting
Title
# scripting
j

jdemeulenaere

07/31/2019, 3:33 PM
https://pastebin.com/5un4j3NE is what I currently have, and prints:
Copy code
Executing script...
[ERROR] Not a script file
Executed script
i

ilya.chernikov

07/31/2019, 4:01 PM
If you setting up an expected filename extension (btw, “script.kt” is not a good extension, you’ll get too many clashes with regular kotlin files), and then create a script from a string, hen you need to specify a correct name (with extension) on
.toScriptSource
call.