Greg
11/18/2025, 10:01 PMkotlinc -script hashbang --
#!/usr/bin/env kotlinc -script
@file:CompilerOptions("-jvm-target", "23")
@file:DependsOn("org.jetbrains.kotlinx:dataframe:1.0.0-Beta3")
@file:DependsOn("org.jetbrains.kotlinx:kandy-lets-plot:0.8.0")
import org.jetbrains.kotlinx.dataframe.annotations.DataSchema
[...]
So, long story short, I'm wondering if there's a way to use the compiler plugin without Gradle? I know kotlinc has the -P flag to "Pass an option to a plugin." but that only works for built-in plugins, doesn't it?Nikita Klimenko [JB]
11/18/2025, 10:10 PMval df = dataFrameOf("a" to columnOf(123))//.also { it.a }
Statement 2
This might not compile already
df.a
But you can try -Xplugin= as seen here https://kotlinlang.org/docs/no-arg-plugin.html#command-line-compiler
And here's the artifact
https://mvnrepository.com/artifact/org.jetbrains.kotlin/kotlin-dataframe-compiler-plugin-experimental/2.3.0-Beta1Nikita Klimenko [JB]
11/18/2025, 10:16 PMval df = dataFrameOf("a" to columnOf(123))
df.a // cannot resolve
But inside function scope resolve should work
fun dummyScope() {
val df = dataFrameOf("a" to columnOf(123))
df.a
}
dummyScope()Greg
11/18/2025, 10:25 PMGreg
11/18/2025, 10:26 PMGreg
11/19/2025, 12:23 PM$ kotlinc -version
info: kotlinc-jvm 2.2.21 (JRE 25.0.1)
$ kotlinc -Xplugin=~/Downloads/kotlin-dataframe-compiler-plugin-experimental-2.3.0-Beta1.jar -script my_script.main.kts
error: while analysing my_script.main.kts:292:5: java.lang.NoSuchMethodError: 'boolean org.jetbrains.kotlin.fir.declarations.FirClassLikeDeclaration.isLocal()' (my_script.main.kts): org.jetbrains.kotlin.util.FileAnalysisException: While analysing my_script.main.kts:292:5: java.lang.NoSuchMethodError: 'boolean org.jetbrains.kotlin.fir.declarations.FirClassLikeDeclaration.isLocal()'Nikita Klimenko [JB]
11/19/2025, 12:25 PMGreg
11/19/2025, 12:29 PMGreg
11/19/2025, 12:32 PMkotlinc -Xplugin=~/Downloads/kotlin-dataframe-compiler-plugin-experimental-2.2.21.jar -script my_script.main.kts
my_script.main.kts:633:5: error: 'public' property exposes its 'local' type argument 'Key_69'.
val allData = results.toDataFrame()
^
my_script.main.kts:691:5: error: 'public' property exposes its 'local' type argument 'Key_92'.
val mainMetrics = allData.select(
^
don't think i can work this out without a working intellij though -- back to debugging that problem nowGreg
11/19/2025, 12:33 PMNikita Klimenko [JB]
11/19/2025, 12:33 PMGreg
11/19/2025, 12:34 PMGreg
11/19/2025, 12:34 PMGreg
11/19/2025, 1:02 PMGreg
11/19/2025, 2:16 PMNikita Klimenko [JB]
11/19/2025, 2:21 PMGreg
11/19/2025, 2:21 PMNikita Klimenko [JB]
11/19/2025, 3:56 PMGreg
11/19/2025, 9:43 PM