Turn off auto- import and only use the apply depen...
# intellij
m
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
I have all of this (except that it's Android Studio, not IntelliJ) and kts files seem still slow to me
is this normal?
pressing ctrl + space takes 2-3 seconds to show up. That action is instant on regular Kotlin code
m
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
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
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
My fresh configuration takes 1:30 minutes so I don’t need kts at all 😛