Problem/Motivation
Steps to reproduce
I installed ratatouille & required module default_content
I enabled ratatouilee
ddev composer require 'drupal/ratatouille:^1.0@alpha' 'drupal/default_content:^2.0@alpha' ; ddev drush en ratatouille
I initially got the error noted in issue https://www.drupal.org/project/ratatouille/issues/3548285
I then applied the patch from MR !2 that apparently cleared that error but now I get a different error.
$ ddev drush ratatouille:cook -vvv
[preflight] Config paths: /var/www/html/vendor/drush/drush/drush.yml
[preflight] Alias paths: /var/www/html/web/drush/sites,/var/www/html/drush/sites
[preflight] Commandfile search paths: /var/www/html/vendor/drush/drush/src
[debug] Bootstrap further to find ratatouille:cook [0.32 sec, 2.71 MB]
[debug] Trying to bootstrap as far as we can [0.32 sec, 2.71 MB]
[info] Drush bootstrap phase: bootstrapDrupalRoot() [0.32 sec, 2.71 MB]
[info] Change working directory to /var/www/html/web [0.32 sec, 2.71 MB]
[info] Initialized Drupal 11.2.4 root directory at /var/www/html/web [0.32 sec, 2.71 MB]
[info] Drush bootstrap phase: bootstrapDrupalSite() [0.33 sec, 2.85 MB]
[debug] Could not find a Drush config file at sites/default/drush.yml. [0.33 sec, 2.85 MB]
[info] Initialized Drupal site test-250908-1.ddev.site at sites/default [0.33 sec, 2.85 MB]
[info] Drush bootstrap phase: bootstrapDrupalConfiguration() [0.33 sec, 2.85 MB]
[info] Drush bootstrap phase: bootstrapDrupalDatabase() [0.34 sec, 3.13 MB]
[info] Successfully connected to the Drupal database. [0.34 sec, 3.13 MB]
[info] Drush bootstrap phase: bootstrapDrupalFull() [0.34 sec, 3.14 MB]
[debug] Start bootstrap of the Drupal Kernel. [0.34 sec, 3.13 MB]
[debug] Finished bootstrap of the Drupal Kernel. [0.41 sec, 8.3 MB]
[debug] Loading drupal module drush commands & etc. [0.41 sec, 8.3 MB]
[debug] Found drush.services.yml for token Drush commands [0.41 sec, 8.38 MB]
[debug] Add a commandfile class: Drupal\default_content\Commands\DefaultContentCommands [0.46 sec, 10.25 MB]
[debug] Add a commandfile class: Drupal\easy_email\Drush\Commands\PurgeCommands [0.47 sec, 10.27 MB]
[debug] Add a commandfile class: Drupal\ratatouille\Commands\RecipeGeneratorCommands [0.47 sec, 10.27 MB]
[debug] Add a commandfile class: Drupal\scheduler\Commands\SchedulerCommands [0.47 sec, 10.28 MB]
[debug] Add a commandfile class: Drupal\smart_date\Commands\SmartDateDrushCommands [0.47 sec, 10.28 MB]
[debug] Add a commandfile class: Drupal\token\Drush\Commands\TokenCommands [0.47 sec, 10.29 MB]
[debug] Add a commandfile class: Drupal\pathauto\Commands\PathautoCommands [0.47 sec, 10.29 MB]
[debug] Done with bootstrap max in Application::bootstrapAndFind(): trying to find ratatouille:cook again. [0.55 sec, 13.43 MB]
[info] Starting bootstrap to none [0.55 sec, 13.52 MB]
[info] Drush bootstrap phase 0 [0.55 sec, 13.52 MB]
[info] Try to validate bootstrap phase 0 [0.55 sec, 13.52 MB]
Drupal Recipe Generator
=======================
[error] AssertionError: The $validator parameter is non-functional. Use $validate instead. in assert() (line 63 of /var/www/html/vendor/drush/drush/src-symfony-compatibility/v6/Style/DrushStyle.php) #0 /var/www/html/vendor/drush/drush/src-symfony-compatibility/v6/Style/DrushStyle.php(63): assert()
#1 /var/www/html/web/modules/contrib/ratatouille/src/Commands/RecipeGeneratorCommands.php(532): Drush\Style\DrushStyle->ask()
#2 /var/www/html/web/modules/contrib/ratatouille/src/Commands/RecipeGeneratorCommands.php(195): Drupal\ratatouille\Commands\RecipeGeneratorCommands->askMachineName()
#3 [internal function]: Drupal\ratatouille\Commands\RecipeGeneratorCommands->generate()
#4 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(276): call_user_func_array()
#5 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback()
#6 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(175): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter()
#7 /var/www/html/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(387): Consolidation\AnnotatedCommand\CommandProcessor->process()
#8 /var/www/html/vendor/symfony/console/Command/Command.php(318): Consolidation\AnnotatedCommand\AnnotatedCommand->execute()
#9 /var/www/html/vendor/symfony/console/Application.php(1110): Symfony\Component\Console\Command\Command->run()
#10 /var/www/html/vendor/symfony/console/Application.php(359): Symfony\Component\Console\Application->doRunCommand()
#11 /var/www/html/vendor/symfony/console/Application.php(194): Symfony\Component\Console\Application->doRun()
#12 /var/www/html/vendor/drush/drush/src/Runtime/Runtime.php(110): Symfony\Component\Console\Application->run()
#13 /var/www/html/vendor/drush/drush/src/Runtime/Runtime.php(40): Drush\Runtime\Runtime->doRun()
#14 /var/www/html/vendor/drush/drush/drush.php(140): Drush\Runtime\Runtime->run()
#15 /var/www/html/vendor/bin/drush.php(119): include('...')
#16 {main}. [0.56 sec, 13.81 MB]
I'm system make-up
ddev version v1.24.8
Drupal core 11.2.4
Drush version 13.6.2.0
php version 8.3.25
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork ratatouille-3548800
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
mlncn commentedExact same experience here.
Comment #3
dcimorraThis occurs because the module was developed to work correctly with drush ^12, and is not supported by drush ^13.
I will try to work on a solution in the coming days.
Comment #4
dcimorraComment #7
aurora-norris commentedI've added the changes I needed to get this module working on drupal 13.6 locally.
Comment #8
adrianm6254 commentedI just tried applying the patch and it seems to be working.
Thanks
Comment #9
dcimorraThat was incredible.
I checked it out and the problem has been solved. Thank you very much for your contribution.
Comment #10
dcimorraComment #12
dcimorra