hechoendrupal / drupal-console-extend-plugin

Drupal Console Extend Composer Plugin
131 stars 31 forks source link

Drupal 9 or other install issue? #29

Open seanr opened 3 years ago

seanr commented 3 years ago

Having no luck getting this going on a Drupal 9 site and not sure what the real error is:

 ~/P/yeegoconnect   master ±  lando composer require kint-php/kint drupal/console                            01:36:57 PM
Using version ^3.3 for kint-php/kint
Using version ^1.9 for drupal/console
./composer.json has been updated
Running composer update kint-php/kint drupal/console
Gathering patches for root package.
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - drupal/console 1.9.5 requires drupal/console-extend-plugin ~0 -> satisfiable by drupal/console-extend-plugin[0.1.0, ..., 0.9.5].
    - drupal/console 1.9.7 requires drupal/console-core 1.9.7 -> satisfiable by drupal/console-core[1.9.7].
    - drupal/console[v1.9.0, ..., 1.9.4] require symfony/http-foundation ~2.8|~3.0 -> found symfony/http-foundation[v2.8.0-BETA1, ..., 2.8.x-dev, v3.0.0-BETA1, ..., 3.4.x-dev] but the package is fixed to v4.4.16 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - drupal/console-extend-plugin[0.1.0, ..., 0.9.4] require composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
    - drupal/console-extend-plugin 0.9.5 requires symfony/finder ~3.0|^4.4 -> found symfony/finder[v3.0.0-BETA1, ..., 3.4.x-dev, v4.4.0-BETA1, ..., 4.4.x-dev] but the package is fixed to v5.2.3 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - drupal/console-core 1.9.7 requires symfony/finder ~3.0|^4.4 -> found symfony/finder[v3.0.0-BETA1, ..., 3.4.x-dev, v4.4.0-BETA1, ..., 4.4.x-dev] but the package is fixed to v5.2.3 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - Root composer.json requires drupal/console ^1.9 -> satisfiable by drupal/console[v1.9.0, ..., 1.9.7].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Saw the issues here and then tried this, to no avail:

 ~/P/yeegoconnect   master ±  lando composer require drupal/console-extend-plugin:^0.9.5                     01:45:14 PM
./composer.json has been updated
Running composer update drupal/console-extend-plugin
Gathering patches for root package.
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires drupal/console-extend-plugin ^0.9.5 -> satisfiable by drupal/console-extend-plugin[0.9.5].
    - drupal/console-extend-plugin 0.9.5 requires symfony/finder ~3.0|^4.4 -> found symfony/finder[v3.0.0-BETA1, ..., 3.4.x-dev, v4.4.0-BETA1, ..., 4.4.x-dev] but the package is fixed to v5.2.3 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

What do I need to do to get this working? Unless there's a code change needed in either this or Drupal console, a complete working example (preferably also added to the Drupal console docs) would be very helpful.