Class 'MonorepoBuilder20210703\Symfony\Component\Console\Input\ArgvInput' not found in /bin/monorepo-builder.php #3388
Comments
9.4.5 does work. I currently use |
This is probably due to missing downgraded Related repository, that should pass https://github.com/symplify/monorepo-builder |
…8e86f3 deprecated-packages/symplify@1b42079 allow vendor to be commited, ref deprecated-packages/symplify#3388 (comment)
…2f8e86f3 deprecated-packages/symplify@1b42079 allow vendor to be commited, ref deprecated-packages/symplify#3388 (comment)
We're getting green again :) https://github.com/symplify/monorepo-builder |
Just released https://github.com/symplify/monorepo-builder/releases/tag/9.4.10 that shoud work 👍 Big thanks to @jenkoian for initial setup of downgrade run. Apart few details it was very clean and did the most amount of work 👍 |
Thanks (and sorry!) |
That's ok, It took me at least 3 months to set up first downgrade that would work :D you made it with-in a week a with rather technical glitches that you could not predict. It was fairly easy to fix. So thank you 🙇 |
Thanks @TomasVotruba. What about the changed namespace though, are we going to get the basic |
@signor-pedro Hey. What do you need the namespace for? :) It can be ommited from scoping like this in ECS: Here is scoping configuration for MonorepoBuilder that needs to be updated: |
@TomasVotruba Thanks for the reply, I am not really sure I understand the whole What I do is simply install It all worked fine until a couple of days ago, when our CI pipeline broke on static analysis (we're using psalm to perform analysis). Psalm is not optional in our pipeline (psalm failing = no deploy), as it helps us catch a lot of bugs. Now the question is, whether I can expect the namespace to become once again Sorry for bothering you with my 0 knowledge on this subject :) |
I see, thanks for sharing :) |
Should be fixed in 3302afd |
…fb63be deprecated-packages/symplify@3302afd [MonorepoBuilder] Unscope main namespace, to allow using configs and workers - closes deprecated-packages/symplify#3388 (comment)
…3bfb63be deprecated-packages/symplify@3302afd [MonorepoBuilder] Unscope main namespace, to allow using configs and workers - closes deprecated-packages/symplify#3388 (comment)
deprecated-packages/symplify@3302afd [MonorepoBuilder] Unscope main namespace, to allow using configs and workers - closes deprecated-packages/symplify#3388 (comment)
Great, many thanks! |
Damn... one more issue https://github.com/symplify/monorepo-builder/runs/2998396258 |
Allright, now it's green :) symplify/monorepo-builder@8ace2be Could you verify the version is running ok? |
@TomasVotruba sorry to bother you but the pipeline is still red 😢 even on 9.4.12. One thing that has changed is that PHPStorm now recognizes the namespace - the However, now PHPStorm complains that some polymorphism requirements have not been met: It does seem that even if the Psalm still complains that Sorry for the bad news, I know OSS is harsh, I can hard-code our dependency on 9.4.5 until you have some more time to fix this - no stress. |
P.S. if the dynamic namespace resolution is the way you want to go from now, and psalm has a problem with that, I can just exclude the whole I am "out-of-context" and don't see the reasons for why you are doing prefixed namespaces - but you are the architect, it's your choice ;) I can adjust |
No problem. Could you try
I see. The
I think other tools don't have an acess to MonorepoBuilder' autoload. It has own vendor that is accessible only in |
The reason for scoping is installation for older projects. Let's look at a case without prefixing & downgrading: composer require symfony/console 4.4
# php 7.4
composer require symplify/monorepo-builder
# error: symplify/monorepo-builder requires PHP 8, symfony/console 5.4 With prefixing on the other hand, you don't care about this: composer require symfony/console 2.8
# php 7.1
composer require symplify/monorepo-builder
# of course :) |
I'm affraid that is need for any static analysis tool... or you can include the autoload file there. E.g. like this: # phpstan.neon
parameters:
bootstrapFiles:
- vendor/squizlabs/php_codesniffer/autoload.php |
I've extended my comment and know-how behind these scopings to 2 posts :) cc @jenkoian, in case you'd like to scope another package, this will give you more exact steps to rely on 👍 |
Thanks @TomasVotruba! Interested in your thoughts on this versus the kind of approach PHP CS Fixer suggests i.e. a 'scoped' directory for each tool. I guess, the scoper tool comes in particularly useful when you need to use the vendor classes within your code and thus need to use the same autoloader, rather than just have a tool 'act' on your code. |
Hi, that is like renaming It's a cheaper solution if scoping is too hard (the tooling is very weak, I often gave it up and used some hack), but in the end it brings more problem. Like multiple vendor with same class etc. |
@TomasVotruba thank you very much for your effort. I just got back from my 3-week vacation, I will let you know in the next couple of days if the latest version passes on our CI. Also, thank you for writing up about the prefixing! |
Thanks for reaching out 🙂 👍 I hope you're fresh and well rested 💪 |
We are currently getting this error when trying to execute the
vendor/bin/monorepo-builder
binary with the latest release9.4.8
:The text was updated successfully, but these errors were encountered: