The gradle plugin is freezing `app:compileDebugKot...
# serialization
j
The gradle plugin is freezing
app:compileDebugKotlin
for me now, is that a known issue or what is going on?
g
Have you tried to kill Kotlin and gradle daemons and try again?
j
of course
It stops working once i apply the plugin and delete the build folders (If i dont delete those, the Serializers just wont be generated, so somehow the plugin isnt applied) to make it work: delete the build folder, undo apply plugin
Is there anything I can debug?
g
Probably only by profiling build, to try understand what is going on when build is hanging
j
well you see the debug output, sth about locks. I do not have an extensive knowledge about gradle
Well hoping for someone to help me out
g
I mean using jvm profiler
What is your issue with serialization? Is it happening only whwh serializer plugin is applied?
j
yes
g
1.0.0? Looks like issue is there, but I didn't get case with build dir
j
yes
Oh, its useIR
Well, I'm using Compose too, so I do need that.... So currently these 2 libraries are not compatible ig
nvm, not that.... just the build directory wasnt deleted entirely
but it does only happen when i use
@Serializable
g
Yep, compose and sterilization do not work together, though, you can use them in different modules
I'm still don't understand why you delete build dir, just a way to reproduce it?
j
It seems like the plugin does not apply without deleting that build dir. It just works normally, without doing anything. As soon as i delete it, the plugin applies and it fails
g
I think it’s just some issue with kotlinx.serialization plugin, it doesn’t work properly with incremental compilation and doesn’t detect that existing incremental data is invalid and should be regenerated
b
I'm so glad to find this post. Been going 🤯