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
voben
10/03/2019, 9:17 PM
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
Joao Birk
10/03/2019, 9:18 PM
Yeah, thats what I'm doing now. Oh, nice will try that channel, thanks!
w
wasyl
10/03/2019, 10:41 PM
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
Paul Woitaschek
10/04/2019, 6:09 AM
Yep same here. Back to groovy :)
j
Joao Birk
10/04/2019, 2:17 PM
Thats a bummer. Thanks for the info!
z
zhuinden
10/08/2019, 1:33 PM
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
Paul Woitaschek
10/08/2019, 3:16 PM
i use groovy and my project structure takes 20 seconds to load and then only displays warning because it doesn’t understand my setup 😉