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

There's an issue when piping into kscript . Example: ``` notedown --strip r_chunks_example.md | kscript -t 'lines.filterNot { it.contains("%%R") }.print()'> ${mdBaseName}.ipynb ```

bug

### convert //DEPS to file:DependsOn (and same of other annotations) E.g. if script is using: @file:DependsOn("de.mpicbg.scicomp:kutils:0.8.4") but pom/gradle is indicating just compile "de.mpicbg.scicomp:kutils:0.8.3" the script line should be tagged with...

help wanted

I tried running ``` #!/usr/bin/env kscript @file:DependsOn("org.springframework.boot:spring-boot-starter:2.0.4.RELEASE") package my.package import DependsOn import org.springframework.boot.autoconfigure.SpringBootApplication import org.springframework.boot.SpringApplication @SpringBootApplication class DummyApp SpringApplication.run(DummyApp::class.java, *args) ``` it starts but fails with ``` ERROR org.springframework.boot.SpringApplication -...

help wanted

ie. by prefixing dependencies with a minus ``` //DEPS org.apache.commons:commons-csv:1.3 -log4j:log4j:1.2.14 ```

enhancement

All the issues connected with the implementation of the Kotlin Scripting engine in KScript.

I'm struggling to understand how I'm supposed to get access to my local libraries in kscript. I have simple file : #! /usr/bin/env kscript import se.explodera.util.sql.OracleDBFileLoader println("Hello.") where the imported...

The [@file:Import example](https://github.com/kscripting/kscript?tab=readme-ov-file#ease-prototyping-with-fileimport) failed with this error `error: platform declaration clash: The following declarations have the same JVM signature (median([Ljava/lang/Double;)D):[nl] fun Array.median(): Double defined in kscript.scriplet.Main[nl] fun Array.median(): Double defined...