-
Notifications
You must be signed in to change notification settings - Fork 101
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
Unable to find the wrapper "phar" #435
Comments
Maybe Magento will fix this on their end? (lol) That's super annoying. We can probably fix it on this side by calling
I probably won't have time to work on this for a week or so, so if someone else wants to grab it from me and fix it then PR away. @srenon out of curiosity, what do you use this command for? Most of the non |
Using the same fix as n98-magerun2 which work perfectly on 2.2.8. I did not test on other versions of Magento netz98/n98-magerun2@59e0aec#diff-e42fe36d3628b1f8e91a653d64c7ba6d
Thanks for the quick reply! I was just testing out Pestle and that was the first command I tried because I was curious to see what it does. But funny enough I had the same exact issue with an older version of n98-magerun2 with preventing all the functions from working. So I assumed the same was true here, but after trying other function they all worked. |
Yes. This one command loads up Magento's While it's possible to use Magneto classes without bootstrapping, you end up needing to manually instantiate everything in any constructor (thanks to Magento's automatic constructor dependency injection), which can be pretty tedious and error prone. Other pestle commands don't need to load/bootstrap a Magento environment, so they're fine. I yoinked a fix from @cmuench and merged it. I'm honestly not sure when this fix will land in a release -- historically we tend to flll up a "current sprint" milestone with 10 complete issues and then do a release, but development's been slow around here and the docs sprint is our priority at the moment. And when I say "we" and "our" I mean me :) If anyone's burning to checkout this command with a Magento 2.3.1 system the README has instructions for using @srenon Thanks again for reporting this, and apologies that your first experience with pestle was an error. |
Magento 2.2.8
$ php pestle.phar magento2:class-list
Warning: require(): Unable to find the wrapper "phar" - did you forget to enable it when you configured PHP? in /MagePal/magento2ce/lib/internal/Magento/Framework/registration.php on line 14
Warning: require(): Unable to find the wrapper "phar" - did you forget to enable it when you configured PHP? in /MagePal/magento2ce/lib/internal/Magento/Framework/registration.php on line 14
Warning: file_get_contents(): Unable to find the wrapper "phar" - did you forget to enable it when you configured PHP? in phar:///MagePal/magento2ce/pestle.phar/modules/pulsestorm/pestle/importer/module.php on line 273
Warning: file_get_contents(phar:///MagePal/pestle.phar/modules/pulsestorm/magento2/cli/class_list/module.php): failed to open stream: No such file or directory in phar:///MagePal/magento2ce/pestle.phar/modules/pulsestorm/pestle/importer/module.php on line 273
Notice: Undefined index: file in phar:///MagePal/magento2ce/pestle.phar/modules/pulsestorm/pestle/importer/module.php on line 407
Warning: file_get_contents(): Filename cannot be empty in phar:///MagePal/magento2ce/pestle.phar/modules/pulsestorm/pestle/importer/module.php on line 273
See
The text was updated successfully, but these errors were encountered: