Skip to content

installed.json needed since 0.12.4 #2818

@mitelg

Description

@mitelg

Bug report

  • Updating from 0.12.3 to 0.12.4
  • Everything works fine for shopware/platform
  • error occurs on execution of PHPStan on a plugin

In FileReader.php line 13:
[PHPStan\File\CouldNotReadFileException]
Could not read file: www/development/custom/plugins/paypal/vendor/composer/installed.json

Exception trace:
at phar://www/development/dev-ops/analyze/vendor-bin/phpstan/vendor/phpstan/phpstan/phpstan/src/File/FileReader.php:13
PHPStan\File\FileReader::read() at phar://www/development/dev-ops/analyze/vendor-bin/phpstan/vendor/phpstan/phpstan/phpstan/src/Reflection/BetterReflection/SourceLocator/ComposerJsonAndInstalledJsonSourceLocatorMaker.php:35
PHPStan\Reflection\BetterReflection\SourceLocator\ComposerJsonAndInstalledJsonSourceLocatorMaker->create() at phar://www/development/dev-ops/analyze/vendor-bin/phpstan/vendor/phpstan/phpstan/phpstan/src/Reflection/BetterReflection/BetterReflectionSourceLocatorFactory.php:70
PHPStan\Reflection\BetterReflection\BetterReflectionSourceLocatorFactory->create() at /tmp/phpstan/cache/nette.configurator/Container_d6d6ac9150.php:3885
Container_d6d6ac9150->createServiceBetterReflectionSourceLocator() at phar://www/development/dev-ops/analyze/vendor-bin/phpstan/vendor/phpstan/phpstan/phpstan/vendor/nette/di/src/DI/Container.php:146
_HumbugBoxa750b42bd25b\Nette\DI\Container->createService() at phar://www/development/dev-ops/analyze/vendor-bin/phpstan/vendor/phpstan/phpstan/phpstan/vendor/nette/di/src/DI/Container.php:88
_HumbugBoxa750b42bd25b\Nette\DI\Container->getService() at /tmp/phpstan/cache/nette.configurator/Container_d6d6ac9150.php:3841
Container_d6d6ac9150->createServiceBetterReflectionClassReflector() at phar://www/development/dev-ops/analyze/vendor-bin/phpstan/vendor/phpstan/phpstan/phpstan/vendor/nette/di/src/DI/Container.php:146
_HumbugBoxa750b42bd25b\Nette\DI\Container->createService() at phar://www/development/dev-ops/analyze/vendor-bin/phpstan/vendor/phpstan/phpstan/phpstan/vendor/nette/di/src/DI/Container.php:88
_HumbugBoxa750b42bd25b\Nette\DI\Container->getService() at /tmp/phpstan/cache/nette.configurator/Container_d6d6ac9150.php:3867
Container_d6d6ac9150->createServiceBetterReflectionProvider() at phar://www/development/dev-ops/analyze/vendor-bin/phpstan/vendor/phpstan/phpstan/phpstan/vendor/nette/di/src/DI/Container.php:146
_HumbugBoxa750b42bd25b\Nette\DI\Container->createService() at phar://www/development/dev-ops/analyze/vendor-bin/phpstan/vendor/phpstan/phpstan/phpstan/vendor/nette/di/src/DI/Container.php:88
_HumbugBoxa750b42bd25b\Nette\DI\Container->getService() at /tmp/phpstan/cache/nette.configurator/Container_d6d6ac9150.php:3976
Container_d6d6ac9150->createServicePhpParserReflectionProvider() at phar://www/development/dev-ops/analyze/vendor-bin/phpstan/vendor/phpstan/phpstan/phpstan/vendor/nette/di/src/DI/Container.php:146
_HumbugBoxa750b42bd25b\Nette\DI\Container->createService() at phar://www/development/dev-ops/analyze/vendor-bin/phpstan/vendor/phpstan/phpstan/phpstan/vendor/nette/di/src/DI/Container.php:88
_HumbugBoxa750b42bd25b\Nette\DI\Container->getService() at /tmp/phpstan/cache/nette.configurator/Container_d6d6ac9150.php:3995
Container_d6d6ac9150->createServiceReflectionProviderFactory() at phar://www/development/dev-ops/analyze/vendor-bin/phpstan/vendor/phpstan/phpstan/phpstan/vendor/nette/di/src/DI/Container.php:146
_HumbugBoxa750b42bd25b\Nette\DI\Container->createService() at phar://www/development/dev-ops/analyze/vendor-bin/phpstan/vendor/phpstan/phpstan/phpstan/vendor/nette/di/src/DI/Container.php:88
_HumbugBoxa750b42bd25b\Nette\DI\Container->getService() at /tmp/phpstan/cache/nette.configurator/Container_d6d6ac9150.php:3984
Container_d6d6ac9150->createServiceReflectionProvider() at phar://www/development/dev-ops/analyze/vendor-bin/phpstan/vendor/phpstan/phpstan/phpstan/vendor/nette/di/src/DI/Container.php:146
_HumbugBoxa750b42bd25b\Nette\DI\Container->createService() at phar://www/development/dev-ops/analyze/vendor-bin/phpstan/vendor/phpstan/phpstan/phpstan/vendor/nette/di/src/DI/Container.php:88
_HumbugBoxa750b42bd25b\Nette\DI\Container->getService() at phar://www/development/dev-ops/analyze/vendor-bin/phpstan/vendor/phpstan/phpstan/phpstan/vendor/nette/di/src/DI/Container.php:166
_HumbugBoxa750b42bd25b\Nette\DI\Container->getByType() at phar://www/development/dev-ops/analyze/vendor-bin/phpstan/vendor/phpstan/phpstan/phpstan/src/DependencyInjection/Nette/NetteContainer.php:36
PHPStan\DependencyInjection\Nette\NetteContainer->getByType() at phar://www/development/dev-ops/analyze/vendor-bin/phpstan/vendor/phpstan/phpstan/phpstan/src/Broker/BrokerFactory.php:26
PHPStan\Broker\BrokerFactory->create() at /tmp/phpstan/cache/nette.configurator/Container_d6d6ac9150.php:3891
Container_d6d6ac9150->createServiceBroker() at phar://www/development/dev-ops/analyze/vendor-bin/phpstan/vendor/phpstan/phpstan/phpstan/vendor/nette/di/src/DI/Container.php:146
_HumbugBoxa750b42bd25b\Nette\DI\Container->createService() at phar://www/development/dev-ops/analyze/vendor-bin/phpstan/vendor/phpstan/phpstan/phpstan/vendor/nette/di/src/DI/Container.php:88
_HumbugBoxa750b42bd25b\Nette\DI\Container->getService() at phar://www/development/dev-ops/analyze/vendor-bin/phpstan/vendor/phpstan/phpstan/phpstan/vendor/nette/di/src/DI/Container.php:166
_HumbugBoxa750b42bd25b\Nette\DI\Container->getByType() at phar://www/development/dev-ops/analyze/vendor-bin/phpstan/vendor/phpstan/phpstan/phpstan/src/DependencyInjection/ContainerFactory.php:56
PHPStan\DependencyInjection\ContainerFactory->create() at phar://www/development/dev-ops/analyze/vendor-bin/phpstan/vendor/phpstan/phpstan/phpstan/src/Command/CommandHelper.php:171
PHPStan\Command\CommandHelper::begin() at phar://www/development/dev-ops/analyze/vendor-bin/phpstan/vendor/phpstan/phpstan/phpstan/src/Command/AnalyseCommand.php:61
PHPStan\Command\AnalyseCommand->execute() at phar://www/development/dev-ops/analyze/vendor-bin/phpstan/vendor/phpstan/phpstan/phpstan/vendor/symfony/console/Command/Command.php:228
_HumbugBoxa750b42bd25b\Symfony\Component\Console\Command\Command->run() at phar://www/development/dev-ops/analyze/vendor-bin/phpstan/vendor/phpstan/phpstan/phpstan/vendor/symfony/console/Application.php:858
_HumbugBoxa750b42bd25b\Symfony\Component\Console\Application->doRunCommand() at phar://www/development/dev-ops/analyze/vendor-bin/phpstan/vendor/phpstan/phpstan/phpstan/vendor/symfony/console/Application.php:236
_HumbugBoxa750b42bd25b\Symfony\Component\Console\Application->doRun() at phar://www/development/dev-ops/analyze/vendor-bin/phpstan/vendor/phpstan/phpstan/phpstan/vendor/symfony/console/Application.php:137
_HumbugBoxa750b42bd25b\Symfony\Component\Console\Application->run() at phar://www/development/dev-ops/analyze/vendor-bin/phpstan/vendor/phpstan/phpstan/phpstan/bin/phpstan:70
_HumbugBoxa750b42bd25b{closure}() at phar://www/development/dev-ops/analyze/vendor-bin/phpstan/vendor/phpstan/phpstan/phpstan/bin/phpstan:71
require() at www/development/dev-ops/analyze/vendor-bin/phpstan/vendor/phpstan/phpstan/phpstan:6

Expected output

Is the installed.json really needed? It wasn't before, so maybe there is a way to do the analysis without executing composer install in the plugin directory 😊

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions