Skip to content

Incompatible with amateescu/ddev-drupal-dev, command aliases are too general #70

Closed

Description

@goba

I'm using https://github.com/amateescu/ddev-drupal-dev for all the useful commands it has for managing contrib modules, core branches, etc. They fight for the same aliases :) Are the xb specific commands generally useful for all of contrib or should I have a dedicated Canvas dev environment rather than trying to manage it with a higher level tool like https://github.com/amateescu/ddev-drupal-dev?

Command 'xb-cspell' cannot have alias 'cspell' that is already in use by command 'cspell', skipping alias for /Users/gabor.hojtsy/Drupal/d12/.ddev/commands/web/xb-cspell
Command 'xb-phpcs' cannot have alias 'phpcs' that is already in use by command 'phpcs', skipping alias for /Users/gabor.hojtsy/Drupal/d12/.ddev/commands/web/xb-phpcs
Command 'xb-phpstan' cannot have alias 'phpstan' that is already in use by command 'phpstan', skipping alias for /Users/gabor.hojtsy/Drupal/d12/.ddev/commands/web/xb-phpstan
Command 'xb-phpunit' cannot have alias 'phpunit' that is already in use by command 'phpunit', skipping alias for /Users/gabor.hojtsy/Drupal/d12/.ddev/commands/web/xb-phpunit

Activity

  1. goba commented on Aug 18, 2026

    @goba
    ContributorAuthor

    One would think this is just a warning, but it shows up a LOT when running xb- commands, 24 times when running xb-setup:

    gabor.hojtsy@MacBook-Pro-GaborHojtsy dashboard % ddev xb-setup
    Command 'xb-cspell' cannot have alias 'cspell' that is already in use by command 'cspell', skipping alias for /Users/gabor.hojtsy/Drupal/d12/.ddev/commands/web/xb-cspell
    Command 'xb-phpcs' cannot have alias 'phpcs' that is already in use by command 'phpcs', skipping alias for /Users/gabor.hojtsy/Drupal/d12/.ddev/commands/web/xb-phpcs
    Command 'xb-phpstan' cannot have alias 'phpstan' that is already in use by command 'phpstan', skipping alias for /Users/gabor.hojtsy/Drupal/d12/.ddev/commands/web/xb-phpstan
    Command 'xb-phpunit' cannot have alias 'phpunit' that is already in use by command 'phpunit', skipping alias for /Users/gabor.hojtsy/Drupal/d12/.ddev/commands/web/xb-phpunit
    Cloning into 'web/modules/contrib/canvas'...
    remote: Enumerating objects: 52330, done.
    remote: Counting objects: 100% (1423/1423), done.
    remote: Compressing objects: 100% (723/723), done.
    remote: Total 52330 (delta 681), reused 1295 (delta 661), pack-reused 50907 (from 1)
    Receiving objects: 100% (52330/52330), 78.71 MiB | 8.11 MiB/s, done.
    Resolving deltas: 100% (36782/36782), done.
    Command 'xb-cspell' cannot have alias 'cspell' that is already in use by command 'cspell', skipping alias for /Users/gabor.hojtsy/Drupal/d12/.ddev/commands/web/xb-cspell
    Command 'xb-phpcs' cannot have alias 'phpcs' that is already in use by command 'phpcs', skipping alias for /Users/gabor.hojtsy/Drupal/d12/.ddev/commands/web/xb-phpcs
    Command 'xb-phpstan' cannot have alias 'phpstan' that is already in use by command 'phpstan', skipping alias for /Users/gabor.hojtsy/Drupal/d12/.ddev/commands/web/xb-phpstan
    Command 'xb-phpunit' cannot have alias 'phpunit' that is already in use by command 'phpunit', skipping alias for /Users/gabor.hojtsy/Drupal/d12/.ddev/commands/web/xb-phpunit
    Command 'xb-cspell' cannot have alias 'cspell' that is already in use by command 'cspell', skipping alias for /Users/gabor.hojtsy/Drupal/d12/.ddev/commands/web/xb-cspell
    Command 'xb-phpcs' cannot have alias 'phpcs' that is already in use by command 'phpcs', skipping alias for /Users/gabor.hojtsy/Drupal/d12/.ddev/commands/web/xb-phpcs
    Command 'xb-phpstan' cannot have alias 'phpstan' that is already in use by command 'phpstan', skipping alias for /Users/gabor.hojtsy/Drupal/d12/.ddev/commands/web/xb-phpstan
    Command 'xb-phpunit' cannot have alias 'phpunit' that is already in use by command 'phpunit', skipping alias for /Users/gabor.hojtsy/Drupal/d12/.ddev/commands/web/xb-phpunit
    composer.local.json has been updated
    Running composer update drush/drush --with-all-dependencies
    > Drupal\Composer\Composer::ensureComposerVersion
    Loading composer repositories with package information
    Updating dependencies
    Lock file operations: 4 installs, 5 updates, 0 removals
      - Downgrading chi-teck/drupal-code-generator (4.x-dev ee02eb9 => 4.2.0)
      - Locking consolidation/robo (5.1.1)
      - Downgrading drush/drush (14.x-dev 92fa219 => 13.7.6)
      - Downgrading grasmash/yaml-cli (4.x-dev 417a0e5 => 3.2.1)
      - Upgrading laravel/prompts (v0.3.22 => v0.3.23)
      - Locking phootwork/collection (v3.2.3)
      - Locking phootwork/lang (v3.2.3)
      - Locking phpowermove/docblock (v4.0)
      - Downgrading symfony/string (v8.1.2 => v7.4.15)
    Writing lock file
    4 package suggestions were added by new dependencies, use `composer suggest` to see details.
    95 packages you are using are looking for funding.
    Use the `composer fund` command to find out more!
    Cleaning installed packages.
    phpstan/extension-installer: Extensions installed
    > Drupal\Composer\Composer::generateMetapackages
    > Drupal\Composer\Composer::generateComponentPackages
    No security vulnerability advisories found.
    Using version ^13.7 for drush/drush
    Command 'xb-cspell' cannot have alias 'cspell' that is already in use by command 'cspell', skipping alias for /Users/gabor.hojtsy/Drupal/d12/.ddev/commands/web/xb-cspell
    Command 'xb-phpcs' cannot have alias 'phpcs' that is already in use by command 'phpcs', skipping alias for /Users/gabor.hojtsy/Drupal/d12/.ddev/commands/web/xb-phpcs
    Command 'xb-phpstan' cannot have alias 'phpstan' that is already in use by command 'phpstan', skipping alias for /Users/gabor.hojtsy/Drupal/d12/.ddev/commands/web/xb-phpstan
    Command 'xb-phpunit' cannot have alias 'phpunit' that is already in use by command 'phpunit', skipping alias for /Users/gabor.hojtsy/Drupal/d12/.ddev/commands/web/xb-phpunit
    Command 'xb-cspell' cannot have alias 'cspell' that is already in use by command 'cspell', skipping alias for /Users/gabor.hojtsy/Drupal/d12/.ddev/commands/web/xb-cspell
    Command 'xb-phpcs' cannot have alias 'phpcs' that is already in use by command 'phpcs', skipping alias for /Users/gabor.hojtsy/Drupal/d12/.ddev/commands/web/xb-phpcs
    Command 'xb-phpstan' cannot have alias 'phpstan' that is already in use by command 'phpstan', skipping alias for /Users/gabor.hojtsy/Drupal/d12/.ddev/commands/web/xb-phpstan
    Command 'xb-phpunit' cannot have alias 'phpunit' that is already in use by command 'phpunit', skipping alias for /Users/gabor.hojtsy/Drupal/d12/.ddev/commands/web/xb-phpunit
    composer.local.json has been updated
    Running composer update drupal/canvas --with-all-dependencies
    > Drupal\Composer\Composer::ensureComposerVersion
    Loading composer repositories with package information
    Updating dependencies
    Lock file operations: 0 installs, 1 update, 0 removals
      - Upgrading drupal/canvas (dev-1.x 5f2d3eb => 1.10.1)
    Writing lock file
    95 packages you are using are looking for funding.
    Use the `composer fund` command to find out more!
    Cleaning installed packages.
    phpstan/extension-installer: Extensions installed
    > Drupal\Composer\Composer::generateMetapackages
    > Drupal\Composer\Composer::generateComponentPackages
    No security vulnerability advisories found.
    Using version ^1.10 for drupal/canvas
    Command 'xb-cspell' cannot have alias 'cspell' that is already in use by command 'cspell', skipping alias for /Users/gabor.hojtsy/Drupal/d12/.ddev/commands/web/xb-cspell
    Command 'xb-phpcs' cannot have alias 'phpcs' that is already in use by command 'phpcs', skipping alias for /Users/gabor.hojtsy/Drupal/d12/.ddev/commands/web/xb-phpcs
    Command 'xb-phpstan' cannot have alias 'phpstan' that is already in use by command 'phpstan', skipping alias for /Users/gabor.hojtsy/Drupal/d12/.ddev/commands/web/xb-phpstan
    Command 'xb-phpunit' cannot have alias 'phpunit' that is already in use by command 'phpunit', skipping alias for /Users/gabor.hojtsy/Drupal/d12/.ddev/commands/web/xb-phpunit
    composer.local.json has been updated
    Running composer update devizzent/cebe-php-openapi drupal/metatag jangregor/phpstan-prophecy league/openapi-psr7-validator webflo/drupal-finder --with-all-dependencies
    > Drupal\Composer\Composer::ensureComposerVersion
    Loading composer repositories with package information
    Updating dependencies
    Lock file operations: 13 installs, 1 update, 0 removals
      - Locking devizzent/cebe-php-openapi (1.1.5)
      - Locking drupal/metatag (2.2.0)
      - Locking drupal/token (1.17.0)
      - Locking jangregor/phpstan-prophecy (2.3.0)
      - Locking league/openapi-psr7-validator (0.22)
      - Locking league/uri (7.8.1)
      - Locking league/uri-interfaces (7.8.1)
      - Locking psr/cache (3.0.0)
      - Locking psr/http-server-handler (1.0.2)
      - Locking psr/http-server-middleware (1.0.2)
      - Locking respect/stringifier (1.0.0)
      - Locking respect/validation (2.5.0)
      - Locking riverline/multipart-parser (2.2.2)
      - Downgrading webmozart/assert (2.4.1 => 1.12.1)
    Writing lock file
    Installing dependencies from lock file (including require-dev)
    Package operations: 17 installs, 7 updates, 0 removals
      - Downloading symfony/string (v7.4.15)
      - Downloading drupal/token (1.17.0)
      - Downloading drupal/metatag (2.2.0)
      - Downloading laravel/prompts (v0.3.23)
      - Downloading grasmash/yaml-cli (3.2.1)
      - Downloading phootwork/lang (v3.2.3)
      - Downloading phootwork/collection (v3.2.3)
      - Downloading phpowermove/docblock (v4.0)
      - Downloading consolidation/robo (5.1.1)
      - Downloading chi-teck/drupal-code-generator (4.2.0)
      - Downloading drush/drush (13.7.6)
      - Downloading jangregor/phpstan-prophecy (2.3.0)
      - Downloading webmozart/assert (1.12.1)
      - Downloading riverline/multipart-parser (2.2.2)
      - Downloading respect/stringifier (1.0.0)
      - Downloading respect/validation (2.5.0)
      - Downloading psr/http-server-handler (1.0.2)
      - Downloading psr/http-server-middleware (1.0.2)
      - Downloading psr/cache (3.0.0)
      - Downloading league/uri-interfaces (7.8.1)
      - Downloading league/uri (7.8.1)
      - Downloading devizzent/cebe-php-openapi (1.1.5)
      - Downloading league/openapi-psr7-validator (0.22)
      - Downgrading symfony/string (v8.1.2 => v7.4.15): Extracting archive
      - Preserving git checkout of drupal/canvas
      - Installing drupal/token (1.17.0): Extracting archive
      - Installing drupal/metatag (2.2.0): Extracting archive
      - Upgrading laravel/prompts (v0.3.22 => v0.3.23): Extracting archive
      - Downgrading grasmash/yaml-cli (4.x-dev 417a0e5 => 3.2.1): Extracting archive
      - Installing phootwork/lang (v3.2.3): Extracting archive
      - Installing phootwork/collection (v3.2.3): Extracting archive
      - Installing phpowermove/docblock (v4.0): Extracting archive
      - Installing consolidation/robo (5.1.1): Extracting archive
      - Downgrading chi-teck/drupal-code-generator (4.x-dev ee02eb9 => 4.2.0): Extracting archive
      - Downgrading drush/drush (14.x-dev 92fa219 => 13.7.6): Extracting archive
      - Installing jangregor/phpstan-prophecy (2.3.0): Extracting archive
      - Downgrading webmozart/assert (2.4.1 => 1.12.1): Extracting archive
      - Installing riverline/multipart-parser (2.2.2): Extracting archive
      - Installing respect/stringifier (1.0.0): Extracting archive
      - Installing respect/validation (2.5.0): Extracting archive
      - Installing psr/http-server-handler (1.0.2): Extracting archive
      - Installing psr/http-server-middleware (1.0.2): Extracting archive
      - Installing psr/cache (3.0.0): Extracting archive
      - Installing league/uri-interfaces (7.8.1): Extracting archive
      - Installing league/uri (7.8.1): Extracting archive
      - Installing devizzent/cebe-php-openapi (1.1.5): Extracting archive
      - Installing league/openapi-psr7-validator (0.22): Extracting archive
    8 package suggestions were added by new dependencies, use `composer suggest` to see details.
    Generating autoload files
    > Drupal\Composer\Plugin\Scaffold\Plugin::preAutoloadDump
    Hardening vendor directory with .htaccess file.
    97 packages you are using are looking for funding.
    Use the `composer fund` command to find out more!
    Cleaning installed packages.
    phpstan/extension-installer: Extensions installed
    > composer/composer: installed
    > composer/pcre: installed
    > jangregor/phpstan-prophecy: installed
    > mglaman/phpstan-drupal: installed
    > phpstan/phpstan-deprecation-rules: installed
    > phpstan/phpstan-phpunit: installed
    > Drupal\Composer\Composer::generateMetapackages
    > Drupal\Composer\Composer::generateComponentPackages
    No security vulnerability advisories found.
    /Users/gabor.hojtsy/Drupal/d12/.ddev/commands/host/xb-setup: line 89: web/sites/default/settings.ddev.php: No such file or directory
    Failed to run xb-setup ; error=exit status 1
    

    Also it did not like my ddev setup at the end which is #71

  2. penyaskito commented on Aug 18, 2026

    @penyaskito
    Contributor

    I don't use the non-xb prefixed aliases, so I'm perfectly fine removing them.

    I never did that because I'm not sure who/how they are still using this. Maybe the best course of action is just doing it and wait to see if anyone complains.

  3. changed the title [-]Command aliases are too general[/-] [+]Incompatible with amateescu/ddev-drupal-dev, command aliases are too general[/+] on Aug 18, 2026
  4. goba commented on Aug 19, 2026

    @goba
    ContributorAuthor

    Opened PR at #73

  5. penyaskito commented on Aug 31, 2026

    @penyaskito
    Contributor

    Should be fixed by #73, re-open if not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions