Repository: netz98/n98-magerun

Issue #938: Error after executing ./n98-magerun.phar selfupdate
Created: 2017-08-30T09:57:36Z
./n98-magerun.phar --version: n98-magerun version 1.98.0 by netz98 GmbH
I receive the error below. The only effort that I have made to resolve this is disabling app/lib/n98-magerun
Fatal error: Uncaught Error: Call to undefined method Symfony\Component\Console\Command\HelpCommand::isHidden() in /var/www/us/vendor/symfony/console/Descriptor/ApplicationDescription.php:122
Stack trace:
#0 /var/www/us/vendor/symfony/console/Descriptor/ApplicationDescription.php(89): Symfony\Component\Console\Descriptor\ApplicationDescription->inspectApplication()
#1 /var/www/us/vendor/symfony/console/Descriptor/TextDescriptor.php(194): Symfony\Component\Console\Descriptor\ApplicationDescription->getCommands()
#2 /var/www/us/vendor/symfony/console/Descriptor/Descriptor.php(55): Symfony\Component\Console\Descriptor\TextDescriptor->describeApplication(Object(N98\Magento\Application), Array)
#3 /var/www/us/vendor/symfony/console/Helper/DescriptorHelper.php(72): Symfony\Component\Console\Descriptor\Descriptor->describe(Object(Symfony\Component\Console\Output\ConsoleOutput), Object(N98\Magento\Application), Array)
#4 phar:///var/www/us/n98-magerun.phar/vendor/symfony/console/Command/ListCommand.php(81): Symfony\Component\Cons in /var/www/us/vendor/symfony/console/Descriptor/ApplicationDescription.php on line 122

Duplicate issue #939: Fatal error: Call to undefined method Symfony\Component\Console\Event\ConsoleCommandEvent::commandShouldRun
Created: 2017-08-30T14:00:31Z
I'm getting a PHP fatal error when trying to instantiate magerun for a client which has magento installed into a sub directory using https://github.com/AydinHassan/magento-core-composer-installer.
Setup prep for version 1.98.0
[14:54:33] lukerodgers [~/src/n98-magerun]$ git fetch
[14:54:35] lukerodgers [~/src/n98-magerun]$ git checkout tags/1.98.0
Note: checking out 'tags/1.98.0'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at dc6729e... Add release branch to travis
[14:54:41] lukerodgers [~/src/n98-magerun]$ composer install -o
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Package operations: 50 installs, 0 updates, 0 removals
  - Installing symfony/process (v2.8.16): Loading from cache
  - ... snipped for brevity ...
Generating optimized autoload files
Showing the PHP fatal error
[14:54:52] lukerodgers [~/src/n98-magerun]$ ./bin/n98-magerun --root-dir=/Users/lukerodgers/src/client/htdocs/ cache:list

Fatal error: Call to undefined method Symfony\Component\Console\Event\ConsoleCommandEvent::commandShouldRun() in /Users/lukerodgers/src/n98-magerun/vendor/symfony/console/Application.php on line 865
Probable cause is 3f015d2
[14:55:09] lukerodgers [~/src/n98-magerun]$ git revert     3f015d2
[detached HEAD e13bc83] Revert "Fix Magento Enterprise detection, fixes #902"
 3 files changed, 29 insertions(+), 100 deletions(-)
 delete mode 100644 src/N98/Magento/Initialiser.php
[14:55:18] lukerodgers [~/src/n98-magerun]$ ./bin/n98-magerun --root-dir=/Users/lukerodgers/src/client/htdocs/ cache:list
+-------------------+---------+
| code              | status  |
+-------------------+---------+
| config            | enabled |
| layout            | enabled |
| block_html        | enabled |
| translate         | enabled |
| collections       | enabled |
| eav               | enabled |
| config_api        | enabled |
| config_api2       | enabled |
+-------------------+---------+
I'll be looking into this when I have time, but it won't be today and I thought you'd like to know.

Closing comment (2017-09-05T11:06:19Z): I am closing this issue as i am now 100% confident it is the same as #938 , just a different error message based on project specific configuration.
#938 (comment)