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

Class 'Rector\Core\Console\Style\SymfonyStyleFactory' not found #4725

Closed
staabm opened this issue Nov 28, 2020 · 2 comments
Closed

Class 'Rector\Core\Console\Style\SymfonyStyleFactory' not found #4725

staabm opened this issue Nov 28, 2020 · 2 comments
Labels

Comments

@staabm
Copy link
Contributor

staabm commented Nov 28, 2020

Bug Report

Subject Details
Rector version d962e3f
Installed as composer dependency

just installed rector as a composer global dependency and starting it leads to the following exception

$ composer rector
> rector process --config=.tools/rector/rector.php
PHP Fatal error:  Uncaught Error: Class 'Rector\Core\Console\Style\SymfonyStyleFactory' not found in C:\dev\composer\vendor\rector\rector\bin\rector.php:35
Stack trace:
#0 C:\dev\composer\vendor\rector\rector\bin\rector(4): require_once()
#1 {main}
  thrown in C:\dev\composer\vendor\rector\rector\bin\rector.php on line 35
Fatal error: Uncaught Error: Class 'Rector\Core\Console\Style\SymfonyStyleFactory' not found in C:\dev\composer\vendor\rector\rector\bin\rector.php:35
Stack trace:
#0 C:\dev\composer\vendor\rector\rector\bin\rector(4): require_once()
#1 {main}
  thrown in C:\dev\composer\vendor\rector\rector\bin\rector.php on line 35
Script rector process --config=.tools/rector/rector.php handling the rector event returned with error code 255
$ php -v
PHP 7.3.0 (cli) (built: Dec  6 2018 02:17:00) ( ZTS MSVC15 (Visual C++ 2017) x86 )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.0-dev, Copyright (c) 1998-2018 Zend Technologies
    with blackfire v1.24.1~win-x32-zts73, https://blackfire.io, by Blackfire

on windows10x64

@staabm
Copy link
Contributor Author

staabm commented Nov 28, 2020

IIRC I had the same error on a different workstation last time I tried to get rector-prefixed running (in a regular project dependency setup)

@TomasVotruba
Copy link
Member

Rector only support composer install, as global has different scope that we don't work with in the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants