Description
Issue
When you install this plugin for the first time and have the project already opened inside PhpStorm, settings like CLI interpreter are not changed automatically.
This is not obvious to beginners, and I want us to explore if there is a way to improve this.
Steps to reproduce
- Open a DDEV project in PhpStorm.
- Uninstall DDEV integration plugin and close PhpStorm.
- Delete the
.idea
folder from the project root. - Open the project in PhpStorm again, go to Settings > PHP, see the CLI Interpreter settings:
- Install DDEV integration plugin
- Go to Settings > PHP, see the CLI Interpreter settings (the new interpreter has been added but not selected):
- Close PhpStorm, delete the
.idea
folder in the project root. - Open the project in PhpStorm again, check the Settings, new setup is ready without any manual changes:
Suggestion
It looks like the plugin applies its settings only when a project is opened for the first time. For new users, it can be confusing that existing projects already opened in PhpStorm get the new configuration but aren't updated automatically after the plugin is installed.
It's good that the plugin avoids changing existing configurations, but this isn't obvious to users right after installation. You'd typically expect it to not only add new config but also apply it immediately.
If there's a way to detect and trigger initial setup for already opened projects, it would be useful to immediately apply settings like PHP CLI and Node interpreter.
Alternative
After installing the plugin, delete the .idea
project folder to let the plugin to run its first-time setup logic.
I'm adding a tip about this in:
If this can't be done, feel free to close the issue.