what can I do if the `compileKotlin` Gradle task a...
# gradle
a
what can I do if the
compileKotlin
Gradle task always hangs for 10+ minutes, and launches a Java process that takes up 100% CPU? This is for a small v1.8.10 project with ~10 Kotlin classes (Gradle 8.0.2) I’ve tried cleaning, rebooting, running with
--no-build-cache
,
--no-configuration-cache
,
kotlin.incremental=false
, `kotlin.caching.enabled=false`…
t
Does build finish?
a
these are the tasks that hang
I haven’t tried to let it finish, I always quit early. An hour ago it took seconds to compile,
t
please try to take a look into Kotlin daemon logs inside
<tmp>
directory. For example
/tmp/kotlin-daemon.2023.*.log
a
there’s nothing in the root
/tmp
dir
t
that is strange.. Is Kotlin daemon running?
a
hmm I’m not sure.
t
Try via
jps -v
also could you try to run the build with Kotlin 1.8.20?
a
oh, it’s working now
BUILD SUCCESSFUL in 24s
yeah it’s just working, just like before 🪄
oh interesting… it compiles when I comment out everything in the main method. But when I revert it, it stops compiling
here’s a very quick overview of what’s failing to compile.
possibly caused by a
while(true) {}
after a suspending function?
it doesn’t seem to occur in 1.8.20, but it does in 1.8.10. I’ve made a YouTrack issue just in case: https://youtrack.jetbrains.com/issue/KT-57744
a
nice one, that looks the same
Build stuck for several hours (seems to be stuck infinitely)
Stuck for hours! That poor dev…
901 Views