Laravel-Backpack / devtools-issues

Bug reports and feature requests for our closed-source DevTools package
4 stars 1 forks source link

[Bug] Error on install #48

Open jfelixoptimiumnc opened 2 years ago

jfelixoptimiumnc commented 2 years ago

Hi,

image

php artisan backpack:require:devtools

INFO Connecting to the Backpack add-on repository

│ Backpack repository entry is present in composer.json. │ Backpack authentication token is present.

Require Backpack DevTools on dev .............................................................................. ERROR │ For further information please check the log file. │ You can also follow the manual installation process documented in https://backpackforlaravel.com/addons/

Thx for your help.

pxpm commented 2 years ago

Hey @jfelixoptimiumnc

Can you please check storage/logs/ and tell me what was logged there when this error happened ?

Cheers

tabacitu commented 2 years ago

Ouch! Thanks for reaching out.

Any chance you can follow the manual process here, you should get a more specific error message, at the very least?

https://backpackforlaravel.com/products/devtools

jfelixoptimiumnc commented 2 years ago

Hi Christian,

Indeed, sorry did not see the manual procedure. It works.

The point is that I use "composer.phar" on the root folder so i guess the auto procedure fails (confirmed from the logs).

Thx for your quick help.

Best,

tabacitu commented 2 years ago

Damn... composer.phar - that's right, we didn't take that into account... Thank you @jfelixoptimiumnc 🙏

Can we take that into consideration when we run composer commands @promatik ? Options:

maurohmartinez commented 1 year ago

@tabacitu I am not that familiar with the installation process and it is taking me long to get my head around it. I don't have a problem to invest more time, but I just figured out that maybe you have someone else who can take over this? Or I can research a bit more until I can do it. Let me know!

tabacitu commented 1 year ago

Good thinking @maurohmartinez . @pxpm any insight into this?

pxpm commented 1 year ago

@tabacitu from my research I think it's safe to use app()->composer() since they have a "search composer" function that will look for the .bat fille. https://github.com/laravel/framework/blob/11edbfee376a3822911d9df1044c618eb584dce6/src/Illuminate/Support/Composer.php#L68

tabacitu commented 1 year ago

Awesome. Yeah, then let's do that!