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

Plugin - Class "__ComposerUnused__\Symfony\Component\DependencyInjection\ContainerBuilder" not found #451

Open
grizzlylab opened this issue Mar 1, 2023 · 4 comments

Comments

@grizzlylab
Copy link

Describe the bug

Error when executing composer require composer-unused/composer-unused-plugin

Additional information

  • COMPOSER 2.5.4
  • PHP 8.1
    Screenshot from 2023-03-01 15-22-26

Exception trace

  at phar:///srv/vendor/composer-unused/composer-unused-plugin/composer-unused.phar/config/container.php:10
 ComposerUnused\ComposerUnusedPlugin\UnusedPlugin::__ComposerUnused__\{closure}() at phar:///srv/vendor/composer-unused/composer-unused-plugin/composer-unused.phar/config/container.php:18
 require() at /srv/vendor/composer-unused/composer-unused-plugin/src/UnusedPlugin.php:36
 ComposerUnused\ComposerUnusedPlugin\UnusedPlugin->activate() at phar:///usr/local/bin/composer/src/Composer/Plugin/PluginManager.php:388
 Composer\Plugin\PluginManager->addPlugin() at phar:///usr/local/bin/composer/src/Composer/Plugin/PluginManager.php:292
 Composer\Plugin\PluginManager->registerPackage() at phar:///usr/local/bin/composer/src/Composer/Installer/PluginInstaller.php:85
 Composer\Installer\PluginInstaller->Composer\Installer\{closure}() at phar:///usr/local/bin/composer/vendor/react/promise/src/FulfilledPromise.php:28
 React\Promise\FulfilledPromise->then() at phar:///usr/local/bin/composer/vendor/react/promise/src/Promise.php:134
 React\Promise\Promise::React\Promise\{closure}() at phar:///usr/local/bin/composer/vendor/react/promise/src/Promise.php:168
 React\Promise\Promise->settle() at phar:///usr/local/bin/composer/vendor/react/promise/src/Promise.php:231
 React\Promise\Promise::React\Promise\{closure}() at phar:///usr/local/bin/composer/vendor/react/promise/src/FulfilledPromise.php:42
 React\Promise\FulfilledPromise->done() at phar:///usr/local/bin/composer/vendor/react/promise/src/Promise.php:135
 React\Promise\Promise::React\Promise\{closure}() at phar:///usr/local/bin/composer/vendor/react/promise/src/Promise.php:168
 React\Promise\Promise->settle() at phar:///usr/local/bin/composer/vendor/react/promise/src/Promise.php:231
 React\Promise\Promise::React\Promise\{closure}() at phar:///usr/local/bin/composer/vendor/react/promise/src/FulfilledPromise.php:42
 React\Promise\FulfilledPromise->done() at phar:///usr/local/bin/composer/vendor/react/promise/src/Promise.php:66
 React\Promise\Promise::React\Promise\{closure}() at phar:///usr/local/bin/composer/vendor/react/promise/src/Promise.php:168
 React\Promise\Promise->settle() at phar:///usr/local/bin/composer/vendor/react/promise/src/Promise.php:231
 React\Promise\Promise::React\Promise\{closure}() at phar:///usr/local/bin/composer/vendor/react/promise/src/FulfilledPromise.php:42
 React\Promise\FulfilledPromise->done() at phar:///usr/local/bin/composer/vendor/react/promise/src/Promise.php:135
 React\Promise\Promise::React\Promise\{closure}() at phar:///usr/local/bin/composer/vendor/react/promise/src/Promise.php:168
 React\Promise\Promise->settle() at phar:///usr/local/bin/composer/vendor/react/promise/src/Promise.php:231
 React\Promise\Promise::React\Promise\{closure}() at phar:///usr/local/bin/composer/vendor/react/promise/src/FulfilledPromise.php:42
 React\Promise\FulfilledPromise->done() at phar:///usr/local/bin/composer/vendor/react/promise/src/Promise.php:135
 React\Promise\Promise::React\Promise\{closure}() at phar:///usr/local/bin/composer/vendor/react/promise/src/Promise.php:168
 React\Promise\Promise->settle() at phar:///usr/local/bin/composer/vendor/react/promise/src/Promise.php:231
 React\Promise\Promise::React\Promise\{closure}() at phar:///usr/local/bin/composer/vendor/react/promise/src/FulfilledPromise.php:42
 React\Promise\FulfilledPromise->done() at phar:///usr/local/bin/composer/vendor/react/promise/src/Promise.php:135
 React\Promise\Promise::React\Promise\{closure}() at phar:///usr/local/bin/composer/vendor/react/promise/src/Promise.php:168
 React\Promise\Promise->settle() at phar:///usr/local/bin/composer/vendor/react/promise/src/Promise.php:231
 React\Promise\Promise::React\Promise\{closure}() at n/a:n/a
 call_user_func() at phar:///usr/local/bin/composer/src/Composer/Util/ProcessExecutor.php:327
 Composer\Util\ProcessExecutor->countActiveJobs() at phar:///usr/local/bin/composer/src/Composer/Util/Loop.php:91
 Composer\Util\Loop->wait() at phar:///usr/local/bin/composer/src/Composer/Installer/InstallationManager.php:430
 Composer\Installer\InstallationManager->waitOnPromises() at phar:///usr/local/bin/composer/src/Composer/Installer/InstallationManager.php:405
 Composer\Installer\InstallationManager->executeBatch() at phar:///usr/local/bin/composer/src/Composer/Installer/InstallationManager.php:319
 Composer\Installer\InstallationManager->downloadAndExecuteBatch() at phar:///usr/local/bin/composer/src/Composer/Installer/InstallationManager.php:218
 Composer\Installer\InstallationManager->execute() at phar:///usr/local/bin/composer/src/Composer/Installer.php:797
 Composer\Installer->doInstall() at phar:///usr/local/bin/composer/src/Composer/Installer.php:622
 Composer\Installer->doUpdate() at phar:///usr/local/bin/composer/src/Composer/Installer.php:287
 Composer\Installer->run() at phar:///usr/local/bin/composer/src/Composer/Command/RequireCommand.php:490
 Composer\Command\RequireCommand->doUpdate() at phar:///usr/local/bin/composer/src/Composer/Command/RequireCommand.php:339
 Composer\Command\RequireCommand->execute() at phar:///usr/local/bin/composer/vendor/symfony/console/Command/Command.php:298
 Symfony\Component\Console\Command\Command->run() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:1040
 Symfony\Component\Console\Application->doRunCommand() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:301
 Symfony\Component\Console\Application->doRun() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:377
 Composer\Console\Application->doRun() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:171
 Symfony\Component\Console\Application->run() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:141
 Composer\Console\Application->run() at phar:///usr/local/bin/composer/bin/composer:88
 require() at /usr/local/bin/composer:29
