gnome-extensions enable doesn't indicate error
Affected version
- GNOME OS Nightly
- GNOME 40 Beta
- Wayland
Bug summary
When running gnome-extensions enable
results in an error, nothing is printed to STDOUT or STDERR, and a 0 exit code is returned.
Steps to reproduce
- Create a new extension:
gnome-extensions create --name="No Op" --description="Do nothing" --uuid=no-op@justinrdonnelly.github.com
- Change
shell-version
inmetadata.json
to be a shell other than the one you are using (or none at all) - Log out and back in
- Attempt to enable the extension via CLI:
gnome-extensions enable no-op@justinrdonnelly.github.com
- Nothing is printed to STDOUT or STDERR
- The return code (
echo $?
) is 0
You can use GNOME Extensions (flatpak) (flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo && flatpak install gnome-nightly org.gnome.Extensions && flatpak run org.gnome.Extensions
) to see that the extension is not enabled, and cannot be enabled. You can also see the error message "The extension is incompatible with the current GNOME version".
What happened
gnome-extensions enable
printed nothing to STDOUT or STDERR, and returned a zero exit code even though it did not enable the extension
What did you expect to happen
gnome-extensions enable
print an error message to STDERR, and return a non-zero exit code
Relevant logs, screenshots, screencasts etc.
N/A