I can't execute a simple Kotlin script because of compilation failed due to an invalid argument.
This is my Kotlin script:
#!/usr/bin/env kscript
println("Helloooo")
Then I've writter my very simple script, I've add executable permission to execute it:
chmod u+x SomeScript.kts
This is the error:
$ ./SomeScript.kts
[kscript] [ERROR] compilation of './SomeScript.kts' failed
error: invalid argument: -d
info: use -help for more information
How can I fix it?