Troubleshooting
Depending on how large your files are or your local environment has in terms of resources, Rector can fail.
Here are few workarounds you can use to troubleshoot and ensure it runs.
Child process timed out after 120 seconds
[ERROR] Could not process
"/path/to/sugar/rector-0.15.20/vendor/symplify/easy-parallel/src/ValueObject/ParallelProcess.php"
file, due to:
"Child process timed out after 120 seconds". On line: 108
try to add the following to the end of rector.php:
$rectorConfig->parallel(900);
Reached system errors count limit of 50, exiting...
[ERROR] Could not process some files, due to:
"Reached system errors count limit of 50, exiting...".
try to add the following to the end of rector.php:
$rectorConfig->disableParallel();