Gnome extensions give me error when updating

I update my GNOME extensions under this URL with the Chrome plugin

Every time I log back into Ubuntu 18.04 I get a notification, saying that there are updates for my GNOME extensions. But when I click on the green button to update, I always get an error message, that does not disappear until I reboot my machine.

I get that an update MIGHT break something, but that 3 or more extensions give me an error at the same time is very unlikely. Sounds more like a problem with my system.

Why could this be?

enter image description here


It has happened to me too on Ubuntu 20.04.1 each time I have updated a gnome-shell extension using the firefox gnome-shell integration plugin.

If you dig into the system logs you will discover that there is nothing to worry about:

sudo journalctl /usr/bin/gnome-shell | grep -i 'error.*extension'
nov 17 12:38:48 sunyata gnome-shell[1699]: JS ERROR: Extension [email protected]: Error: A different version was loaded previously. You need to log out for changes to take effect.
dec 14 09:44:26 sunyata gnome-shell[1985]: JS ERROR: Extension [email protected]: Error: A different version was loaded previously. You need to log out for changes to take effect.

As you can read, the error is actually just a warning. gnome-shell is reporting:

A different version (of the extension, N/A) was loaded previously. You need to log out for changes to take effect.

So, no need to worry about it. The error will disappear at the next login (either after log out or reboot).

If you want to make it disappear immediately you can force gnome-shell to reload extensions restarting it:

alt + f2 # to execute a command

r then enter # restart gnome-shell

I hope this information will be useful to the error-free-systems maniacs like me :)