lately, IntelliJ has not been understanding my multiplatform project very well. I have a Module B which depends on Module A (via
api(project(":A"))
and in module B's common source set, it can see the symbols from Module A. But in any of the other source sets in Module B, they show up as red, and the IDE suggests that I add module A as a dependency. Actually doing so to the specific source sets does not fix the problem either. And I've tried the full "Repair IDE" option and all of it's steps. However, everything is compiles and runs.
a
Alex Styl
08/29/2023, 8:04 AM
is that on the latest version of intellij?
a
Anton Mefodichev
08/29/2023, 9:50 AM
@Adam Brown, can you please create a ticket to KTIJ project and attach the sample project? Thank you!
t
Tóth István Zoltán
08/30/2023, 4:18 AM
I had this problem when I haven't had the same targets in project A and project B. So, if you have "js" and "jvm" in project B, then you need "js" and "jvm" in project A.