Bug #99396
closedcli command extension:activate is not listed in list of posstible commands
0%
Description
See Slack: https://typo3.slack.com/archives/C025BQLFA/p1671087861055179
seems we have a bug here..
It's still possible via
typo3/sysext/core/bin/typo3 extension:activate extensionkey
…but the command is missing in the help output.
(There is a condition to hide the command in composer mode, but that seems to be broken)
Apparently, in non-Composer mode the command extension:activate is available (and works), but is not listed in list of commands.
Reproduce¶
Run command
- typo3/sysext/core/bin/typo3 in a non Composer TYPO3 installation.
It lists the possible commands. It does not list extension:activate (and extension:deactivate).
It only lists these commands which start with extension:
extension:list Shows the list of extensions available to the system
extension:setup Set up extensions
All system extension are activated except for:
- indexed_search
- linkvalidator
- opendocs
- workspaces
System¶
- reproduced with v11 (latest 11.5 branch) in non-Composer installation
I don't know if this command should also be available in TYPO3 v12, but it is not shown there as well.
Updated by Sybille Peters almost 2 years ago
- Status changed from New to Closed
Closing. This is not a core issue, it is a typo3_console issue, see https://docs.typo3.org/p/helhum/typo3-console/5.8/en-us/CommandReference/ExtensionActivate.html
Updated by Benjamin Franzke almost 2 years ago
- Status changed from Closed to Accepted
- Assignee set to Benjamin Franzke
This is a TYPO3 core-bug, not a typo3_console issue.
It seems the evaluation of env-var statements in tag attributes broke due to some symfony/dependency-injection update.
So basically something like …
# https://github.com/TYPO3/typo3/blob/v11.5.21/typo3/sysext/extensionmanager/Configuration/Services.yaml#L18 hidden: "%env(TYPO3:isComposerMode)%"
… no longer evaluates to
true
or false
, but always results in the string "%env(TYPO3:isComposerMode)%"
being processed by the ConsoleCommandPass, and then hidden
with a truthy string value always evaluates to true and thus hides the command both in classic mode (where it should have been shown) and compose mode.Updated by Georg Ringer 5 months ago
- Status changed from Accepted to Needs Feedback
works in 13, should we close?
Updated by Sybille Peters 5 months ago · Edited
- Status changed from Needs Feedback to Closed
Benjamin You set this to "Accepted". Since Georg said it works in v13, I am closing. Please reopen or comment if not not ok.