stack man
stack man

Reputation: 2413

IntelliJ IDEA not showing my module/project

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: enter image description here

Do you know how can I see my project folder back?

Thanks

Upvotes: 44

Views: 77463

Answers (11)

lordbao
lordbao

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:

  1. Go to File->Project Structure;
  2. Select Project, modifiy SDK,Languge Level etc;
  3. Select Modules, press + button to import the (parent) module.

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

V. Mokrecov
V. Mokrecov

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

Komiljon Aliyev
Komiljon Aliyev

Reputation: 150

Right click on pom.xml -> Maven -> Reload Project

Upvotes: 6

Arjan Kemeling
Arjan Kemeling

Reputation: 21

In my case Modules kept on disappearing and I managed to fix it with these simple steps:

  • In the Project panel, right click to see the context menu
  • Select "Open Module Settings"
  • Select the Module that is not shown in the tree view
  • Select the first tab labeled "Sources"
  • Press the "+ Add Content Root" link
  • Select the root folder where the files for this module are located

Once the folder has been scanned, press the OK button and you will see the Module appear

Upvotes: 2

FrommFrankl
FrommFrankl

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

linjiejun
linjiejun

Reputation: 1678

Check if the FACETS panel is blank enter image description here

If it's blank .Then click the "+" button to add one.

For me .I need a android facet. enter image description here

For details.go to this link

Hope this is work for you.

Upvotes: 0

Tyler
Tyler

Reputation: 1891

This is way late, but deleting my .idea folder did the trick.

  1. Close IntelliJ
  2. cd <project-path>
  3. rm -rf .idea

Upvotes: 70

rogger2016
rogger2016

Reputation: 939

In Intellij, Right click on your parent pom file and click add as maven project

Upvotes: 16

Gabe Clark
Gabe Clark

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

James Oravec
James Oravec

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

dev
dev

Reputation: 536

You can go to File-> Project Structure and then define it as a Source Folder

Upvotes: 31

Related Questions