-
-
Notifications
You must be signed in to change notification settings - Fork 708
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
Keeps on getting hung up with no message #7988
Comments
Please try latest dev-main:
If the issue persist, please provide reproducible test on https://getrector.com/demo/ , or we need simple reproducible code for that that show error, with only 1 or 2 rules, you can provide reproducible github repo, better with github action running https://tomasvotruba.com/blog/2021/02/01/effective-debug-tricks-narrow-scoping/ |
OK, so I did what you ask, and used the latest dev-main. But the results were the same. It kept on stalling on certain files each time I ran. Those particular files it was stalling on ran through fine on the demo page, using the same rector.php settings so they did not appear to the cause of the stalls. so, next, I tried to narrow the scope and scanned even a narrower set of files. This folder included files it got hung up on before. This time, using a narrower scope, it completed the scan and wrote this error at the end:
Stack trace:
#0
|
we unfortunatelly can't help without reproducible code and rule(s) that cause a bug. |
Is there a hard limit on how many files that be run in one go? Because it seems to be completed most of the time when I run on a smaller subset (most of the time) |
I tried to reproduce it on your demo site. I trimmed the file to meet the 100 line requirement and ran the 4 MySQL individual rules. While I did not get errors, there were no file changes either. My expectation was this file should have been changed. Or is my understanding not right? here is the link to the demo: https://getrector.com/demo/03796e2f-4c74-4ce4-9f16-a8987b2ba578 My command line is: My rector.php file is:
the end result is always the same:
|
Closing as it seems resolved at rectorphp/rector-src#4375 Please create separate issue with specific rule and specific expected output when you found an issue to keep focus to fix issue one by one. Thank you. |
Rector version: 0.17.0
OS windows 11 Pro
commands:
vendor\bin\rector process path-to-folder --debug --dry-run
also:
vendor\bin\rector process path-to-folder --debug --dry-run >> output.txt
Rector.php contents:
It does not appear to be stuck at any one file. Whether I output to a text file on console, it gets stuck.
I have a fairly powerful system i9 24 cores 64gb ram
there are about 14,000 php files
There is no error message
The text was updated successfully, but these errors were encountered: