Folders missing in project pane in Webstorm

后端 未结 9 525
感情败类
感情败类 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:22

    I ran into the same issue and resolved it by invalidating the cache. The option is under File > Invalidate Caches/Restart. On the prompt click Invalidate and restart.

    Note: The project in concern needs to be open before you do this.

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

    Find the .idea/modules.xml in your project root make sure that these lines are correct :

    <modules>
      <module fileurl="file://$PROJECT_DIR$/.idea/NameOfYourProject.iml" filepath="$PROJECT_DIR$/.idea/NameOfYourProject.iml" />
    </modules>
    

    Replace NameOfYourProject.iml with the name of your project.

    Then, make sure that the file .idea/NameOfYourProject.iml exists, if not , create it and put this in it :

    <?xml version="1.0" encoding="UTF-8"?>
    <module type="WEB_MODULE" version="4">
      <component name="NewModuleRootManager">
        <content url="file://$MODULE_DIR$" />
        <orderEntry type="inheritedJdk" />
        <orderEntry type="sourceFolder" forTests="false" />
        <orderEntry type="module-library">
          <library name="PHP">
            <CLASSES>
              <root url="file://$MODULE_DIR$/../../php/PEAR" />
            </CLASSES>
            <SOURCES />
          </library>
        </orderEntry>
      </component>
    </module>
    
    0 讨论(0)
  • 2021-01-31 14:29

    Try deleting workspace.xml and watchertask.xml then just restart the IDE. You must see your full source code in all folders there.

    0 讨论(0)
提交回复
热议问题