Not only Android Studio, also IntelliJ IDEA. Maybe since Kotlin 1.2.20.
Yes, looks like this is broken when using the latest Kotlin plugin for any IntelliJ IDE. Rolled back to 1.2.10 and it's working again.
Kotlin Plugin 1.2.21 is still affected.
Hi,
I recently posted that syntax highlight is fine in last IDEA build, but since then I found out (at last) that there is a OS dependent appearence.
I had same Ultimate editions of previous builds and the recent one on
Windows 7 Ultimate (x64) - settings.gradle.kts syntax highlight is broken (even after complete reinstall of IDEA)
Windows 10 Enterprise (x64) - settings.gradle.kts syntax highlight is all good
IntelliJ IDEA 2018.1 EAP (Ultimate Edition)
Build #IU-181.3007.14, built on January 24, 2018
IntelliJ IDEA EAP User
Expiration date: February 23, 2018
JRE: 1.8.0_152-release-1136-b5 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
The worst part is that ...
When I open settings.gradle.kts
since kotlin as I guess is not recornized my IDEA Auto-import automatically imports
import org.gradle.internal.impldep.org.junit.experimental.categories.Categories.CategoryFilter.include on my include("subproject_name")
instanteniously, so to fix it I, as well, have to instanteneously delete the line an胁 close the tab straight away, otherwide thee build would fail resolving wrong include directive.
It is fixed in the upcoming 1.2.30 (the first EAP will be published quite soon).
1.2.30 was just released and the bug is gone.
Yay! :)
This is still broken in A.S. 3.6
Most helpful comment
It is fixed in the upcoming 1.2.30 (the first EAP will be published quite soon).