IntelliJ does not show project folders

后端 未结 30 2271
孤独总比滥情好
孤独总比滥情好 2020-12-07 07:37

I have an issue with IntelliJ. It doesn\'t show any folders in my project view on the left. My setting is \"View As: Project\" How can I manage it so that the folders and p

相关标签:
30条回答
  • 2020-12-07 07:37

    Adding this answer for completeness. I was using 15.0.6 and had this problem. I trued to import a module from Maven or Gradle an it went through the process, but the module did not appear. I tried deleting the .idea file and restarting. Uninstalling and installing the latest version (community 2016.2) addressed the problem.

    0 讨论(0)
  • 2020-12-07 07:37

    If you're trying to open a scala/sbt project, the sbt version set in /project/build.properties must match the sbt version installed on your system or intellij won't detect your project's modules properly.

    Once that's done, you can just delete the idea folder and restart as the other answers suggest.

    0 讨论(0)
  • 2020-12-07 07:38

    I faced same issue when i deleted the .idea folder.

    However, when I tried to invalidate and re-start, the .idea folder got created again but still the folders were not showing up.

    I had to 1.close IntelliJ, 2.delete the .idea folder, 3.launch IntelliJ

    This fixed the issue.

    0 讨论(0)
  • 2020-12-07 07:40

    OS:Mac && IDE: IntelliJ && Project: Maven build

    1. Navigate to File>Project Structure>Modules.
    2. In right-hand area; list of modules would be present.
    3. Delete the default one selected and close IntelliJ.
    4. Next Open again; IntelliJ will ask if you want to treat the project as Maven project.
    5. Accept that popup and you are good to go.
    0 讨论(0)
  • 2020-12-07 07:40

    When importing your project/module be sure to check these two boxes:

    0 讨论(0)
  • 2020-12-07 07:41

    So after asking another question, someone helped me figure out that under File > Project Structure > Modules, there's supposed to be stuff there. If it's empty (says "Nothing to show"), do the following:

    1. In File > Project Structure > Modules, click the "+" button,
    2. Press Enter (because weirdly it won't let me click on "New Module")
    3. In the window that pops up, click on the "..." next button which takes you to the Content root. Find your root folder and select it
    4. Click the "ok" button
    5. Ignore any warning that says the name is already in use
    0 讨论(0)
提交回复
热议问题