kscript icon indicating copy to clipboard operation
kscript copied to clipboard

Scripting enhancements for Kotlin

Results 66 kscript issues
Sort by recently updated
recently updated
newest added

I want to open files that are located beside the main script file. ```kotlin @file:Import("Models.kts") val data = Gson().fromJson(FileReader("data.json"), Models.Data::class.java) ``` fails with ``` java.io.FileNotFoundException: data.json (No such file or...

I am trying to repl connect to .kts file which is defined such ``` Kotlin #!/usr/bin/env kscript val myName = "Namig" ``` and it can not resolve it. Here is...

In some situations, notably in some package managers like hermit, which have installers which don't add the "kotlinc" binary so they won't have kotlin-native and kotlin-regular packages conflict, they end...

An attempt to include my utils per `@file:Import("absolute/path/to/myutils.kt")` doesn't work. More precisely: `Unresolved reference: myFunction`

It'd be great if kscript could match behavior to be 100% compatible with the 'Kotlin scripting support' annotations. Even if one writes a script aiming for the standard compiler command,...

For better integration with other development environments, the option to list dependencies is added, and thus detect them directly. An example of use would be to create a kls-classpath file...

I can see that the kscript version 4.2.3 is missing on the Dockerfile https://github.com/kscripting/kscript/blob/master/misc/Dockerfile. This makes it unable to run scripts with modules written in Kotlin with newer versions. I...

It seems kscript does not work with Kotlin 2.0.0. What I observe is the same as #408: ``` $ kscript 'println("hello world")' Exception in thread "main" java.lang.ClassNotFoundException: kscript.scriplet.Scriplet at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)...

https://github.com/kscripting/kscript/blob/6acd4e1907478c49cc4e3db640200f926933b15d/src/main/kotlin/io/github/kscripting/kscript/code/GradleTemplates.kt#L69-L78 Here I see that we don't use `runtimeClasspath` and in some scenarios, we need to. I guess something like so, ```groovy from({ configurations.runtimeClasspath.get().map { if (it.isDirectory) it else zipTree(it)...

Update Dockerfile to the latest kscript and kotlin (compatible < 2). Change docker image to be the Gradle image so it comes with jdk-21 and Gradle installed. Gradle is required...