Search code examples
javaintellij-ideaintellij-14

where are my source files in IntelliJ project?


I am facing problems in opening an existing IntelliJ project present on my hard-disk, and connected to a Git repository. When I try opening my project, I only see the data files (that I added manually) in the project structure. I am unable to find the .idea, lib and src folders within my project in the project structure; these files are available on the hard disk at the required locations (auto-generated). Also, I am able to open other IntelliJ projects present in the same root directory properly.

Any idea on how can I can successfully re-open this particular project again?


Solution

  • Looks like your project does not contain any modules, and therefore the Project view only shows the immediate contents of the project directory. If you can see .iml files in that directory, you can add them to the project by right-clicking them and selecting the corresponding option in the menu. If not, you'll need to go to the Project Structure dialog and configure the modules manually.