i know this was mentioned previously, but i’m curi...
# intellij
b
i know this was mentioned previously, but i’m curious if everyone has performance issues using kotlin dsl in intellij? it will very frequently cause my ide to lock up momentarily, can’t move the cursor etc. auto-complete is consistently near-on unusable as it takes 3+ seconds? I’ve got a multi-module build that does some child-project configuration in the parent, no clue if that factors into it
i
Works fine for me. I have only Gradle Kodlin DSL, 11 modules + buildSrc, Kotlin, Gradle AS are all up to date . Mabye some other IDE plugin is responsible?
b
maybe? though it’s very specific to when i’m editing kotlin dsl files. everything else works just fine
m
Latest IntelliJ, Gradle and Kotlin plugin? There are always improvements. But you aren't the only one that seems to have this issue. A few others have commented on it. I still use Groovy DSL, but I'm a long time Gradle user, so Kotlin DSL doesn't appeal to me.
b
yeah, latest EAP, but has been a consistent issue across all versions
m
Hmmm, that starts to feel like something specific in your project that's really slowing down Gradle's configuration phases, but I don't have any concrete suggestions. Some plugin you're using is causing a lot of re-evaluation, or does some heavy configuration or... So many moving parts to investigate.
p
the performance of my latest intellij + maven + kotlin + java has been atrocious for months.. typing is a chore, makes me regret ever adding kotlin to this project
restarting intellij improves the performance for a few minutes but it quickly degrades
b
still so frustrated by the painfulness of really really slow gradle refreshes with kotlin dsl. Make a change, everything in file is underlined in RED, ERROR. Wait 45 seconds, gradle gets its shiz together, and everything is fine.
m
I haven't switched to the Kotlin DSL because any time I've experimented, I've very quickly gotten frustrated. Personally, find it worse than Groovy, especially if you use the -all version of the wrapper, and have Gradle experience. I thought the delays had mostly been fixed, though. Assuming you're running latest of IDE, Gradle and Kotlin plugin. Gradle has made many improvements, so if you're not on Gradle 5.6.3, I'd suggest upgrading and see if you still have issues. If you're already on latest, then thank you for the update that slowness is still an issue.
b
yeah, i’m on latest intellij and gradle 5.6.3
every single change i make to my gradle file results in a 10-20 seconds “reconfiguration” which is just… untenable.
(he says, though he’s dealt with it for months on end)
if i run a
gradle build --scan
on the command line and check results, the “Initialization & configuration” takes about 4 seconds. In intellij it ends up being at least 3x that 😞
m
Uggh. One more reason for me to stick with Groovy DSL...