JMSDiExtraBundle icon indicating copy to clipboard operation
JMSDiExtraBundle copied to clipboard

Parent definition does not exist

Open Selion05 opened this issue 6 years ago • 4 comments

with 1.9.0 I get errors like that for a lot of services... with 1.8.2 everything works

 An error occurred when executing the "'cache:clear --no-warmup'" command:    
  PHP Fatal error:  Uncaught Symfony\Component\DependencyInjection\Exception\  
  RuntimeException: Service "selion.calculator_v1": Parent defini  
  tion "_jms_di_extra.unnamed.service_4" does not exist. in /var/www/enelteco  
  /admin/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Com  
  piler/ResolveDefinitionTemplatesPass.php:114

On this service the issue is resolved if I annotate the parent class but that doesn't work for every service!

symfony:

symfony/monolog-bundle v3.1.1
symfony/phpunit-bridge v3.3.10
symfony/polyfill-apcu v1.5.0
symfony/polyfill-intl-icu v1.5.0
symfony/polyfill-mbstring v1.5.0
symfony/polyfill-php56 v1.5.0
symfony/polyfill-php70 v1.5.0
symfony/polyfill-util v1.5.0
symfony/security-acl v3.0.0
symfony/swiftmailer-bundle v2.6.3
symfony/symfony v3.2.13

Selion05 avatar Oct 07 '17 13:10 Selion05

ping @greg0ire

GuilhemN avatar Oct 07 '17 13:10 GuilhemN

@Selion05 can you please use git bisect between 1.8.2 and 1.9.0 to determine which exact commit is faulty?

greg0ire avatar Oct 07 '17 16:10 greg0ire

sure here it is

git bisect bad
251bd727fcb9b4ed3dca7c8a85b7a8d42c090937 is the first bad commit
commit 251bd727fcb9b4ed3dca7c8a85b7a8d42c090937
Author: Johannes Schmitt <[email protected]>
Date:   Sat Jun 17 00:33:57 2017 +0200

    adds support for service factory

:040000 040000 8eba2ae67dcfdde79f77cd52ea53a1b3cb8356bd 006425effffb79502c3a0f519c9d51c2a1d8a5ef M	Annotation
:040000 040000 45f3c69fae7d7f0154f1ebdead308cfdbeec8773 1e918619b39de929bf8491c73e49f8f79dd7baaa M	Metadata
:040000 040000 723f4946d68d4190cf9634ef514a5edd4761b3af 493b17a1cf0b61f1b54702f68e945ed40aab377a M	Resources
:040000 040000 0c5a6fbcc9127db58da709ff8225bfed28a7829d 37f7b1561fb81a002a84cd0d450bf216a26464f8 M	Tests
:100644 100644 57434d1b7dd9f6ec672d7b4daecff728d96fb31d 358ab1b0bcde7c83d3ac2c1f545bc6cc78b4b585 M	composer.json

Selion05 avatar Oct 08 '17 16:10 Selion05

Thanks a lot! Link for the lazy: 251bd72

greg0ire avatar Oct 08 '17 16:10 greg0ire