https://kotlinlang.org logo
k

kissed

03/18/2021, 9:24 AM
Hi! Has anyone faced to such a problem: kts scripts doesn’t highlight in Android Studio multiple script definitions are applicable for this script. KotlinSettingsScript is used
v

Vampire

03/18/2021, 9:58 AM
Please copy your second message either into your first message or in the thread of the first message. If someone follows this thread now in his threads view he is missing the context of the first message.
k

kissed

03/18/2021, 9:59 AM
sure, thanks!
v

Vampire

03/18/2021, 10:00 AM
Yeah, or that way around, but better delete the original first message now 😄
Your screenshot looks like a known bug that is fixed in IntelliJ 2021.1. AS is of course based on an older version as 2021.1 is not even finally released yet. You need to manually delete your cache directories to fix this, "Invalidate caches" option in the File menu is not enough to fix it.
k

kissed

03/18/2021, 3:28 PM
clearing cache doesn’t work for me, but in the Idea 2020.3 no problem exists
v

Vampire

03/18/2021, 3:31 PM
Did you clear it manually by deleting files in the filesystem, not via menu entry? Did you clear the correct caches? I guess AS has them in a slightly different place than IJ so that they don't interfer if someone uses both.
k

kissed

03/19/2021, 6:33 AM
Yes, I cleared right way. No matter, I think I’ll use Idea 2020.3 for a while thanks a lot!
2 Views