Been trying to get compose compiler and kotlin scr...
# scripting
z
Been trying to get compose compiler and kotlin scripting to play along nicely for a while now. Currently the problem I'm encountering is a StackOverflowError with just this code: (compiler-hosted-1.5.7.1.jar is the compose-multiplatform compiler)
Copy code
#!/usr/bin/env -S kotlinc -Xplugin=./compiler-hosted-1.5.7.1.jar -language-version=2.0 -jvm-target=17 -script --

@file:Repository("<https://maven.pkg.jetbrains.space/public/p/compose/dev>")
@file:DependsOn("org.jetbrains.compose.runtime:runtime-desktop:1.5.11")
And all I get is this meaningless error, adding -verbose gives me information but none of it is of use
Copy code
warning: language version 2.0 is experimental, there are no backwards compatibility guarantees for new language and library features
error: java.lang.StackOverflowError (test.main.kts): java.lang.StackOverflowError
Adding the dependency on runtime-desktop causes that error, compose compiler requires that dependency however. Also this is kotlin 1.9.22
👀 1
s
@zt had any updates on it?
z
I haven't, I might try when I get a chance another approach to running the script
thank you color 1