IntelliJ just reloaded my project and removed all ...
# multiplatform
j
IntelliJ just reloaded my project and removed all modules ? Now no class etc. gets recognized. How can I fix that?
b
I think syncing Gradle should fix it
j
No that didn't help
I somehow have to reimport the modules but I have no idea how to do it
c
What error did you get? That is how you should do it.
a
also, try deleting the .idea, and the .gradle directories, then invalidate caches + restart IDEA
j
weirdly this only happens when I add that dependency: https://github.com/korlibs/korio
but thats a multiplatform dependency?
c
What's the error message? We can't help without it.
j
there is no error
I only see when I add the dependency "These modules have been removed by gradle reload" and they were gone
but the jvm modules are still there?
c
If you run
gradle tasks
or similar, do the tasks for the modules that disappeared show up?
a
Looks like korio doesn't have one of the targets you are targeting thene
m
I was facing similar issues in the past too and what helps additionally to hints from @andylamax was running gradle build in terminal from CLI with
--info
or even
--debug
Sometimes are error messages displayed in CLI run not showing in or hard to find in IntelliJ&Co