Closed JPustkuchen closed 2 years ago
Couldn't recreate this. Are you using the newest docker and ddev version? Have you tried restarting docker after you pulled the repository?
I just freshly installed ddev, updated docker, cloned this repository and executed "ddev drowl-init" inside the cloned repository on my home computer and it worked like a charm!
Really strange issue, after updating Docker desktop I now get:
Failed to start project for custom command: project ddev-vscode-devcontainer-drupal9-template project root is already set to /home/jpustkuchen/ddev/test-ddev, refusing to change it to /home/jpustkuchen/ddev/drowl_paragraphs_container2layout; you can
ddev stop --unlist ddev-vscode-devcontainer-drupal9-template
and start again if the listed project root is in error
So docker state indeed seems to be part of the problem. I guess we should create an issue like "ddev custom commands not registered without error" or similar as follow-up upstream.
I think ddev should detect that the environment is not okay instead of simply not listing the command...
I'll investigate further.
Ah, I see, the problem before indeed was the not running docker desktop (or old version). Now, the issue is, that the ddev project name is already in use. :)
There was a similar upstream issue at ddev. I added our information there and linked this issue. So this can indeed be closed. https://github.com/drud/ddev/issues/3336
Perfect! The Error with the already existing project root happens, when you already cloned the repository before. Therefore I created the 'ddev rename' command, so you can have multiple ddev-vscode-devcontainer instances, but it still isn't fully implemented, so even if you have used it it will still throw that error, see: https://github.com/webksde/ddev-vscode-devcontainer-drupal9-template/issues/29 🍯
@thomasfrobieter just had the same issue. Did a Docker Desktop (re)start solve it?
Haven't tried, i've just fired ddev start, ddev drowl-init worked afterwards.
Yea, Docker Desktop seems to be a bit buggy regarding this. I'm going to mention it in the README.
Took the steps from: https://github.com/webksde/ddev-vscode-devcontainer-drupal9-template#how-to-use
changed into the directory with the .ddev folder, tried to run
ddev drowl-init
orddev drowl-init-from-existing
but both are unknown and return:
running
ddev
also doesn't thow the drowl-init or drowl-init-from-existing commant.ddev version: