Open
Description
This is a follow-up issue to #12 with version 10.0.0 and I'm using the following components:
- Composer 2.7.0
- PHP 8.2.13
- Drush 12.4.3.0
When I run Drush, I only get the following output, no further stacktrace:
$> vendor/bin/drush --debug
[preflight] Config paths: /drupal/vendor/drush/drush/drush.yml,/drupal/drush/drush.yml
[preflight] Alias paths: /drupal/web/drush/sites,/drupal/drush/sites
[preflight] Commandfile search paths: /drupal/vendor/drush/drush/src,/drupal/drush
[preflight] Class "Drush\Commands\drupal_code_builder_drush\Drush\Commands\CodeBuilderDevDrushCommands" does not exist
[warning] Drush command terminated abnormally. [0.7 sec, 9.69 MB]
In vendor/composer/autoload_psr4.php
there is this line:
'DrupalCodeBuilder\\' => array($vendorDir . '/drupal-code-builder/drupal-code-builder'),
'DrupalCodeBuilderDrush\\' => array($baseDir . '/drush/Commands/drupal-code-builder-drush'),
And the file drush/Commands/drupal-code-builder-drush/Drush/Commands/CodeBuilderDevDrushCommands.php
does exist.
When I remove that file, the error message is the same, but for the CodeBuilderDrushCommands
class.
What's strange, the namespace in the file is declared different from what Drush seems to be looking for:
DrupalCodeBuilderDrush\Drush\Commands
= namespace in fileDrush\Commands\drupal_code_builder_drush\Drush\Commands
= namespace that Drush wants to load
So, instead of DrupalCodeBuilderDrush
, the prefix is more like Drush\Commands\drupal_code_builder_drush
.
Not sure what else I could test.
Metadata
Metadata
Assignees
Labels
No labels