@grizzlylab grizzlylab changed the title Class "__ComposerUnused__\Symfony\Component\DependencyInjection\ContainerBuilder" not found Impossible to install plugin - Class "__ComposerUnused__\Symfony\Component\DependencyInjection\ContainerBuilder" not found Mar 1, 2023
@grizzlylab grizzlylab changed the title Impossible to install plugin - Class "__ComposerUnused__\Symfony\Component\DependencyInjection\ContainerBuilder" not found Plugin - Class "__ComposerUnused__\Symfony\Component\DependencyInjection\ContainerBuilder" not found Mar 1, 2023
@icanhazstring
Copy link
Member

Hi. Thanks for reporting.
Might be due to broken phar build of composer-unused.

@Hanmac
Copy link

Hanmac commented Aug 15, 2023

Similar Stacktrace

  - Installing composer-unused/composer-unused-plugin (0.8.10): Extracting archive
PHP Fatal error:  Uncaught Error: Class "__ComposerUnused__\Symfony\Component\DependencyInjection\ContainerBuilder" not found in phar:///var/www/html/vendor/composer-unused/composer-unused-plugin/composer-unused.phar/config/container.php:10
Stack trace:
#0 phar:///var/www/html/vendor/composer-unused/composer-unused-plugin/composer-unused.phar/config/container.php(18): ComposerUnused\ComposerUnusedPlugin\UnusedPlugin::__ComposerUnused__\{closure}()
#1 /var/www/html/vendor/composer-unused/composer-unused-plugin/src/UnusedPlugin.php(36): require('phar:///var/www...')
#2 phar:///usr/local/bin/composer/src/Composer/Plugin/PluginManager.php(335): ComposerUnused\ComposerUnusedPlugin\UnusedPlugin->activate(Object(Composer\Composer), Object(Composer\IO\ConsoleIO))
#3 phar:///usr/local/bin/composer/src/Composer/Plugin/PluginManager.php(231): Composer\Plugin\PluginManager->addPlugin(Object(ComposerUnused\ComposerUnusedPlugin\UnusedPlugin), false, Object(Composer\Package\CompletePackage))
#4 phar:///usr/local/bin/composer/src/Composer/Installer/PluginInstaller.php(79): Composer\Plugin\PluginManager->registerPackage(Object(Composer\Package\CompletePackage), true)
#5 [internal function]: Composer\Installer\PluginInstaller->Composer\Installer\{closure}(NULL)
#6 phar:///usr/local/bin/composer/vendor/react/promise/src/React/Promise/FulfilledPromise.php(20): call_user_func(Object(Closure), NULL)
#7 phar:///usr/local/bin/composer/vendor/react/promise/src/React/Promise/Deferred.php(74): React\Promise\FulfilledPromise->then(Object(Closure), NULL)
#8 [internal function]: React\Promise\Deferred->React\Promise\{closure}(Object(React\Promise\FulfilledPromise))
#9 phar:///usr/local/bin/composer/vendor/react/promise/src/React/Promise/Deferred.php(166): call_user_func(Object(Closure), Object(React\Promise\FulfilledPromise))
#10 phar:///usr/local/bin/composer/vendor/react/promise/src/React/Promise/Deferred.php(95): React\Promise\Deferred->processQueue(Array, Object(React\Promise\FulfilledPromise))
#11 [internal function]: React\Promise\Deferred->resolve(NULL)
#12 phar:///usr/local/bin/composer/vendor/react/promise/src/React/Promise/FulfilledPromise.php(20): call_user_func(Array, NULL)
#13 phar:///usr/local/bin/composer/vendor/react/promise/src/React/Promise/Deferred.php(76): React\Promise\FulfilledPromise->then(Array, Array, Array)
#14 [internal function]: React\Promise\Deferred->React\Promise\{closure}(Object(React\Promise\FulfilledPromise))
#15 phar:///usr/local/bin/composer/vendor/react/promise/src/React/Promise/Deferred.php(166): call_user_func(Object(Closure), Object(React\Promise\FulfilledPromise))
#16 phar:///usr/local/bin/composer/vendor/react/promise/src/React/Promise/Deferred.php(95): React\Promise\Deferred->processQueue(Array, Object(React\Promise\FulfilledPromise))
#17 [internal function]: React\Promise\Deferred->resolve(NULL)
#18 phar:///usr/local/bin/composer/vendor/react/promise/src/React/Promise/FulfilledPromise.php(20): call_user_func(Array, NULL)
#19 phar:///usr/local/bin/composer/vendor/react/promise/src/React/Promise/Deferred.php(74): React\Promise\FulfilledPromise->then(Array, Array)
#20 [internal function]: React\Promise\Deferred->React\Promise\{closure}(Object(React\Promise\FulfilledPromise))
#21 phar:///usr/local/bin/composer/vendor/react/promise/src/React/Promise/Deferred.php(166): call_user_func(Object(Closure), Object(React\Promise\FulfilledPromise))
#22 phar:///usr/local/bin/composer/vendor/react/promise/src/React/Promise/Deferred.php(95): React\Promise\Deferred->processQueue(Array, Object(React\Promise\FulfilledPromise))
#23 [internal function]: React\Promise\Deferred->resolve(NULL)
#24 phar:///usr/local/bin/composer/vendor/react/promise/src/React/Promise/FulfilledPromise.php(20): call_user_func(Array, NULL)
#25 phar:///usr/local/bin/composer/vendor/react/promise/src/React/Promise/Deferred.php(76): React\Promise\FulfilledPromise->then(Array, Array, Array)
#26 [internal function]: React\Promise\Deferred->React\Promise\{closure}(Object(React\Promise\FulfilledPromise))
#27 phar:///usr/local/bin/composer/vendor/react/promise/src/React/Promise/Deferred.php(166): call_user_func(Object(Closure), Object(React\Promise\FulfilledPromise))
#28 phar:///usr/local/bin/composer/vendor/react/promise/src/React/Promise/Deferred.php(95): React\Promise\Deferred->processQueue(Array, Object(React\Promise\FulfilledPromise))
#29 [internal function]: React\Promise\Deferred->resolve(true)
#30 phar:///usr/local/bin/composer/vendor/react/promise/src/React/Promise/FulfilledPromise.php(20): call_user_func(Array, true)
#31 phar:///usr/local/bin/composer/vendor/react/promise/src/React/Promise/Deferred.php(76): React\Promise\FulfilledPromise->then(Array, Array, Array)
#32 [internal function]: React\Promise\Deferred->React\Promise\{closure}(Object(React\Promise\FulfilledPromise))
#33 phar:///usr/local/bin/composer/vendor/react/promise/src/React/Promise/Deferred.php(166): call_user_func(Object(Closure), Object(React\Promise\FulfilledPromise))
#34 phar:///usr/local/bin/composer/vendor/react/promise/src/React/Promise/Deferred.php(95): React\Promise\Deferred->processQueue(Array, Object(React\Promise\FulfilledPromise))
#35 [internal function]: React\Promise\Deferred->resolve(Object(Symfony\Component\Process\Process))
#36 phar:///usr/local/bin/composer/vendor/react/promise/src/React/Promise/FulfilledPromise.php(20): call_user_func(Array, Object(Symfony\Component\Process\Process))
#37 phar:///usr/local/bin/composer/vendor/react/promise/src/React/Promise/Deferred.php(76): React\Promise\FulfilledPromise->then(Array, Array, Array)
#38 [internal function]: React\Promise\Deferred->React\Promise\{closure}(Object(React\Promise\FulfilledPromise))
#39 phar:///usr/local/bin/composer/vendor/react/promise/src/React/Promise/Deferred.php(166): call_user_func(Object(Closure), Object(React\Promise\FulfilledPromise))
#40 phar:///usr/local/bin/composer/vendor/react/promise/src/React/Promise/Deferred.php(95): React\Promise\Deferred->processQueue(Array, Object(React\Promise\FulfilledPromise))
#41 phar:///usr/local/bin/composer/vendor/react/promise/src/React/Promise/Promise.php(42): React\Promise\Deferred->resolve(Object(Symfony\Component\Process\Process))
#42 [internal function]: React\Promise\Promise->React\Promise\{closure}(Object(Symfony\Component\Process\Process))
#43 phar:///usr/local/bin/composer/src/Composer/Util/ProcessExecutor.php(316): call_user_func(Object(Closure), Object(Symfony\Component\Process\Process))
#44 phar:///usr/local/bin/composer/src/Composer/Util/Loop.php(92): Composer\Util\ProcessExecutor->countActiveJobs()
#45 phar:///usr/local/bin/composer/src/Composer/Installer/InstallationManager.php(462): Composer\Util\Loop->wait(Array, NULL)
#46 phar:///usr/local/bin/composer/src/Composer/Installer/InstallationManager.php(440): Composer\Installer\InstallationManager->waitOnPromises(Array)
#47 phar:///usr/local/bin/composer/src/Composer/Installer/InstallationManager.php(367): Composer\Installer\InstallationManager->executeBatch(Object(Composer\Repository\InstalledFilesystemRepository), Array, Array, true, true, Array)
#48 phar:///usr/local/bin/composer/src/Composer/Installer/InstallationManager.php(266): Composer\Installer\InstallationManager->downloadAndExecuteBatch(Object(Composer\Repository\InstalledFilesystemRepository), Array, Array, true, true, Array)
#49 phar:///usr/local/bin/composer/src/Composer/Installer.php(706): Composer\Installer\InstallationManager->execute(Object(Composer\Repository\InstalledFilesystemRepository), Array, true, true)
#50 phar:///usr/local/bin/composer/src/Composer/Installer.php(543): Composer\Installer->doInstall(Object(Composer\Repository\InstalledFilesystemRepository), true)
#51 phar:///usr/local/bin/composer/src/Composer/Installer.php(247): Composer\Installer->doUpdate(Object(Composer\Repository\InstalledFilesystemRepository), true)
#52 phar:///usr/local/bin/composer/src/Composer/Command/UpdateCommand.php(241): Composer\Installer->run()
#53 phar:///usr/local/bin/composer/vendor/symfony/console/Command/Command.php(245): Composer\Command\UpdateCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#54 phar:///usr/local/bin/composer/vendor/symfony/console/Application.php(835): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#55 phar:///usr/local/bin/composer/vendor/symfony/console/Application.php(185): Symfony\Component\Console\Application->doRunCommand(Object(Composer\Command\UpdateCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#56 phar:///usr/local/bin/composer/src/Composer/Console/Application.php(314): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#57 phar:///usr/local/bin/composer/vendor/symfony/console/Application.php(117): Composer\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#58 phar:///usr/local/bin/composer/src/Composer/Console/Application.php(125): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#59 phar:///usr/local/bin/composer/bin/composer(67): Composer\Console\Application->run()
#60 /usr/local/bin/composer(24): require('phar:///usr/loc...')
#61 {main}
  thrown in phar:///var/www/html/vendor/composer-unused/composer-unused-plugin/composer-unused.phar/config/container.php on line 10

