I can’t tell why, but IntelliJ is unable to resolv...
# reaktive
s
I can’t tell why, but IntelliJ is unable to resolve dependencies from
reaktive
in my macOS platform code. All other dependences are working fine.
a
Hello, what is the name of the source set?
s
macosMain
a
I'm not sure. Maybe because
macosMain
source set is not interpteted as native sometimes. Usually IDE assume only leaf nodes of sourceSets dependency tree as a native source set. Also try to clear the project, close it, delete all .iml files (specially in that module) and the .idea folder and then reopen the project.
s
Tried that with no luck 😕
a
I will check this later, thanks
s
fwiw I don’t see this problem in
darwinMain
in reaktive’s sample. I’m not sure if that’s because it pulls in reaktive as a dependency locally.
thank you!
a
I want to compare Reaktive with other external deps like coroutines. I suspect they won't be resolved as well.
s
I don't use coroutines, but I tried importing other dependencies I have in my project and IntelliJ was able to resolve them.
Made a fresh checkout of your project. For some reason it can't even resolve a simple
TODO()
in the
iosMain
source set.
s
Uhh right I remember seeing that when the kotlin plugin in my IDE was outdated. Is that the same case with you?
My symbols aren’t in red, but the IDE can’t resolve them either
This wasn’t the case a while ago. Can’t tell what broke 🤦‍♂️.
a
The whole stdlib is unresolved for some reason. On a freshly checked out project.
s
My
commonMain
doesn’t have stdlib explicitly added as a dependency. Could that be the problem?
a
I added 🙂 And still the issue.
s
I updated my project’s kotlin version to 1.3.72 and stdlib references are working again in
iosMain
I think they stop working whenever the IDE’s version is out of sync with the project.
a
Ok, I updated my Android Studio to the latest version and now everything is fine. StdLib and Reaktive are resolved in both iOS and macOS targets.
In your project
What is the version of your Kotlin plugin installed?
Mine is 1.3.71 now
Previously it was 1.3.61
s
Mine is 1.3.72. I’m using IntelliJ IDEA.
a
Tried with IDEA, Reaktive is resolved after plugin update. Try a fresh checkout maybe?
s
Awesome. Let me try re-importing the project.
Deleted the whole project and reimported it again into IDEA without any luck 😕
Guess I’ll just give up assuming this is an IDE bug
a
Yeah, you can also try Android Studio
s
I created an issue just in case: https://youtrack.jetbrains.com/issue/IDEA-238887
👍 1
a
Ahh, they are not red, but just you can't navigate into. Same issue for me! Before the plugin update Reaktive imports was red as well as stdlib. After update they are ok, auto-completion works just fine, the only problem is navigation.
s
that makes me feel better
oh hey I’m seeing the same issue with SQLDelight too!
a
Now that makes ME feel better 🙃
s
😄
Updated to 2020.1 and the problem seems to have gone away 🎉
🎉 1