-
-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Since using the plugin, I am getting a lot of orphaned networks and failed ddev start
s
#263
Comments
The ambiguous network problem is hopefully fixed in DDEV HEAD, would you be willing to try that? https://ddev.readthedocs.io/en/latest/developers/building-contributing/#testing-latest-commits-on-head We'll also have a DDEV pre-release and a release this week. This problem does seem to only happen to people using PhpStorm (or perhaps using this extension). /cc @stasadev |
For me it happens, when i open another PHPStorm Instance with another ddev project, which is not started. I end up with "web" and in my case "opensearch" in a stopped status and 5 or 6 networks with the same name. I tested this with the newest ddev version. Just some speculation here, but could it be that the Composer integration in PHPStorm is causing this issue? I think the Cli Interpreter is automatically set to ddev. If you start PHPStorm for a stopped ddev project, PHPStorm checks for new composer package updates, which causes the start of the ddev "web" container. If you have PHP Mess Detection or PHP Codesniffer set up in PHPStorm in your projects and open a php file it starts the "web" container of the ddev project, too. But in this case only with one network. If this is the intended behavior and if in any way possible, i would like to be able to disable this "automatic starting" in the plugin settings. |
@chrhas79 , thanks, you made a really good observation. I tested it, and when you have no running projects and you open a DDEV project in PhpStorm, nothing starts. And when you have one running DDEV project and open another stopped DDEV project in PhpStorm, it shows up as
When I uncheck the checkbox I got the same results after disabling the DDEV Integration plugin (the configurations for the remote CLI interpeter remained intact). It sees that another |
@nico-loeber , if this plugin installs the PHP interpreter, can it also disable the composer check for updates? Found this setting <component name="ComposerSettings" loadUpdateAvailability="false" synchronizationState="SYNCHRONIZE">
<pharConfigPath>$PROJECT_DIR$/composer.json</pharConfigPath>
<execution>
<interpreter name="DDEV" composer="composer" />
</execution>
</component> |
Hey @stasadev, The plugin is just doing the configuration work you would do manually when using ddev. In case there is no other solution the ddev documentation can be extended to disable this feature when setting up ddev with phpstorm and then the plugin might adapt this as well. Some settings are quite complicated to implement while others are easy. Didn't find an API for that setting yet. |
@nico-loeber, I agree, that's really not what this plugin is supposed to do. Also, as @chrhas79 mentioned, there are a lot of other things that can start the
The problem is that PhpStorm starts only the So the basic recommendation would be to always run |
Yes, ddev start does a lot of things. This is one of the problems of the plugin. For example the plugin "api" to ddev failes when ddev needs to download a new docker compose version and stuff like that. Sadly ddev is not just docker compose configuration manager but has its own infrastructure. |
Is there an existing issue for this?
Are you sure that this bug is related to this DDEV Integration Plugin?
Enter your error report ID (If available)
No response
Describe the bug
Since installing the plugin (which is super useful), I seem to be frequently encountering DDEV failing and leaving the project's network in place, resulting in me having to stop /
docker network prune
before I can resume.Example error:
It is usually seen at a similar time to the intellij plugin showing errors in syncing ddev state.
Steps to reproduce
Having a DDEV project running and IDE open. At some point it happens...
Additional context
No response
The text was updated successfully, but these errors were encountered: