Skip to content

Improve the first time setup configuration #442

Open
@stasadev

Description

@stasadev

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

  1. Open a DDEV project in PhpStorm.
  2. Uninstall DDEV integration plugin and close PhpStorm.
  3. Delete the .idea folder from the project root.
  4. Open the project in PhpStorm again, go to Settings > PHP, see the CLI Interpreter settings:
    Image
  5. Install DDEV integration plugin
  6. Go to Settings > PHP, see the CLI Interpreter settings (the new interpreter has been added but not selected):
    Image
  7. Close PhpStorm, delete the .idea folder in the project root.
  8. Open the project in PhpStorm again, check the Settings, new setup is ready without any manual changes:
    Image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions