IDEA Community doesn't see standard functions of Kotlin

Answered

Hi there,

 

That is a weird problem. IDEA highlights "mutableMapOf" (and some other) as an unresolved reference, however the project is built without any problems. Could anyone suggest what's going on?

IDEA 2020.2.2

Kotlin 1.3.72

Gradle-based project

 

I already tried "Reload all projects" in Gradle view, "Invalidate caches and restart", it doesn't seem to help.

 

0
2 comments

Try updating to Kotlin plug-in 1.4 version. Also try to delete the System directory: https://www.jetbrains.com/help/idea/tuning-the-ide.html#system-directory.

If the issue persists, file a bug at https://youtrack.jetbrains.com/newIssue?project=KT with the sample project and the logs attached (Help | Collect Logs and Diagnostic Data).

 

0
Avatar
Permanently deleted user

Thanks, Serge,

 

It didn't help but you gave me the clue. Once I removed Gradle cache (rm -fr ~/.gradle/caches/), the issue disappeared

0

Please sign in to leave a comment.