-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
Make use of RectorConfig and ECSConfig #2840
Conversation
2b0e2bb
to
dba0ed6
Compare
fda8840
to
1a7b29b
Compare
19b649d
to
a6a9d39
Compare
febe8cc
to
3830cda
Compare
3830cda
to
a216e10
Compare
Phew :) the huge configs makes my PhpStorm lag, but Rector helped itself to upgrade :) I hope I got everything right. This is good to go 👍 Could you check? |
Thank you very much. That looks pretty good. |
💪 |
@TomasVotruba How is the file
It should actually be |
@simonschaufi Thanks for reporting 👍 I don't know, but when you look for "ruleWithConfigure" string, it should be clear. |
@TomasVotruba I found it only within that file but that file looks like it's generated as it contains plenty of versions of TYPO3 extensions (which is not up-to-date anyway) and should be generated again. |
I'd simply replace it, as it didn't change last month. |
@TomasVotruba Sorry that this turns into a support chat but I found the command that generates the file but when calling it, I get the error from rector-src: " Node "PhpParser\Node\Expr\Closure" with parent of "PhpParser\Node\Stmt\Return_" is missing scope required for scope refresh." The command is: I'm totally lost what "missing scope" means here. I hope you as the founder of rector knows what that means? This is the file where the error comes from: https://github.com/sabbelasichon/typo3-rector/blob/main/config/composer/move_extension_from_ter_to_packagist.php |
This will be tricky... is the new |
I have no idea about that |
It looks like miss-use of |
I'm working on refactoring here #2998 It's almost done, just super slow. I'll seen during weekend, what can be improved :) thanks for reporting 👍 |
@simonschaufi So after 5 hours I've come to few findings :) the command is super slow because:
I see this code first time, as I only improve changes from Rector core here, so bear with me. The idea to improve this I had was:
I'm not sure this is helpful, as the command takes ~30 mins to run (maybe more) and any break is hell to debug. Another idea is:
Saying that, I don't want to invest more energy anymore, as to make it useful would take probably 3-5 days, as everything is new to me here. But you can continue with the exploration. Here is some work you can continue with https://github.com/sabbelasichon/typo3-rector/pull/2998/files |
Thanks Tomas. It worked quite well. Don't know why it is not anymore. Lost track of it. I think we should drop this as it turned out not to be used that much. I will have a deeper look next week. |
@TomasVotruba thank you so much for your investigation! |
No description provided.