drupalorg-cli
drupalorg-cli copied to clipboard
Crashes on windows under git-bash shell (MINGW64)
I install the git shell for use with git, composer, drush and other tools on windows. When installing drupalorg and attempting to run it, I get:
Fatal error: Uncaught TypeError: trim(): Argument #1 ($string) must be of type string, false given in phar://C:/wamp64/drupal-tools/drupalorg.phar/.box/src/Terminal.php on line 60
TypeError: trim(): Argument #1 ($string) must be of type string, false given in phar://C:/wamp64/drupal-tools/drupalorg.phar/.box/src/Terminal.php on line 60
Call Stack:
0.0017 1373544 1. {main}() C:\wamp64\drupal-tools\drupalorg.phar:0
0.0025 1379264 2. require('phar://C:/wamp64/drupal-tools/drupalorg.phar/.box/bin/check-requirements.php') C:\wamp64\drupal-tools\drupalorg.phar:12
0.0042 1557192 3. HumbugBox436\KevinGH\RequirementChecker\Checker::checkRequirements() phar://C:/wamp64/drupal-tools/drupalorg.phar/.box/bin/check-requirements.php:22
0.0086 1774840 4. HumbugBox436\KevinGH\RequirementChecker\Printer->__construct($verbosity = 32, $supportColors = TRUE, $width = ???) phar://C:/wamp64/drupal-tools/drupalorg.phar/.box/src/Checker.php:17
0.0089 1793048 5. HumbugBox436\KevinGH\RequirementChecker\Terminal->getWidth() phar://C:/wamp64/drupal-tools/drupalorg.phar/.box/src/Printer.php:28
0.0089 1793096 6. HumbugBox436\KevinGH\RequirementChecker\Terminal::initDimensions() phar://C:/wamp64/drupal-tools/drupalorg.phar/.box/src/Terminal.php:31
0.0089 1793096 7. trim($string = FALSE) phar://C:/wamp64/drupal-tools/drupalorg.phar/.box/src/Terminal.php:60
Please let me know if there is anything I can do to help diagnose the issue.
Update: I installed manually and ran the drupalorg.phar file both with and without the extension and got the above crash. I installed with composer and ran from the source and it works file. Not sure why the packaging into a phar causes the issue.