?
avatar PhilETaylor
PhilETaylor
2 Apr 2021

Steps to reproduce the issue

php cli/joomla.php extension:discoverinstall

Expected result

a single message saying that there were no extensions discovered.

Actual result

Two messages, one is a yellow warning and one is an OK.

Screenshot 2021-04-02 at 16 37 17

System information (as much as possible)

4.0-dev

Additional comments

avatar PhilETaylor PhilETaylor - open - 2 Apr 2021
avatar joomla-cms-bot joomla-cms-bot - change - 2 Apr 2021
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 2 Apr 2021
avatar PhilETaylor
PhilETaylor - comment - 2 Apr 2021

Unlike the web interface this command doesn't "discover" and return a list - it just blindly installs anything it finds which is bad as the expectation is that it would be like the web interface.

Possibly consider breaking this up into two commands, one for discovering and one for installing, maybe even with a --installall param on the discover command to blindly install all it finds.

Just thoughts

avatar brianteeman
brianteeman - comment - 2 Apr 2021

Unlike the web interface this command doesn't "discover" and return a list - it just blindly installs anything it finds which is bad as the expectation is that it would be like the web interface.

I thought we had this discussion before?

avatar PhilETaylor
PhilETaylor - comment - 2 Apr 2021
avatar brianteeman
brianteeman - comment - 2 Apr 2021
avatar PhilETaylor
PhilETaylor - comment - 2 Apr 2021

Does this find the extensions or does it install them?

Well that's the point. It does both, blindly installing anything it finds. My point is that is not really what we (Joomla) should be looking to do and that the command should be broken up or improved,

avatar astridx
astridx - comment - 2 Apr 2021

If you want to install an extension specifically, then you can give the id. Then only this one will be installed.

avatar brianteeman
brianteeman - comment - 2 Apr 2021

but how do you find out which ones are available?

avatar PhilETaylor
PhilETaylor - comment - 2 Apr 2021

Its still a totally different expectation to the admin console.

There should be a

"Discover" = "List of discovered extensions"
"install All" = "installs all discovered extensions"
"install a single extension" = "installs a single discovered extension"

The last two can be merged with input options/arguments I guess

At the moment the default is just to discover and install all. I say that's the wrong expectation. Just running the command should give a LIST of discovered extensions, else where am I to get the ID from to install...

But all this is all mute anyway, because it doesn't EVEN WORK - it doesn't discover anything at the CLI !!!

Screenshot 2021-04-02 at 19 21 28

Screenshot 2021-04-02 at 19 21 38

avatar laoneo
laoneo - comment - 3 Apr 2021

Here you can see what I had to do to find, discover and install the extensions before I setup Joomla in DPDocker. Perhaps it helps.

avatar alikon alikon - change - 10 May 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-05-10 17:11:43
Closed_By alikon
avatar alikon alikon - close - 10 May 2021
avatar alikon
alikon - comment - 10 May 2021

please test #33749

Add a Comment

Login with GitHub to post a comment