IntelliJ does not show project folders

后端 未结 30 2299
孤独总比滥情好
孤独总比滥情好 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:47

    I have deleted the .idea folder. Closed ItelliJ and restarted to open the same project.

    It asked to add the content root. That worked for me.

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

    I encountered this problem when the .idea folder was accidentally added to SVN version control. When I took an update --- blooey! I subsequently removed the .idea folder from version control.

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

    I tried all the solutions above, nothing worked.


    Java-Maven project

    My problem: In my case i had java-maven project. And the problem was that Idea by default uses it's bundled maven for projects(or anyone you trying to open). I noticed that bundled maven keeps downloading dependencies forever, i.e you never see your sources folder.

    Solution: So to configure that, one needs to configure Idea to use maven(mvn) which is installed on the machine for all projects by default. To do that, in the beginning when Idea still did not open any projects...there is a configure button. There chose build tools. Then maven, there you will see dropdown list where you can choose local maven. In short: Configure/Build Tools/Maven/DropdownMenu (My OS: linux branch)

    Hope that helps

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

    I had this issue as well. It is something do with .idea just delete it and restart IntelliJ

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

    I went to File -> Project Structure -> Modules clicked on + and then import module found my root folder and selected it.

    It worked.

    For IntelliJ 14

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

    As I had the same issue and none of the above worked for me, this is what I did! I know it is a grumpy solution but at least it finally worked! I am not sure why only this method worked. It should be some weird cache in my PC?

    1. I did close IntelliJ
    2. I did completely remove the .idea folder from my project
    3. I did move the folder demo-project to demo-project-temp
    4. I did create a new empty folder demo-project
    5. I did open this empty folder with intelliJ
    6. I did move all the content demo-project-temp. Don't forget to also move the hidden files
    7. Press right click "Synchronize" to your project
    8. You should see all the files and folders now!
    9. Now you can also safely remove the folder demo-project-temp. If you are on linux or MAC do it with rmdir demo-project-temp just to make sure that your folder is empty
    0 讨论(0)
提交回复
热议问题