Symplify: [EasyCodingStandard] Symfony 5 skeleton composer error - autowired service missing

Created on 13 May 2020  路  8Comments  路  Source: symplify/symplify

Hello!
Please, can You check installation/autowiring issue with ECS in Symfony 5.
Even in very basic and clean symfony/website-skeleton instance of Symfony 5 project command composer require symplify/easy-coding-standard --dev ends with this error :

Screenshot from 2020-05-13 21-56-44

To reproduce an issue follow these simple steps :

composer create-project symfony/website-skeleton skeleton
cd skeleton/
composer require symplify/easy-coding-standard --dev

Thanks for a great tool and I'm looking forward to being able to use it in a new Symfony 5 project.

艩p谩gr

All 8 comments

Hi Martin,

thanks for report! It seems something in Symfony DI has changed, because the service is not made by Symfony anymore.

I've added missing services and released patch version.


Try 7.3.16 release and let me know. It worked for me

image

Btw, perfect script to reproduce! :clap:

Took me just 20 seconds to replicate the same errors locally, with almost 0 effort. I wish all the issue reports were like yours!

Great work Tomas :+1: , it's alive again, this is my kind of 5 a.m. messages ! :wink:

Thanks for the quick response and super fast solution.

oops, there is some class maps bug remaining in App_KernelDevDebugContainer.php line 1793:
Screenshot from 2020-05-14 05-45-35

just run

bin/console

I'd try cleraning cache + removing /vendor

These common "let's start from the beginning" :wink: steps I did before I reopened this issue.
Unfortunately this time it didn't solve the problem: :neutral_face:

rm -rf vendor/
rm -rf var/
composer clearcache
rm composer.lock 
composer upgrade
composer dumpautoload #just for sure and composer test
bin/console

or create new complete fresh project to reproduce an issue:

composer create-project symfony/website-skeleton skeleton
cd skeleton/
composer require symplify/easy-coding-standard --dev  # done without problems in ECS 7.3.16
bin/console # error occurs :

image

I run your code and see. You need to remove CS and ECS bundles from bundles.php

Not sure how to prevent auto-adding them. It's handled by Symfony/Flex

Thank you, it works. :+1:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tomasfejfar picture tomasfejfar  路  5Comments

enumag picture enumag  路  8Comments

TomasVotruba picture TomasVotruba  路  3Comments

tarlepp picture tarlepp  路  7Comments

boris-brtan picture boris-brtan  路  3Comments