Reputation: 3922
After I had installed PhpStorm and created a project from an existing source files, The project pane is not showing any file from the directory. So how can we solve the problem?
Upvotes: 54
Views: 33878
Reputation: 103
Invalidating the cache did not work for me. However in the file menu , there is an option named "Repair IDE". I clicked on this and went through the steps until it self repaired and started working correctly.
I am using version 2024.3.3
Upvotes: 0
Reputation: 314
For my version of Phpstorm the solution was to go to:
Upvotes: 3
Reputation: 438
The accepted answer did not work me. What worked for me was
File > Repair IDE...
And you'll be prompted in the lower right side corner with some alerts that have suggestions. Click on those until its fixed.
Upvotes: 17
Reputation: 2884
I tried the above solution and was not successful. The following, however did work.
When I opened the "new" project, everything was there including the Local History—thank the Gods!
Ref: PhpStorm version 2021.1.1 on Mac Catalina.
Upvotes: 1
Reputation: 984
I was able to resolve this in PhpStorm 2021.2.4 with the following steps:
rm -rf .idea
)Everything should be fine now.
Upvotes: 56
Reputation: 943
I fixed this by resetting my IDE default settings
File -> Manage IDE settings -> Restore default settings
Note that this will remove all your plugins and configurations
Upvotes: -3
Reputation: 1502
In case both above solutions do not work, try this following approach:
cd
to your projects .idea
Folder
Check if there is a file called project_name.iml
. If this is not the case create it and paste the following content to it
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$"></content>
</component>
</module>
Then check if there is a file called modules.xml
. If this is not the case create it and paste the following content to it (which targets to your previously created project_name.iml
)
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/project_name.iml" filepath="$PROJECT_DIR$/.idea/project_name.iml" />
</modules>
</component>
</project>
Restart PhpStorm
Upvotes: 106
Reputation: 71
Go to the menu File -> Settings -> Directories and then delete the current directory and add a new directory with the root of your project that worked for me.
Ingresas al menú File -> Settings -> Directories y luego eliminas el directorio actual y agregar un nuevo directorio con la raíz de tu proyecto eso funciono para mi.
Upvotes: 7
Reputation: 3922
After investigation on the issue, I got the solution as follow:
Here is the source
Upvotes: 78