install command:
php7.1 vendor/composer/bin/rector require --dev rector/rector
run command:
php7.1 vendor/composer/bin/rector process src/ --config vendor/composer/thecodingmachine/safe/rector-migrate.yml
error:
Cannot autowire service "Rector\NodeTypeResolver\PhpDoc\NodeAnalyzer\PhpDocInfoFqnTypeDecorator": argument "$nodeTraverser" of method "__c
onstruct()" references class "Symplify\BetterPhpDocParser\Ast\NodeTraverser" but no such service exists.
Version?
the current master (d95f878cc2b706dff133e8e9f432abf22ec27513)
Testing started at 15:00 ...
/usr/bin/php7.1 /home/lmoelleken/testing/git/rector/vendor/phpunit/phpunit/phpunit --configuration /home/lmoelleken/testing/git/rector/phpunit.xml /home/lmoelleken/testing/git/rector/tests --teamcity
PHP Fatal error: Uncaught Symfony\Component\DependencyInjection\Exception\RuntimeException: Cannot autowire service "Rector\NodeTypeResolver\PhpDoc\NodeAnalyzer\DocBlockAnalyzer": argument "$phpDocInfoFactory" of method "__construct()" references class "Symplify\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory" but no such service exists. in /home/lmoelleken/testing/git/rector/vendor/symfony/dependency-injection/Compiler/DefinitionErrorExceptionPass.php:54
Stack trace:
#0 /home/lmoelleken/testing/git/rector/vendor/symfony/dependency-injection/Compiler/AbstractRecursivePass.php(82): Symfony\Component\DependencyInjection\Compiler\DefinitionErrorExceptionPass->processValue(Object(Symfony\Component\DependencyInjection\Definition), true)
#1 /home/lmoelleken/testing/git/rector/vendor/symfony/dependency-injection/Compiler/DefinitionErrorExceptionPass.php(32): Symfony\Component\DependencyInjection\Compiler\AbstractRecursivePass->processValue(Array, true)
#2 /home/lmoelleken/testing/git/rector/vendor/symfony/dependency-injection/Compil in /home/lmoelleken/testing/git/rector/vendor/symfony/dependency-injection/Compiler/DefinitionErrorExceptionPass.php on line 54
How is this installed? It doesn't seem like composer require.
What is non-standard about this install related to file paths?
Try to add new correct path - C - here: https://github.com/rectorphp/rector/blob/master/packages/NodeTypeResolver/src/config/config.yml
Hi, I have the same issue on a fresh install via composer (on windows). Couldn't find any path working in the config.yml
Hello, same here
Just confirmed the bug, fix in progress
It was former bug, new release v0.3.34 fixes it (tested):
composer require rector/rector # v0.3.33
vendor/bin/rector # fails
composer require rector/rector # v0.3.34
vendor/bin/rector # success
Could you confirm?
The error is not there anymore. Can't confirm everything else is working, this was my first install.
I used a few levels and everything seems to work
Thanks for checking it