Whenever I try to `readln()` I get `Exception in thread "main" kotlin.io.ReadAfterEOFException: EOF ...
k
Whenever I try to
readln()
I get
Exception in thread "main" kotlin.io.ReadAfterEOFException: EOF has already been reached
Running the app via gradle, any ideas why it's happening?
j
Probably the stdin of the Gradle process is not forwarded to your app by default
You can try something like:
Copy code
tasks.named<JavaExec>("run") {
    standardInput = System.`in`
}
k
Works like a charm!
🆒 1
Thanks...
1206 Views