Project view not showing directories

Somehow the Project view is not showing the directories for my Project?  It's as though it's treating the build.xml as the 'root' of the project and I'm not able to browse directories as I usually can.  I've tried invalidating the caches and restarting, no help.  Problem is not present for any of my other projects.



Attachment(s):
Screen shot 2011-12-20 at 11.22.52.png
8

Vireyes14 Thanks. This is the solution which worked for me.

0

What worked for me:

1. Close project

2. Then delete whole .idea directory

3. Open project again

Now Webstorm shows me file in Project correctly. Thanks everyone for help! 

1

I can see the folders in "Project Files" as opposed to "Project", thanks @... !

I do not want to delete my ".idea" directory, simply closing-opening the project did not help.

For me, this started when I renamed my projects: right-click on the project root folder => Refactor => Rename => Rename project. I was very glad I can see custom names in the window titles, as the directory names may be too generic, but the next day comes, and all the directories are gone now... :(

0

File -> Settings

"Project Structure" under Project

On the right hand side you will see all your projects

Now select the hidden project, then "Add Content Root"

Select the root folder of your project

Save

All projects should now appear properly

1

I had a browse around settings when this happens. Most frequently it happens when I load the same project up in different jetbrains tools (pycharm, clion, intellij etc) which is common for me as I do a lot of mixed work on the same repo.

I noticed that when my files vanish from the "Project" view that it appears the IDE thinks the project has no root folders.

If I go into the Settings -> Project -> Project Structure dialog, sure enough there are no roots.  If I set my root folder back up as normal things start working again.

Looking at the files that change between having no root and adding it back.  The project ".iml" file has one difference:

<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="jdk" jdkName="Python 3.8 (nsbt)" jdkType="Python SDK" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

Broken projects seem to be missing the `<content url="file://$MODULE_DIR$" />` element from <component>

1

I suppose, it's File -> Settings -> Directories for PhpStorm.

Thanks, I'll check it next time when the problem happens.

0

In WebStorm on Mac, I could open:

File > Repair IDE

This opened a bubble with a wizard which tried a few things and on the third step it fixed my issue.

0

What worked for me (Webstorm 2021.3.1):
File --> Repair IDE --> Reindex files --> Reopen project

0

What worked for me was deleting then cloning my repo again. Deleting the '.idea' was not an option for me as I needed some of the shared configuration. What was strange as I tried to resolve that issue was that a default 'main.py' file was added to my workspace whenever I tried to open my project. really had no idea where it was coming from.

0

I closed the project from the "File" menu, then delete the .idea/ folder from command line and then open the project again.

0

File -> Repair IDE

It works for me

0

What worked for me after deleting .idea did not work was running the “Repair IDE” action from the Actions menu. Afterwards, all files reappeared :)

0

请先登录再写评论。