Turn off auto- import and only use the apply dependencies. Ensure you're using latest gradle, intellij and kotlin intellij plugin.
No guarantee but if you aren't doing something above, your experience may improve.
But this is why I still prefer groovy version, but I've also been working with gradle for years, so used to its syntax.
m
Matej Drobnič
06/10/2019, 7:48 AM
I have all of this (except that it's Android Studio, not IntelliJ) and kts files seem still slow to me
Matej Drobnič
06/10/2019, 7:49 AM
is this normal?
Matej Drobnič
06/10/2019, 7:50 AM
pressing ctrl + space takes 2-3 seconds to show up. That action is instant on regular Kotlin code
m
Mike
06/10/2019, 12:52 PM
Sorry, can’t comment on whether this is ‘normal’ or not. I just periodically experiment with Kotlin DSL, and happened to notice above recommendations when reading docs. But I usually end up back with Groovy DSL for one reason or another…
m
Matej Drobnič
06/10/2019, 12:56 PM
Main reason for me using Kotlin DSL is autocomplete (which is pretty much nonexistent on Groovy), but slowness makes this main reason a moot point
m
Mike
06/10/2019, 1:00 PM
auto-complete improves if you’re using the Gradle Wrapper and change to the
-all
variation rather than the
-bin
variation.
And as I said, I’ve been working with Gradle for quite awhile, so I don’t really require the auto-complete, and can understand the errors most of the time.
p
Paul Woitaschek
06/27/2019, 10:02 AM
My fresh configuration takes 1:30 minutes so I don’t need kts at all 😛