Reputation: 2413
Suddenly, IntelliJ IDEA is showing the following module view with a strange yellow colour in the background. I don't know how to get my module back, because it is not being shown:
Do you know how can I see my project folder back?
Thanks
Upvotes: 44
Views: 77463
Reputation: 41
If you somehow happened to delete the .idea folder, and you could not see anything about the modules, one way to solve the problem is:
In step3, if your project has a parent-child module relationship, importing the parent module is sufficient. Plus,I have tried File->New Project From Existing Sources->Import project from exteral model,but it did not work for me.
Upvotes: 0
Reputation: 1084
I had the same problem with IntelliJ IDEA 2021.3.2 (Ultimate Edition). I solve this problem by disabling the Kotlin plugin.
Upvotes: 0
Reputation: 21
In my case Modules kept on disappearing and I managed to fix it with these simple steps:
Once the folder has been scanned, press the OK button and you will see the Module appear
Upvotes: 2
Reputation: 61
For Maven Projects that don't show up you can right click your pom.xml and click 'Add as Maven Project'.
Upvotes: 6
Reputation: 1678
Check if the FACETS panel is blank
If it's blank .Then click the "+" button to add one.
For me .I need a android facet.
For details.go to this link
Hope this is work for you.
Upvotes: 0
Reputation: 1891
This is way late, but deleting my .idea
folder did the trick.
cd <project-path>
rm -rf .idea
Upvotes: 70
Reputation: 939
In Intellij, Right click on your parent pom file and click add as maven project
Upvotes: 16
Reputation: 23
For me, I must've deleted my .iml file somehow. Files with .iml contain configuration for your modules. The problem was that my project module was not being loaded without it. I'm using gradle, syncing my project with gradle regenerated whichever *.iml was necessary to build. Here is a post that provides a succinct explanation. IntelliJ IDE | .iml File lost or deleted Also - I know this issue is probably long gone and out of his head but for whoever may come across this issue, the above was the solution for me.
Upvotes: 0
Reputation: 20381
I had a similar issue. Other answers did not solve the problem for me.
I ended up uninstalling IntelliJ, then installing a new copy. When prompted to import previous settings, I selected the option of not to import, then set up IntelliJ from scratch. After re-install/re-setup, I was able to open my project folder and all of the modules showed like before. Some how my IntelliJ got fubared, my guess is that it happened when I updated it last week.
Upvotes: 0
Reputation: 536
You can go to File-> Project Structure and then define it as a Source Folder
Upvotes: 31