I'm running into an issue where gradle (6.7.1) is ...
# gradle
t
I'm running into an issue where gradle (6.7.1) is getting stuck while building my kotlin 1.4.20 project. I've tried deleting
~/.gradle
and
project/.gradle
folders but the issue seems to persist. Its getting stuck during some kapt dependent tasks which get called from
gradle :core:classes
Anyone else experiencing similar?
e
If the Gradle daemon is stuck, then a thread dump would help understand what is happening
t
Posted the dump here: https://pastebin.com/gevDwqFV
e
This looks like a thread dump from the command line client. not the Gradle daemon
Copy code
user@host $ jps | grep Gradle
302357 GradleDaemon
302323 GradleWrapperMain
The above shows two Gradle processes, you need a thread dump of the
GradleDaemon
one
t
ahh k sorry
e
I'm leaving the keyboard, if you don't see anything obvious in the thread dump you might want to open an issue on
gradle/gradle
with the thread dump attached and as much detail as you can about your build.
t
okay thank for the help
will try and get the dump from GradleDaemon. Currently kill -3 PID doesn't dump to std out so will inestigate some of the other methods referrend to above
e
Yes, daemon stdout is redirected to the logs. Better make it dump to a file it'll be easier
t
👍 i've got it with jstack will review it shorlty
will review it shortly to see if anything jumps out
yep gibberish to me 🙂 I will try and recreate in a fresh repo and if its still failing then i'll create an issue on githib
e
You could also give 6.8-rc-1 a try
t
I've tried with gradle 6.6 and jdk 13 but no go. Also tried building inside a docker container again no go. I think the issue might be something Arrow is doing. but still trying to narrow it down to exactly what. So not sure if its gradle or arrow at the moment
Same issue on 6.8-rc-1 ... still trying to figure our which bit of code actually causes the error. Been removing a folder at a time to find the point at which it compiles 😩
I think I've found the issue! There is a data class in my code that has an error in it - its using a type that isn't available and its using Arrow's @optics annotation. If i remove the
@optics
annotation then gradle spits out the error from during compileKotlin task and exits. If I fix the missing type, then it compiles correctly.
I'm not sure if this is a gradle, kapt, or arrow issue?
e
Given the symptoms I would start by reporting that at the Kotlin issue tracker. Ideally you can reproduce that in a small shareable build.
t
👍