i’m running a Kotlin script as part of a github ac...
# scripting
n
i’m running a Kotlin script as part of a github action to debug, I wanted to add
println()
statements in different places the problem is that it doesn’t show up in the action’s log i’ve blamed github and moved to a docker container however, it doesn’t output to the standard out either, though it prints warning messages related to the classpath now, i’m wondering what is wrong
l
Weird, in my case it's working perfectly, you can see the code printing its measured processing time (not to be confused with time to compile, load and finally run the script). https://github.com/LouisCAD/Splitties/runs/2993820921?check_suite_focus=true Check the 4th step. Is your GitHub action running on Ubuntu or on another place?
1
👀 1
n
Is your GitHub action running on Ubuntu or on another place?
ubuntu-latest
l
Then good, you have my working example 🙂
👍 1
n
https://github.com/nfrankel/nfrankel/blob/master/.github/workflows/build.yml indeed, yours work the only difference is that i’m printing inside of functions/variables might be worth checking
thanks 🙂
l
I see more differences. You're using SDKMAN to set the thing up, not snap packages, you're using kotlinc instead of executable file + shebang, some special parameters like using the old backend, etc.
👍 1
n
thanks @louiscad i fixed the issue i don’t know exactly the issue but installing via
snap
and running the script as per your repo did the trick 🎉
👍 1