theofidry / PsyshBundle

A command line REPL bundle for Symfony using PsySH.
MIT License
208 stars 29 forks source link

You have requested a non-existent service "psysh.facade". #40

Closed 4n70w4 closed 4 years ago

4n70w4 commented 5 years ago

docker-compose exec -u app --env SYMFONY_ENV=prod --env SYMFONY_DEBUG=0 php composer install --no-dev -vvv

Generating optimized autoload files
> post-install-cmd: @symfony-scripts
> symfony-scripts: Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap
> symfony-scripts: Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache

In Container.php line 348:

  You have requested a non-existent service "psysh.facade".

Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the symfony-scripts event terminated with an exception

  [RuntimeException]
  An error occurred when executing the "'cache:clear --no-warmup'" command:

  In Container.php line 348:

    You have requested a non-existent service "psysh.facade".

Exception trace:
 () at /var/www/app/current/vendor/sensio/distribution-bundle/Composer/ScriptHandler.php:293
 Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::executeCommand() at /var/www/app/current/vendor/sensio/distribution-bundle/Composer/ScriptHandler.php:143
 Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache() at phar:///usr/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:292
 Composer\EventDispatcher\EventDispatcher->executeEventPhpScript() at phar:///usr/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:215
 Composer\EventDispatcher\EventDispatcher->doDispatch() at phar:///usr/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:81
 Composer\EventDispatcher\EventDispatcher->dispatch() at phar:///usr/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:195
 Composer\EventDispatcher\EventDispatcher->doDispatch() at phar:///usr/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:96
 Composer\EventDispatcher\EventDispatcher->dispatchScript() at phar:///usr/bin/composer/src/Composer/Installer.php:323
 Composer\Installer->run() at phar:///usr/bin/composer/src/Composer/Command/InstallCommand.php:119
 Composer\Command\InstallCommand->execute() at phar:///usr/bin/composer/vendor/symfony/console/Command/Command.php:242
 Symfony\Component\Console\Command\Command->run() at phar:///usr/bin/composer/vendor/symfony/console/Application.php:843
 Symfony\Component\Console\Application->doRunCommand() at phar:///usr/bin/composer/vendor/symfony/console/Application.php:193
 Symfony\Component\Console\Application->doRun() at phar:///usr/bin/composer/src/Composer/Console/Application.php:251
 Composer\Console\Application->doRun() at phar:///usr/bin/composer/vendor/symfony/console/Application.php:117
 Symfony\Component\Console\Application->run() at phar:///usr/bin/composer/src/Composer/Console/Application.php:100
 Composer\Console\Application->run() at phar:///usr/bin/composer/bin/composer:59
 require() at /usr/bin/composer:24

install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] [<packages>]...

composer.json

        "psy/psysh": "^0.9.7",
        "theofidry/psysh-bundle": "^3.5",

composer info

psy/psysh                              v0.9.9            An interactive shell for modern PHP.
theofidry/psysh-bundle                 v3.5.0            A port of the PHP REPL PsySH for Symfony.
theofidry commented 5 years ago

I think this is happening because the service is not a public service, so it may have been removed. Do you mind opening a PR to fix this?

4n70w4 commented 5 years ago

@theofidry I have no ideas to fix.

theofidry commented 5 years ago

Hm after checking it, I initially thought it was the psysh.facade service that was not public but it seems to already be the case: https://github.com/theofidry/PsyshBundle/blob/master/resources/config/services.xml#L23

So it is more likely to be one of the two:

mihaileu commented 4 years ago

@theofidry I propose to close this one year passed