Hi all. I have a highlighting bug in my project wh...
# multiplatform
s
Hi all. I have a highlighting bug in my project where any references in .kt files in my main module to classes in other modules are marked in red.
(Cannot access class...)
The project compiles and runs as expected and Java files are not affected. It started with the kotlin plugin version 1.4 and it's still an issue with 1.4.20-M1. Using an older plugin, 1.3.72 fixes the issue, but the project is on Kotlin 1.4 so that's not a good workaround. The project is a kotlin multiplatform project so I suspect that's the issue Before I raise an issue with Jetbrains I want to understand the problem better, has anyone encountered this?
m
Check the list of JDKs configured in your IDE. My list contained old invalid entires and removing them fixed the issue.
s
Yes, I remember getting that issue with gradle build files a while ago. I only have the bundled jdk, to prevent that from happening.
😕 1
Probably just a bug due to enableGranularSourceSetsMetadata https://youtrack.jetbrains.com/issue/KTIJ-421