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

Parent definition does not exist #291

Open
Selion05 opened this issue Oct 7, 2017 · 4 comments
Open

Parent definition does not exist #291

Selion05 opened this issue Oct 7, 2017 · 4 comments

Comments

@Selion05
Copy link

Selion05 commented Oct 7, 2017

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

@GuilhemN
Copy link
Collaborator

GuilhemN commented Oct 7, 2017

ping @greg0ire

@greg0ire
Copy link
Contributor

greg0ire commented Oct 7, 2017

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

@Selion05
Copy link
Author

Selion05 commented Oct 8, 2017

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

@greg0ire
Copy link
Contributor

greg0ire commented Oct 8, 2017

Thanks a lot! Link for the lazy: 251bd72

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

3 participants