Parallel processing on 0.12.0
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3263701. -->
Reported by: [navneet0693](https://www.drupal.org/user/3200545)
>>>
<h2>Drupal version</h2>
<p>Drupal 9.3.5</p>
<h2>Drupal Rector version</h2>
<p>0.12.0</p>
<h2>Problem / Motivation</h2>
<p>I enabled the parallel processing option in rector.php file by adding following lines</p>
<p><code>$parameters->set(Option::PARALLEL, TRUE);</code></p>
<p>I took the motivation from <a href="https://github.com/rectorphp/rector/issues/2971">https://github.com/rectorphp/rector/issues/2971</a></p>
<p>I kept facing following errors:</p>
<pre>[ERROR] Could not process<br> "html/profiles/contrib/social/modules/custom/activity_basics/src/Plugin/ActivityEntityCondition/CommentAllActiv<br> ityEntityCondition.php" file, due to:<br> "System error: "PHPStan\BetterReflection\Reflection\ReflectionClass "Drupal\user\EntityOwnerInterface" could<br> not be found in the located source"<br> Run Rector with "--debug" option and post the report here: https://github.com/rectorphp/rector/issues/new". On line: 26</pre><p>after which rector stopped processing.</p>
<p>I tried following instructions given in <a href="https://github.com/rectorphp/rector/blob/main/docs/static_reflection_and_autoload.md#dealing-with-class--was-not-found-while-trying-to-analyse-it">https://github.com/rectorphp/rector/blob/main/docs/static_reflection_and_autoload.md#dealing-with-class--was-not-found-while-trying-to-analyse-it</a> but it didn't seemed to be working.</p>
<p>If I added following to composer.json</p>
<pre>"autoload-dev": {<br> "files": [<br> "html/core/modules/user/src/EntityOwnerInterface.php",<br> "html/core/modules/user/src/UserInterface.php",<br> "html/core/modules/views/src/EntityViewsDataInterface.php",<br> "html/profiles/contrib/social/modules/custom/activity_creator/src/ActivityInterface.php"<br> ]<br>}</pre><p>It stopped complaining about the classes listed, but the list grew on.</p>
<p>I am using <a href="https://github.com/goalgorilla/drupal_social/pull/365">https://github.com/goalgorilla/drupal_social/pull/365</a> branch.</p>
issue