FriendsOfShopware / FroshDevelopmentHelper

Helpful development tools
81 stars 15 forks source link

6.6.5.1 after pressing install in admin #67

Open Uflax opened 1 month ago

Uflax commented 1 month ago

PHP Version

8.2

Shopware Version

6.6.5.1

Plugin Version

1.0.3

Actual behaviour

Pressing install: Could not execute "composer require" for plugin "FroshDevelopmentHelper (frosh/development-helper:1.0.3). Output: ./composer.json has been updated Running composer update frosh/development-helper --with-dependencies > pre-update-cmd: Symfony\Flex\Flex_composer_tmp1->configureInstaller Loading composer repositories with package information Dependency shopware/core is also a root requirement. Package has not been listed as an update argument, so keeping locked at old version. Use --with-all-dependencies (-W) to include root dependencies. > pre-pool-create: Symfony\Flex\Flex_composer_tmp1->truncatePackages Updating dependencies Dependency resolution completed in 0.003 seconds Analyzed 466 packages to resolve dependencies Analyzed 1847 rules to resolve dependencies Lock file operations: 14 installs, 6 updates, 0 removals Installs: evenement/evenement:v3.0.2, react/event-loop:v1.5.0, react/stream:v1.4.0, clue/ndjson-react:v1.3.0, fidry/cpu-core-counter:1.2.0, nikic/php-parser:v5.1.0, psy/psysh:v0.12.4, sebastian/diff:6.0.2, react/cache:v1.2.0, react/dns:v1.13.0, react/socket:v1.16.0, react/child-process:v0.6.5, friendsofphp/php-cs-fixer:v3.64.0, frosh/development-helper:1.0.3 Updates: symfony/finder:v7.1.4, psr/log:3.0.1, symfony/string:v7.1.4, symfony/var-dumper:v7.1.4, symfony/console:v7.1.4, composer/pcre:3.3.1 - Locking clue/ndjson-react (v1.3.0) - Upgrading composer/pcre (3.2.0 => 3.3.1) - Locking evenement/evenement (v3.0.2) - Locking fidry/cpu-core-counter (1.2.0) - Locking friendsofphp/php-cs-fixer (v3.64.0) - Locking frosh/development-helper (1.0.3) - Locking nikic/php-parser (v5.1.0) - Upgrading psr/log (3.0.0 => 3.0.1) - Locking psy/psysh (v0.12.4) - Locking react/cache (v1.2.0) - Locking react/child-process (v0.6.5) - Locking react/dns (v1.13.0) - Locking react/event-loop (v1.5.0) - Locking react/socket (v1.16.0) - Locking react/stream (v1.4.0) - Locking sebastian/diff (6.0.2) - Upgrading symfony/console (v7.1.3 => v7.1.4) - Upgrading symfony/finder (v7.1.3 => v7.1.4) - Upgrading symfony/string (v7.1.3 => v7.1.4) - Upgrading symfony/var-dumper (v7.1.3 => v7.1.4) Writing lock file Installing dependencies from lock file (including require-dev) > pre-operations-exec: Symfony\Flex\Flex_composer_tmp1->recordOperations Package operations: 14 installs, 6 updates, 0 removals Installs: react/event-loop:v1.5.0, evenement/evenement:v3.0.2, react/stream:v1.4.0, clue/ndjson-react:v1.3.0, fidry/cpu-core-counter:1.2.0, nikic/php-parser:v5.1.0, psy/psysh:v0.12.4, sebastian/diff:6.0.2, react/cache:v1.2.0, react/dns:v1.13.0, react/socket:v1.16.0, react/child-process:v0.6.5, friendsofphp/php-cs-fixer:v3.64.0, frosh/development-helper:1.0.3 Updates: symfony/finder:v7.1.4, psr/log:3.0.1, symfony/string:v7.1.4, symfony/var-dumper:v7.1.4, symfony/console:v7.1.4, composer/pcre:3.3.1 - Downloading react/event-loop (v1.5.0) - Downloading evenement/evenement (v3.0.2) - Downloading react/stream (v1.4.0) - Downloading clue/ndjson-react (v1.3.0) - Downloading symfony/finder (v7.1.4) - Downloading psr/log (3.0.1) - Downloading symfony/string (v7.1.4) - Downloading symfony/var-dumper (v7.1.4) - Downloading symfony/console (v7.1.4) - Downloading composer/pcre (3.3.1) - Downloading fidry/cpu-core-counter (1.2.0) - Downloading nikic/php-parser (v5.1.0) - Downloading psy/psysh (v0.12.4) - Downloading sebastian/diff (6.0.2) - Downloading react/cache (v1.2.0) - Downloading react/dns (v1.13.0) - Downloading react/socket (v1.16.0) - Downloading react/child-process (v0.6.5) - Downloading friendsofphp/php-cs-fixer (v3.64.0) 0/19 [>---------------------------] 0% < 1 sec 11/19 [================>-----------] 57% < 1 sec 18/19 [==========================>-] 94% < 1 sec 19/19 [============================] 100% 1 sec - Installing react/event-loop (v1.5.0): Extracting archive - Installing evenement/evenement (v3.0.2): Extracting archive - Installing react/stream (v1.4.0): Extracting archive - Installing clue/ndjson-react (v1.3.0): Extracting archive - Upgrading symfony/finder (v7.1.3 => v7.1.4): Extracting archive - Upgrading psr/log (3.0.0 => 3.0.1): Extracting archive - Upgrading symfony/string (v7.1.3 => v7.1.4): Extracting archive - Upgrading symfony/var-dumper (v7.1.3 => v7.1.4): Extracting archive - Upgrading symfony/console (v7.1.3 => v7.1.4): Extracting archive - Upgrading composer/pcre (3.2.0 => 3.3.1): Extracting archive - Installing fidry/cpu-core-counter (1.2.0): Extracting archive - Installing nikic/php-parser (v5.1.0): Extracting archive - Installing psy/psysh (v0.12.4): Extracting archive - Installing sebastian/diff (6.0.2): Extracting archive - Installing react/cache (v1.2.0): Extracting archive - Installing react/dns (v1.13.0): Extracting archive - Installing react/socket (v1.16.0): Extracting archive - Installing react/child-process (v0.6.5): Extracting archive - Installing friendsofphp/php-cs-fixer (v3.64.0): Extracting archive - Installing frosh/development-helper (1.0.3): Symlinking from custom/plugins/FroshDevelopmentHelper Install of react/event-loop failed Install of evenement/evenement failed Install of react/stream failed Install of clue/ndjson-react failed 0/15 [>---------------------------] 0% < 1 sec Update of symfony/finder failed Update of psr/log failed Update of symfony/string failed Update of symfony/var-dumper failed Update of composer/pcre failed Update of symfony/console failed Install of fidry/cpu-core-counter failed Install of sebastian/diff failed Install of react/cache failed Install of react/dns failed Install of react/child-process failed Install of react/socket failed Install of psy/psysh failed Install of nikic/php-parser failed Install of friendsofphp/php-cs-fixer failed 15/15 [============================] 100% < 1 sec In DebugClassLoader.php line 300: [ErrorException] include(/var/www/html/vendor/composer/../symfony/finder/Iterator/FilenameFi lterIterator.php): Failed to open stream: No such file or directory Exception trace: at /var/www/html/vendor/symfony/error-handler/DebugClassLoader.php:300 Composer\Util\ErrorHandler::handle() at /var/www/html/vendor/symfony/error-handler/DebugClassLoader.php:300 include() at /var/www/html/vendor/symfony/error-handler/DebugClassLoader.php:300 Symfony\Component\ErrorHandler\DebugClassLoader->loadClass() at /var/www/html/vendor/symfony/finder/Finder.php:807 Symfony\Component\Finder\Finder->searchInDirectory() at /var/www/html/vendor/symfony/finder/Finder.php:671 Symfony\Component\Finder\Finder->getIterator() at n/a:n/a iterator_to_array() at /var/www/html/vendor/composer/composer/src/Composer/Downloader/ArchiveDownloader.php:128 Composer\Downloader\ArchiveDownloader::Composer\Downloader{closure}() at /var/www/html/vendor/composer/composer/src/Composer/Downloader/ArchiveDownloader.php:172 Composer\Downloader\ArchiveDownloader->Composer\Downloader{closure}() at /var/www/html/vendor/react/promise/src/FulfilledPromise.php:28 React\Promise\FulfilledPromise->then() at /var/www/html/vendor/react/promise/src/Promise.php:134 React\Promise\Promise::React\Promise{closure}() at /var/www/html/vendor/react/promise/src/Promise.php:168 React\Promise\Promise->settle() at /var/www/html/vendor/react/promise/src/Promise.php:231 React\Promise\Promise::React\Promise{closure}() at /var/www/html/vendor/react/promise/src/FulfilledPromise.php:42 React\Promise\FulfilledPromise->done() at /var/www/html/vendor/react/promise/src/Promise.php:135 React\Promise\Promise::React\Promise{closure}() at /var/www/html/vendor/react/promise/src/Promise.php:168 React\Promise\Promise->settle() at /var/www/html/vendor/react/promise/src/Promise.php:231 React\Promise\Promise::React\Promise{closure}() at /var/www/html/vendor/react/promise/src/FulfilledPromise.php:42 React\Promise\FulfilledPromise->done() at /var/www/html/vendor/react/promise/src/Promise.php:135 React\Promise\Promise::React\Promise{closure}() at /var/www/html/vendor/react/promise/src/Promise.php:168 React\Promise\Promise->settle() at /var/www/html/vendor/react/promise/src/Promise.php:231 React\Promise\Promise::React\Promise{closure}() at n/a:n/a call_user_func() at /var/www/html/vendor/composer/composer/src/Composer/Util/ProcessExecutor.php:367 Composer\Util\ProcessExecutor->countActiveJobs() at /var/www/html/vendor/composer/composer/src/Composer/Util/Loop.php:79 Composer\Util\Loop->wait() at /var/www/html/vendor/composer/composer/src/Composer/Installer/InstallationManager.php:430 Composer\Installer\InstallationManager->waitOnPromises() at /var/www/html/vendor/composer/composer/src/Composer/Installer/InstallationManager.php:405 Composer\Installer\InstallationManager->executeBatch() at /var/www/html/vendor/composer/composer/src/Composer/Installer/InstallationManager.php:319 Composer\Installer\InstallationManager->downloadAndExecuteBatch() at /var/www/html/vendor/composer/composer/src/Composer/Installer/InstallationManager.php:218 Composer\Installer\InstallationManager->execute() at /var/www/html/vendor/composer/composer/src/Composer/Installer.php:837 Composer\Installer->doInstall() at /var/www/html/vendor/composer/composer/src/Composer/Installer.php:649 Composer\Installer->doUpdate() at /var/www/html/vendor/composer/composer/src/Composer/Installer.php:298 Composer\Installer->run() at /var/www/html/vendor/composer/composer/src/Composer/Command/RequireCommand.php:498 Composer\Command\RequireCommand->doUpdate() at /var/www/html/vendor/composer/composer/src/Composer/Command/RequireCommand.php:340 Composer\Command\RequireCommand->execute() at /var/www/html/vendor/symfony/console/Command/Command.php:279 Symfony\Component\Console\Command\Command->run() at /var/www/html/vendor/symfony/console/Application.php:1029 Symfony\Component\Console\Application->doRunCommand() at /var/www/html/vendor/symfony/console/Application.php:316 Symfony\Component\Console\Application->doRun() at /var/www/html/vendor/composer/composer/src/Composer/Console/Application.php:394 Composer\Console\Application->doRun() at /var/www/html/vendor/symfony/console/Application.php:167 Symfony\Component\Console\Application->run() at /var/www/html/vendor/composer/composer/src/Composer/Console/Application.php:148 Composer\Console\Application->run() at /var/www/html/vendor/shopware/core/Framework/Plugin/Composer/CommandExecutor.php:43 Shopware\Core\Framework\Plugin\Composer\CommandExecutor->require() at /var/www/html/vendor/shopware/core/Framework/Plugin/PluginLifecycleService.php:705 Shopware\Core\Framework\Plugin\PluginLifecycleService->executeComposerRequireWhenNeeded() at /var/www/html/vendor/shopware/core/Framework/Plugin/PluginLifecycleService.php:126 Shopware\Core\Framework\Plugin\PluginLifecycleService->installPlugin() at /var/www/html/vendor/shopware/core/Framework/Store/Services/ExtensionLifecycleService.php:30 Shopware\Core\Framework\Store\Services\ExtensionLifecycleService->install() at /var/www/html/vendor/shopware/core/Framework/Store/Api/ExtensionStoreActionsController.php:102 Shopware\Core\Framework\Store\Api\ExtensionStoreActionsController->installExtension() at /var/www/html/vendor/symfony/http-kernel/HttpKernel.php:183 Symfony\Component\HttpKernel\HttpKernel->handleRaw() at /var/www/html/vendor/symfony/http-kernel/HttpKernel.php:76 Symfony\Component\HttpKernel\HttpKernel->handle() at /var/www/html/vendor/shopware/core/Framework/Adapter/Kernel/HttpKernel.php:58 Shopware\Core\Framework\Adapter\Kernel\HttpKernel->handle() at /var/www/html/vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php:86 Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle() at /var/www/html/vendor/symfony/http-kernel/HttpCache/HttpCache.php:458 Symfony\Component\HttpKernel\HttpCache\HttpCache->forward() at /var/www/html/vendor/symfony/http-kernel/HttpCache/HttpCache.php:260 Symfony\Component\HttpKernel\HttpCache\HttpCache->pass() at /var/www/html/vendor/symfony/http-kernel/HttpCache/HttpCache.php:274 Symfony\Component\HttpKernel\HttpCache\HttpCache->invalidate() at /var/www/html/vendor/symfony/http-kernel/HttpCache/HttpCache.php:202 Symfony\Component\HttpKernel\HttpCache\HttpCache->handle() at /var/www/html/vendor/shopware/core/Framework/Adapter/Kernel/HttpCacheKernel.php:65 Shopware\Core\Framework\Adapter\Kernel\HttpCacheKernel->handle() at /var/www/html/vendor/shopware/core/Kernel.php:117 Shopware\Core\Kernel->handle() at /var/www/html/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35 Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run() at /var/www/html/vendor/autoload_runtime.php:29 require_once() at /var/www/html/public/index.php:11 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] [-m|--minimal-changes] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] [...]

Expected behaviour

Pressing install: gets installed is installed

Steps to Reproduce?

same dockware as my options and try to install through admin.

Uflax commented 1 month ago

this is my docker-compose.yml for my dev containers: services: app: container_name: dockware6.6.5.1 image: dockware/dev:6.6.5.1 ports:

Uflax commented 1 month ago

Fixed it by "composer install", the issue was that the plugin could not execute "composer require" because composer install in the html for dockware was not executed automatically. a fix for this would be great, that the plugin itself installs before require.