Folders missing in project pane in Webstorm

后端 未结 9 524
感情败类
感情败类 2021-01-31 13:28

I\'ve built a project in WebStorm and then submitted the project to GitHub.

When I rebooted the computer and relaunched WebStorm (and the project), all I can see in the

相关标签:
9条回答
  • 2021-01-31 14:04

    I see this from time to time. I use Git, and I have my .gitignore file set up as recommended, specifically:

    .idea/workspace.xml
    .idea/tasks.xml
    .idea/*.iml
    

    I sometimes see this after cloning the repository, and when trying to figure out why, I came across this post and read the accepted answer.

    I deleted the modules.xml file and reopened WebStorm (2016.2.4), and it was resolved. I looked at the new modules.xml and found that its contents were exactly the same as before, but my <projectName>.iml file was bigger.

    So it seems to be a corruption in the .iml file, not modules.xml. I assume that deleting modules.xml triggers a rebuild of the .iml file. Not sure if this helps anyone with anything, but thought I would offer the extra insight.

    0 讨论(0)
  • 2021-01-31 14:07

    floor 36 solve my problem. in WebStrorm 11

    It happens sometimes in WebStorm 9. The easiest way to fix it for me:

    1. close WebStorm;
    2. in project's folder remove .idea/ (hidden directory);
    3. open your project, enjoy:)
    0 讨论(0)
  • 2021-01-31 14:09

    It happens sometimes in WebStorm 9. The easiest way to fix it for me:

    1. close WebStorm;
    2. in project's folder remove .idea/ (hidden directory);
    3. open your project, enjoy:)
    0 讨论(0)
  • 2021-01-31 14:12

    Finally I found the culprit, it was Team Foundation Server - Version Control Integration plugin from https://plugins.jetbrains.com/plugin/7961-team-foundation-server--version-control-integration/

    I looked at the system/log/idea.log file and found that this plugin was producing Null exception whenever I open a new folder as a new project and breaks the content root auto detection by the IDE, and after I uninstalled this plugin, all folders show up as it should.

    You might have this issue because of a culprit plugin, and disabling those which you have just installed recently just before this issue occurs, will resolve the issue. Check the log file and search for ERROR.

    If it is found to be an important plugin you are actively using which you are not willing to disable, then a temporary fix is to open Settings->Directories and click Add content root button to add the root folder of your project, click Ok now folders will show up and indexing will begin, and of course you have to do this everytime you open a new folder as new project.

    0 讨论(0)
  • 2021-01-31 14:20

    It can be caused by the corrupted .idea/modules.xml project file. You can either try to fix it manually (restore from Local History, version control or backup) or create the new project from scratch.

    Check this issue for the hints/workarounds.

    0 讨论(0)
  • 2021-01-31 14:20

    You do not need to delete whole .idea folder and reconfigure your whole project, just

    1. delete the .idea/modules.xml
    2. restart the IDE and your folders are there again!
    0 讨论(0)
提交回复
热议问题