PhpStorm .idea In GIT Issues
In order to keep codestyles the same for every team member, our projects have PhpStorm config files as a part of GIT.
Conditions
VCS contains config files in .idea. Files list:
codeStyles/codeStyleConfig.xml
sqldialects.xml
inspectionProfiles/Project_defaults.xml
;
Problems
- The project root directory is shown empty;
- Indexation problems (the indexation process never finishes)
- Trees display errors (files are not shown in some directories, always "loading files...")
Workaround
If I delete the entire .idea
folder with the files in it and PhpStorm reinitializes the settings, everything seemingly works fine.
Have anyone else encountered something similar? What can you recommend?
Answer
Yes, that the known problem when .idea
folder is present and not empty but does not have minimal needed files (cannot say for sure, but I guess the IDE wants to see workspace.xml
and maybe *.iml
+ modules.xml
to avoid this issue).
https://youtrack.jetbrains.com/issue/IDEA-271728 -- watch this ticket (star/vote/comment) to get notified on the progress.
What can you recommend?
Sadly I've got nothing significant to suggest from my end. I simply do not face such problem (can easily manually workaround it if needed).
The only thing I may suggest is:
Make a new project without
.idea
folder in it.Once the project is created, close it in the IDE and overwrite those files (a simple copy-paste will do just fine).
Related Questions
- → Authenticate with a cookie using laravel 5.1 and jwt
- → Finding a specific GitLab tag from PHP
- → React: How to publish page on server using React-starter-kit
- → babel-loader, webpack, ES2015 modules: "Element type is invalid"
- → Create a function-attribute of a function, which is, in its turn, a method of an object literal
- → Model Validation in laravel 5.1 not working
- → GIT fatal: loose object
- → Laravel validation required rule not working
- → Axios array map callback
- → Where does this `webpack://` come from for `webpack-dev-middleware`?
- → error when trying to modify project in laravel forge
- → GitHub Pages and Jekyll content duplication and SEO issues
- → Use Laravel repositories with Datatables