PhpStorm removes source folders from project directories on close
My PhpStorm always tries to remove the source folders from the directories settings of my project. I have set them up like 10 times now and it gets really annoying. So if you know what could cause this it would be really nice if you could chip in! :)
Generally to me, it looks like PhpStorm is deleting the configuration from the .idea/workspace.xml and .idea/project-name.iml file when I open and/or close it.
Thank you!
Please sign in to leave a comment.
Hi there,
You must have selected to sync these settings with composer.json -- it will read Source and Test folders from that file on project opening.
Either configure them in composer.json .. or disable such sync.
Thank you, this did the trick! :)
This trick not worked in PhpStorm version 2024.2.3
It's frustrated…. Composer remove all my custom directories.
Hello Php Tux,
This thread is quite old. Could you please submit a request via PhpStorm's Help | Contact Support menu or on YouTrack, and share the details of the issue you've faced along with the logs from Help | Collect Logs and Diagnostic Data.