Problem/Motivation
When install new version 2.1.6 and use the command vendor/bin/drush config:inspect --filter-keys=olivero.settings --detail --list-constraints
y get this error:
โ ๐ค Analyzingโฆ
Error: Class "Drupal\config_inspector\Commands\Yaml" not found in /var/www/html/modules/contrib/config_inspector/src/Commands/InspectorCommands.php on line 365 #0 [internal function]: Drupal\config_inspector\Commands\InspectorCommands::Drupal\config_inspector\Commands\{closure}('ValidKeys', '<infer>')
#1 /var/www/html/modules/contrib/config_inspector/src/Commands/InspectorCommands.php(364): array_map(Object(Closure), Array, Array)
#2 /var/www/html/modules/contrib/config_inspector/src/Commands/InspectorCommands.php(219): Drupal\config_inspector\Commands\InspectorCommands::getPrintableConstraints(Object(Drupal\config_inspector\ConfigSchemaValidatability), 'olivero.setting...')
#3 [internal function]: Drupal\config_inspector\Commands\InspectorCommands->inspect('olivero.setting...', Array)
#4 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(276): call_user_func_array(Array, Array)
#5 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
#6 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(175): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#7 /var/www/html/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(387): Consolidation\AnnotatedCommand\CommandProcessor->process(Object(Symfony\Component\Console\Output\ConsoleOutput), Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#8 /var/www/html/vendor/symfony/console/Command/Command.php(326): Consolidation\AnnotatedCommand\AnnotatedCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#9 /var/www/html/vendor/symfony/console/Application.php(1081): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 /var/www/html/vendor/symfony/console/Application.php(320): Symfony\Component\Console\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 /var/www/html/vendor/symfony/console/Application.php(174): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 /var/www/html/vendor/drush/drush/src/Runtime/Runtime.php(110): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#13 /var/www/html/vendor/drush/drush/src/Runtime/Runtime.php(40): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
#14 /var/www/html/vendor/drush/drush/drush.php(139): Drush\Runtime\Runtime->run(Array)
#15 /var/www/html/vendor/drush/drush/drush(4): require('/var/www/html/v...')
#16 /var/www/html/vendor/bin/drush(120): include('/var/www/html/v...')
#17 {main}
Error: Class "Drupal\config_inspector\Commands\Yaml" not found in Drupal\config_inspector\Commands\InspectorCommands::Drupal\config_inspector\Commands\{closure}() (line 365 of /var/www/html/modules/contrib/config_inspector/src/Commands/InspectorCommands.php).
[warning] Drush command terminated abnormally.
Failed to execute command vendor/bin/drush config:inspect --filter-keys=olivero.settings --detail --list-constraints: exit status 1
Steps to reproduce
- Get a local git clone of Drupal core
11.x
.
composer require drupal/config_inspector:^2.1.6
composer require drush/drush
vendor/bin/drush config:inspect --filter-keys=olivero.settings --detail --list-constraints
With these steps it fails, if you come back to 2.1.5 version it works.
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes