Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call to undefined method Symfony\Component\Console\Question\Question::isMultiline() #5

Open
SOMERSOFTAndrewCrook opened this issue May 22, 2023 · 0 comments

Comments

@SOMERSOFTAndrewCrook
Copy link

This issue is probably very localised and raise to inform others that have it.

In this senerio

docker@cli:/var/www$ which composer
/usr/local/bin/composer
docker@cli:/var/www$ composer --version
Composer version 2.5.5 2
023-03-21 11:50:05
docker@cli:/var/www$ vendor/bin/drush --version
Drush Commandline Tool 11.5.1
Enter verification code:
In QuestionHelper.php line 522:
                                                                                       
  [Error]                                                                              
  Call to undefined method Symfony\Component\Console\Question\Question::isMultiline()  
                                                                                       

Exception trace:
  at phar:///usr/local/bin/composer2/vendor/symfony/console/Helper/QuestionHelper.php:522
 Symfony\Component\Console\Helper\QuestionHelper->readInput() at phar:///usr/local/bin/composer2/vendor/symfony/console/Helper/QuestionHelper.php:131
 Symfony\Component\Console\Helper\QuestionHelper->doAsk() at phar:///usr/local/bin/composer2/vendor/symfony/console/Helper/QuestionHelper.php:68
 Symfony\Component\Console\Helper\QuestionHelper->ask() at phar:///usr/local/bin/composer2/src/Composer/IO/ConsoleIO.php:257
 Composer\IO\ConsoleIO->ask() at /var/www/vendor/nickwilde1990/drupal-spec-tool-commands/src/GoogleSpreadsheetAccessTrait.php:39
 NickWilde1990\DrupalSpecToolCommands\Command\DrupalSpecGherkinDumper->getClient() at /var/www/vendor/nickwilde1990/drupal-spec-tool-commands/src/Command/DrupalSpecGherkinDumper.php:47
 NickWilde1990\DrupalSpecToolCommands\Command\DrupalSpecGherkinDumper->execute() at phar:///usr/local/bin/composer2/vendor/symfony/console/Command/Command.php:298
 Symfony\Component\Console\Command\Command->run() at phar:///usr/local/bin/composer2/vendor/symfony/console/Application.php:1040
 Symfony\Component\Console\Application->doRunCommand() at phar:///usr/local/bin/composer2/vendor/symfony/console/Application.php:301
 Symfony\Component\Console\Application->doRun() at phar:///usr/local/bin/composer2/src/Composer/Console/Application.php:377
 Composer\Console\Application->doRun() at phar:///usr/local/bin/composer2/vendor/symfony/console/Application.php:171
 Symfony\Component\Console\Application->run() at phar:///usr/local/bin/composer2/src/Composer/Console/Application.php:141
 Composer\Console\Application->run() at phar:///usr/local/bin/composer2/bin/composer:88
 require() at /usr/local/bin/composer2:29

drupal-spec-dump-gherkin

In the drupal project's composer.lock it has "symfony/console" "v4.4.49" and in the composer it is v5.4.21 and the autoloader for some reason has picked up the version in the local vendor directory and not the version in the composer PHAR file. This is not the first time I have seen issues like this. The
drupal-spec-gherkin-dump.php.patch file , is probably very localised and covers ther following issue as well.

  [TypeError]                                                                                                                                  
  Return value of "NickWilde1990\DrupalSpecToolCommands\Command\DrupalSpecGherkinDumper::execute()" must be of the type int, "null" returned.  
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant