Folders are missing from the project panel in Webstorm

I created a project in WebStorm and then posted the project to GitHub.

When I rebooted the computer and restarted WebStorm (and the project), all I see in the project panel are the root files and none of the folders (yes, there are folders there)

See the image below for reference.

Does anyone know how I can make these folders reappear in the Webstorm project panel?

enter image description here

+47
ide webstorm
Feb 15 '12 at 22:16
source share
7 answers

This may be caused by a damaged .idea/modules.xml project file. You can either try to fix it manually (restore from local history, version control or backup), or create a new project from scratch.

Check this issue for hints / workarounds.

+67
Feb 15 '12 at 22:29
source share

Sometimes this happens in WebStorm 9. The easiest way to fix this for me is:

  • close WebStorm;
  • in the project folder remove.idea / (hidden directory);
  • open your project, enjoy :)
+50
Jan 08 '15 at 14:52
source share

Locate the .idea / modules.xml file in the root of your project, make sure 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 .idea / NameOfYourProject.iml file exists, if not, create it and put 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> 
+6
Mar 21 2018-12-21T00:
source share

I see this from time to time. I am using Git and I have a .gitignore file configured as recommended , in particular:

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

I sometimes see this after cloning the repository, and, trying to understand why, I came across this message and read the accepted answer.

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

Thus, it looks like damage in the .iml file, not the modules.xml . I assume that removing modules.xml will cause the recovery of the .iml file. Not sure if this will help anyone, but I thought I was offering additional information.

+2
Oct 19 '16 at 19:55
source share

floor 36 solves my problem. in webstrorm 11

This happens sometimes in WebStorm 9. The easiest way to fix this for me is:

  • close WebStorm;
  • in the project folder remove.idea / (hidden directory);
  • open your project, enjoy :)
+1
Mar 24 '17 at 7:10
source share

I ran into the same problem and resolved it by invalidating the cache. This option is located under File> Invalid Cache / Restart. At the command prompt, click "Invalid" and restart.

Note. Before you do this, the project must be open.

+1
May 8 '17 at 14:07
source share

You do not need to delete the entire .idea folder and reconfigure the entire project, just

  • remove .idea / modules.xml
  • restart the IDE and your folders will appear again!
+1
Jun 08 '17 at 13:15
source share



All Articles