Fatal error: Uncaught Error: Class "__ComposerUnused__\Symfony\Component\DependencyInjection\ContainerBuilder" not found in phar:///var/www/html/vendor/composer-unused/composer-unused-plugin/composer-unused.phar/config/container.php:10
Stack trace:
#0 phar:///var/www/html/vendor/composer-unused/composer-unused-plugin/composer-unused.phar/config/container.php(18): ComposerUnused\ComposerUnusedPlugin\UnusedPlugin::__ComposerUnused__\{closure}()
#1 /var/www/html/vendor/composer-unused/composer-unused-plugin/src/UnusedPlugin.php(36): require('phar:///var/www...')
#2 phar:///usr/local/bin/composer/src/Composer/Plugin/PluginManager.php(335): ComposerUnused\ComposerUnusedPlugin\UnusedPlugin->activate(Object(Composer\Composer), Object(Composer\IO\ConsoleIO))
#3 phar:///usr/local/bin/composer/src/Composer/Plugin/PluginManager.php(231): Composer\Plugin\PluginManager->addPlugin(Object(ComposerUnused\ComposerUnusedPlugin\UnusedPlugin), false, Object(Composer\Package\CompletePackage))
#4 phar:///usr/local/bin/composer/src/Composer/Installer/PluginInstaller.php(79): Composer\Plugin\PluginManager->registerPackage(Object(Composer\Package\CompletePackage), true)
#5 [internal function]: Composer\Installer\PluginInstaller->Composer\Installer\{closure}(NULL)
#6 phar:///usr/local/bin/composer/vendor/react/promise/src/React/Promise/FulfilledPromise.php(20): call_user_func(Object(Closure), NULL)
#7 phar:///usr/local/bin/composer/vendor/react/promise/src/React/Promise/Deferred.php(74): React\Promise\FulfilledPromise->then(Object(Closure), NULL)
#8 [internal function]: React\Promise\Deferred->React\Promise\{closure}(Object(React\Promise\FulfilledPromise))
#9 phar:///usr/local/bin/composer/vendor/react/promise/src/React/Promise/Deferred.php(166): call_user_func(Object(Closure), Object(React\Promise\FulfilledPromise))
#10 phar:///usr/local/bin/composer/vendor/react/promise/src/React/Promise/Deferred.php(95): React\Promise\Deferred->processQueue(Array, Object(React\Promise\FulfilledPromise))
#11 [internal function]: React\Promise\Deferred->resolve(NULL)
#12 phar:///usr/local/bin/composer/vendor/react/promise/src/React/Promise/FulfilledPromise.php(20): call_user_func(Array, NULL)
#13 phar:///usr/local/bin/composer/vendor/react/promise/src/React/Promise/Deferred.php(76): React\Promise\FulfilledPromise->then(Array, Array, Array)
#14 [internal function]: React\Promise\Deferred->React\Promise\{closure}(Object(React\Promise\FulfilledPromise))
#15 phar:///usr/local/bin/composer/vendor/react/promise/src/React/Promise/Deferred.php(166): call_user_func(Object(Closure), Object(React\Promise\FulfilledPromise))
#16 phar:///usr/local/bin/composer/vendor/react/promise/src/React/Promise/Deferred.php(95): React\Promise\Deferred->processQueue(Array, Object(React\Promise\FulfilledPromise))
#17 [internal function]: React\Promise\Deferred->resolve(NULL)
#18 phar:///usr/local/bin/composer/vendor/react/promise/src/React/Promise/FulfilledPromise.php(20): call_user_func(Array, NULL)
#19 phar:///usr/local/bin/composer/vendor/react/promise/src/React/Promise/Deferred.php(74): React\Promise\FulfilledPromise->then(Array, Array)
#20 [internal function]: React\Promise\Deferred->React\Promise\{closure}(Object(React\Promise\FulfilledPromise))
#21 phar:///usr/local/bin/composer/vendor/react/promise/src/React/Promise/Deferred.php(166): call_user_func(Object(Closure), Object(React\Promise\FulfilledPromise))
#22 phar:///usr/local/bin/composer/vendor/react/promise/src/React/Promise/Deferred.php(95): React\Promise\Deferred->processQueue(Array, Object(React\Promise\FulfilledPromise))
#23 [internal function]: React\Promise\Deferred->resolve(NULL)
#24 phar:///usr/local/bin/composer/vendor/react/promise/src/React/Promise/FulfilledPromise.php(20): call_user_func(Array, NULL)
#25 phar:///usr/local/bin/composer/vendor/react/promise/src/React/Promise/Deferred.php(76): React\Promise\FulfilledPromise->then(Array, Array, Array)
#26 [internal function]: React\Promise\Deferred->React\Promise\{closure}(Object(React\Promise\FulfilledPromise))
#27 phar:///usr/local/bin/composer/vendor/react/promise/src/React/Promise/Deferred.php(166): call_user_func(Object(Closure), Object(React\Promise\FulfilledPromise))
#28 phar:///usr/local/bin/composer/vendor/react/promise/src/React/Promise/Deferred.php(95): React\Promise\Deferred->processQueue(Array, Object(React\Promise\FulfilledPromise))
#29 [internal function]: React\Promise\Deferred->resolve(true)
#30 phar:///usr/local/bin/composer/vendor/react/promise/src/React/Promise/FulfilledPromise.php(20): call_user_func(Array, true)
#31 phar:///usr/local/bin/composer/vendor/react/promise/src/React/Promise/Deferred.php(76): React\Promise\FulfilledPromise->then(Array, Array, Array)
#32 [internal function]: React\Promise\Deferred->React\Promise\{closure}(Object(React\Promise\FulfilledPromise))
#33 phar:///usr/local/bin/composer/vendor/react/promise/src/React/Promise/Deferred.php(166): call_user_func(Object(Closure), Object(React\Promise\FulfilledPromise))
#34 phar:///usr/local/bin/composer/vendor/react/promise/src/React/Promise/Deferred.php(95): React\Promise\Deferred->processQueue(Array, Object(React\Promise\FulfilledPromise))
#35 [internal function]: React\Promise\Deferred->resolve(Object(Symfony\Component\Process\Process))
#36 phar:///usr/local/bin/composer/vendor/react/promise/src/React/Promise/FulfilledPromise.php(20): call_user_func(Array, Object(Symfony\Component\Process\Process))
#37 phar:///usr/local/bin/composer/vendor/react/promise/src/React/Promise/Deferred.php(76): React\Promise\FulfilledPromise->then(Array, Array, Array)
#38 [internal function]: React\Promise\Deferred->React\Promise\{closure}(Object(React\Promise\FulfilledPromise))
#39 phar:///usr/local/bin/composer/vendor/react/promise/src/React/Promise/Deferred.php(166): call_user_func(Object(Closure), Object(React\Promise\FulfilledPromise))
#40 phar:///usr/local/bin/composer/vendor/react/promise/src/React/Promise/Deferred.php(95): React\Promise\Deferred->processQueue(Array, Object(React\Promise\FulfilledPromise))
#41 phar:///usr/local/bin/composer/vendor/react/promise/src/React/Promise/Promise.php(42): React\Promise\Deferred->resolve(Object(Symfony\Component\Process\Process))
#42 [internal function]: React\Promise\Promise->React\Promise\{closure}(Object(Symfony\Component\Process\Process))
#43 phar:///usr/local/bin/composer/src/Composer/Util/ProcessExecutor.php(316): call_user_func(Object(Closure), Object(Symfony\Component\Process\Process))
#44 phar:///usr/local/bin/composer/src/Composer/Util/Loop.php(92): Composer\Util\ProcessExecutor->countActiveJobs()
#45 phar:///usr/local/bin/composer/src/Composer/Installer/InstallationManager.php(462): Composer\Util\Loop->wait(Array, NULL)
#46 phar:///usr/local/bin/composer/src/Composer/Installer/InstallationManager.php(440): Composer\Installer\InstallationManager->waitOnPromises(Array)
#47 phar:///usr/local/bin/composer/src/Composer/Installer/InstallationManager.php(367): Composer\Installer\InstallationManager->executeBatch(Object(Composer\Repository\InstalledFilesystemRepository), Array, Array, true, true, Array)
#48 phar:///usr/local/bin/composer/src/Composer/Installer/InstallationManager.php(266): Composer\Installer\InstallationManager->downloadAndExecuteBatch(Object(Composer\Repository\InstalledFilesystemRepository), Array, Array, true, true, Array)
#49 phar:///usr/local/bin/composer/src/Composer/Installer.php(706): Composer\Installer\InstallationManager->execute(Object(Composer\Repository\InstalledFilesystemRepository), Array, true, true)
#50 phar:///usr/local/bin/composer/src/Composer/Installer.php(543): Composer\Installer->doInstall(Object(Composer\Repository\InstalledFilesystemRepository), true)
#51 phar:///usr/local/bin/composer/src/Composer/Installer.php(247): Composer\Installer->doUpdate(Object(Composer\Repository\InstalledFilesystemRepository), true)
#52 phar:///usr/local/bin/composer/src/Composer/Command/UpdateCommand.php(241): Composer\Installer->run()
#53 phar:///usr/local/bin/composer/vendor/symfony/console/Command/Command.php(245): Composer\Command\UpdateCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#54 phar:///usr/local/bin/composer/vendor/symfony/console/Application.php(835): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#55 phar:///usr/local/bin/composer/vendor/symfony/console/Application.php(185): Symfony\Component\Console\Application->doRunCommand(Object(Composer\Command\UpdateCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#56 phar:///usr/local/bin/composer/src/Composer/Console/Application.php(314): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#57 phar:///usr/local/bin/composer/vendor/symfony/console/Application.php(117): Composer\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#58 phar:///usr/local/bin/composer/src/Composer/Console/Application.php(125): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#59 phar:///usr/local/bin/composer/bin/composer(67): Composer\Console\Application->run()
#60 /usr/local/bin/composer(24): require('phar:///usr/loc...')
#61 {main}
  thrown in phar:///var/www/html/vendor/composer-unused/composer-unused-plugin/composer-unused.phar/config/container.php on line 10

