Hi there, so we migrated our Gradle Groovy scripts...
# android
j
Hi there, so we migrated our Gradle Groovy scripts to Kotlin-DSL. In the past few days we realized that the IDE has become very unresponsive when editing files, copying or pasting stuff. Has anyone faced the same issue? I found this link: https://docs.gradle.org/current/userguide/kotlin_dsl.html "In addition, IntelliJ IDEA and Android Studio might spawn up to 3 Gradle daemons when editing Gradle scripts — one for each type of script: build scripts, settings files and initialization scripts. Builds with slow configuration time might affect the IDE responsiveness, so please check out the performance guide to help resolve such issues." Seems I'm gonna have to do some performance testing in order to figure this out. Wonder if anyone faced this and can pin point a solution.
v
Try running a gradle build scan to figure out what's going on. You would need to attach the
--scan
flag when running a gradle command like so
./gradlew help --scan
. Also there's a #gradle channel if you need more help with this
j
Yeah, thats what I'm doing now. Oh, nice will try that channel, thanks!
w
I had the same situation, promptly migrated back to groovy scripts. I think IntelliJ is just not yet ready for Gradle Kotlin DSL performance-wise
p
Yep same here. Back to groovy :)
j
Thats a bummer. Thanks for the info!
z
The real surprise for me is that the
Project Structure
tab is just completely unavailable if you use
kts
. Alas, the auto-complete is still wonderful...
p
i use groovy and my project structure takes 20 seconds to load and then only displays warning because it doesn’t understand my setup 😉