SUPERCILEX / gnome-clipboard-history

Gnome Clipboard History is a clipboard manager Gnome extension that saves what you've copied into an easily accessible, searchable history panel.
https://extensions.gnome.org/extension/4839/clipboard-history/
MIT License
470 stars 46 forks source link

[BUG] Upgrading to GNOME 46 breaks the extension (version mismatch ?) #166

Closed EDM115 closed 6 months ago

EDM115 commented 6 months ago

This one is a bit special
I installed the extension on Ubuntu 23.10, so GNOME 45, extension version 40
After upgrading my Ubuntu to 24.04, the extension was marked as not working. The only way around was to remove it, and then install the correct version (GNOME 46 extension, version 39)

SUPERCILEX commented 6 months ago

That's a annoying, but I have no idea what could be the cause, how to fix it, or if that's even something that can be fixed by the extension. :sweat_smile: Also since it's a one-time thing, I'm not going to think about it too hard. Thanks for the bug report though!

artemudovyk commented 6 months ago

For me it said TypeError: hbox.add is not a function if it would be helpful to debug.

Reinstalled the extension as well, and now it seems ok.

SUPERCILEX commented 6 months ago

For me it said TypeError: hbox.add is not a function if it would be helpful to debug.

Reinstalled the extension as well, and now it seems ok.

Thanks! Here's my theory as to what's happening then. These are the extension versions: image

I uploaded things in reverse order for whatever reason, so I'm guessing that gnome is refusing to downgrade the extension to the 46 compatible version because it has a lower version code. Really gnome needs extension version codes to be a pair of GNOME version and extension version, but oh well.

I re-uploaded the v39 extension so it gets a higher version code than the gnome 45 extension.

EDM115 commented 6 months ago

gnome is refusing to downgrade the extension to the 46 compatible version because it has a lower version code

that's what I supposed on the title with "version mismatch"
but their behavior is really weird imo

SUPERCILEX commented 6 months ago

Oh, my bad I missed that. Rereading your issues it's obvious but yeah I didn't realize it until I saw the crash that I knew we had already fixed.