@mdjdev
Copy link

mdjdev commented Jan 17, 2024

I have the same issue. Have there been any updates or potential solutions to address it?

@oneNevan
Copy link

Got the same issue while running composer require composer-unused/composer-unused-plugin

Did anyone found a solution?

/var/www $ composer require composer-unused/composer-unused-plugin
./composer.json has been updated
Running composer update composer-unused/composer-unused-plugin
Gathering patches from patch file.
Loading composer repositories with package information
Updating dependencies                                 
Lock file operations: 6 installs, 0 updates, 0 removals
  - Locking composer-unused/composer-unused-plugin (0.8.10)
  - Locking composer-unused/contracts (0.3.0)
  - Locking composer-unused/symbol-parser (0.2.2)
  - Locking icanhazstring/composer-unused (0.8.11)
  - Locking ondram/ci-detector (4.1.0)
  - Locking webmozart/glob (4.6.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 6 installs, 0 updates, 0 removals
Gathering patches from patch file.
Gathering patches for dependencies. This might take a minute.
  - Installing webmozart/glob (4.6.0): Extracting archive
  - Installing ondram/ci-detector (4.1.0): Extracting archive
  - Installing composer-unused/contracts (0.3.0): Extracting archive
  - Installing composer-unused/symbol-parser (0.2.2): Extracting archive
  - Installing icanhazstring/composer-unused (0.8.11): Extracting archive
composer-unused/composer-unused-plugin contains a Composer plugin which is currently not in your allow-plugins config. See https://getcomposer.org/allow-plugins
Do you trust "composer-unused/composer-unused-plugin" to execute code and wish to enable it now? (writes "allow-plugins" to composer.json) [y,n,d,?] y
  - Installing composer-unused/composer-unused-plugin (0.8.10): Extracting archive
    Install of composer-unused/composer-unused-plugin failed

In container.php line 10:
                                                                                               
  [Error]                                                                                      
  Class "__ComposerUnused__\Symfony\Component\DependencyInjection\ContainerBuilder" not found  
                                                                                               

Exception trace:
  at phar:///var/www/vendor/composer-unused/composer-unused-plugin/composer-unused.phar/config/container.php:10
 ComposerUnused\ComposerUnusedPlugin\UnusedPlugin::__ComposerUnused__\{closure}() at phar:///var/www/vendor/composer-unused/composer-unused-plugin/composer-unused.phar/config/container.php:18
 require() at /var/www/vendor/composer-unused/composer-unused-plugin/src/UnusedPlugin.php:36
 ComposerUnused\ComposerUnusedPlugin\UnusedPlugin->activate() at phar:///usr/bin/composer/src/Composer/Plugin/PluginManager.php:391
 Composer\Plugin\PluginManager->addPlugin() at phar:///usr/bin/composer/src/Composer/Plugin/PluginManager.php:295
 Composer\Plugin\PluginManager->registerPackage() at phar:///usr/bin/composer/src/Composer/Installer/PluginInstaller.php:85
 Composer\Installer\PluginInstaller->Composer\Installer\{closure}() at phar:///usr/bin/composer/vendor/react/promise/src/Internal/FulfilledPromise.php:47
 React\Promise\Internal\FulfilledPromise->then() at phar:///usr/bin/composer/vendor/react/promise/src/Promise.php:169
 React\Promise\Promise::React\Promise\{closure}() at phar:///usr/bin/composer/vendor/react/promise/src/Promise.php:217
 React\Promise\Promise->settle() at phar:///usr/bin/composer/vendor/react/promise/src/Promise.php:279
 React\Promise\Promise::React\Promise\{closure}() at phar:///usr/bin/composer/vendor/react/promise/src/Internal/FulfilledPromise.php:47
 React\Promise\Internal\FulfilledPromise->then() at phar:///usr/bin/composer/vendor/react/promise/src/Promise.php:176
 React\Promise\Promise::React\Promise\{closure}() at phar:///usr/bin/composer/vendor/react/promise/src/Promise.php:217
 React\Promise\Promise->settle() at phar:///usr/bin/composer/vendor/react/promise/src/Promise.php:279
 React\Promise\Promise::React\Promise\{closure}() at phar:///usr/bin/composer/vendor/react/promise/src/Internal/FulfilledPromise.php:47
 React\Promise\Internal\FulfilledPromise->then() at phar:///usr/bin/composer/vendor/react/promise/src/Promise.php:173
 React\Promise\Promise::React\Promise\{closure}() at phar:///usr/bin/composer/vendor/react/promise/src/Promise.php:217
 React\Promise\Promise->settle() at phar:///usr/bin/composer/vendor/react/promise/src/Promise.php:279
 React\Promise\Promise::React\Promise\{closure}() at phar:///usr/bin/composer/vendor/react/promise/src/Internal/FulfilledPromise.php:47
 React\Promise\Internal\FulfilledPromise->then() at phar:///usr/bin/composer/vendor/react/promise/src/Promise.php:176
 React\Promise\Promise::React\Promise\{closure}() at phar:///usr/bin/composer/vendor/react/promise/src/Promise.php:217
 React\Promise\Promise->settle() at phar:///usr/bin/composer/vendor/react/promise/src/Promise.php:279
 React\Promise\Promise::React\Promise\{closure}() at phar:///usr/bin/composer/vendor/react/promise/src/Internal/FulfilledPromise.php:47
 React\Promise\Internal\FulfilledPromise->then() at phar:///usr/bin/composer/vendor/react/promise/src/Promise.php:176
 React\Promise\Promise::React\Promise\{closure}() at phar:///usr/bin/composer/vendor/react/promise/src/Promise.php:217
 React\Promise\Promise->settle() at phar:///usr/bin/composer/vendor/react/promise/src/Promise.php:279
 React\Promise\Promise::React\Promise\{closure}() at phar:///usr/bin/composer/vendor/react/promise/src/Internal/FulfilledPromise.php:47
 React\Promise\Internal\FulfilledPromise->then() at phar:///usr/bin/composer/vendor/react/promise/src/Promise.php:176
 React\Promise\Promise::React\Promise\{closure}() at phar:///usr/bin/composer/vendor/react/promise/src/Promise.php:217
 React\Promise\Promise->settle() at phar:///usr/bin/composer/vendor/react/promise/src/Promise.php:279
 React\Promise\Promise::React\Promise\{closure}() at n/a:n/a
 call_user_func() at phar:///usr/bin/composer/src/Composer/Util/ProcessExecutor.php:328
 Composer\Util\ProcessExecutor->countActiveJobs() at phar:///usr/bin/composer/src/Composer/Util/Loop.php:90
 Composer\Util\Loop->wait() at phar:///usr/bin/composer/src/Composer/Installer/InstallationManager.php:430
 Composer\Installer\InstallationManager->waitOnPromises() at phar:///usr/bin/composer/src/Composer/Installer/InstallationManager.php:405
 Composer\Installer\InstallationManager->executeBatch() at phar:///usr/bin/composer/src/Composer/Installer/InstallationManager.php:319
 Composer\Installer\InstallationManager->downloadAndExecuteBatch() at phar:///usr/bin/composer/src/Composer/Installer/InstallationManager.php:218
 Composer\Installer\InstallationManager->execute() at phar:///usr/bin/composer/src/Composer/Installer.php:804
 Composer\Installer->doInstall() at phar:///usr/bin/composer/src/Composer/Installer.php:629
 Composer\Installer->doUpdate() at phar:///usr/bin/composer/src/Composer/Installer.php:290
 Composer\Installer->run() at phar:///usr/bin/composer/src/Composer/Command/RequireCommand.php:490
 Composer\Command\RequireCommand->doUpdate() at phar:///usr/bin/composer/src/Composer/Command/RequireCommand.php:339
 Composer\Command\RequireCommand->execute() at phar:///usr/bin/composer/vendor/symfony/console/Command/Command.php:298
 Symfony\Component\Console\Command\Command->run() at phar:///usr/bin/composer/vendor/symfony/console/Application.php:1040
 Symfony\Component\Console\Application->doRunCommand() at phar:///usr/bin/composer/vendor/symfony/console/Application.php:301
 Symfony\Component\Console\Application->doRun() at phar:///usr/bin/composer/src/Composer/Console/Application.php:382
 Composer\Console\Application->doRun() at phar:///usr/bin/composer/vendor/symfony/console/Application.php:171
 Symfony\Component\Console\Application->run() at phar:///usr/bin/composer/src/Composer/Console/Application.php:145
 Composer\Console\Application->run() at phar:///usr/bin/composer/bin/composer:93
 require() at /usr/bin/composer:29

require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] [<packages>...]

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

5 participants