arelange / gnome-shell-extension-hibernate-status

Gnome Shell extension that adds a hibernate/hybrid suspend button in Status menu.
GNU General Public License v2.0
156 stars 59 forks source link

reporting error - Expected type object for Argument 'widget' but got type 'undefined' #65

Closed csylvain closed 3 years ago

csylvain commented 3 years ago

status button not working. Ubuntu 20.04.2 LTS and Gnome snaps 3-28-1804/145 3-34-1804/66

error message:

Error: Expected type object for Argument 'widget' but got type 'undefined'

Stack trace:
  _init@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:208:25
  OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:122:28
  asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:132:13
  run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:175:20
  main@resource:///org/gnome/Shell/Extensions/js/main.js:19:13
  run@resource:///org/gnome/gjs/modules/script/package.js:222:19
  start@resource:///org/gnome/gjs/modules/script/package.js:206:5
  @/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17
p91paul commented 3 years ago

sorry, which gnome version are you on? This should be fixed by the latest version I uploaded for Gnome 3.36, 3.38 and 40.

p91paul commented 3 years ago

Also, you should be able to fix it by uninstalling and reinstalling.

csylvain commented 3 years ago

i expect the one i am "on" is the latest of the two versions i reported (Ubuntu 20.04.02 LTS), and the earlier gnome version is simply the compatibility libraries.

On Thu, Apr 15, 2021 at 6:39 PM Paolo Inaudi @.***> wrote:

sorry, which gnome version are you on? This should be fixed by the latest version I uploaded for Gnome 3.36, 3.38 and 40.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/arelange/gnome-shell-extension-hibernate-status/issues/65#issuecomment-820771352, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABRUYNOZTZMCTRR7MBPAGA3TI5TILANCNFSM427SOH3A .

csylvain commented 3 years ago

i am not certain why, but i appear to have resolved the issue not by using (gnome) Tweaks, but instead use my browser (firefox in this case) at extensions.gnome.org and poke at the extension configuration button. immediate result was red "Error" indication. rebooting the system cleared that indication.

On Thu, Apr 15, 2021 at 6:40 PM Paolo Inaudi @.***> wrote:

Also, you should be able to fix it by uninstalling and reinstalling.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/arelange/gnome-shell-extension-hibernate-status/issues/65#issuecomment-820771737, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABRUYNOTJNAJN4CUXRKNPYLTI5TMBANCNFSM427SOH3A .

p91paul commented 3 years ago

if you are on 3.34 then sure, the error appears if you try and open preferences. That's because the preferences widget was not implemented (there are no preferences to be set).

Not sure why you're installing an older version from snap, since Ubuntu 20.04 ships with 3.36 by default.

Anyway since it seems like the extension now works for you, I'm going to close this issue.

csylvain commented 3 years ago

i have not selected any gnome version or snap not automatically offered and installed by the distro

On Fri, Apr 16, 2021 at 2:57 PM Paolo Inaudi @.***> wrote:

if you are on 3.34 then sure, the error appears if you try and open preferences. That's because the preferences widget was not implemented (there are no preferences to be set).

Not sure why you're installing an older version from snap, since Ubuntu 20.04 ships with 3.36 by default.

Anyway since it seems like the extension now works for you, I'm going to close this issue.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/arelange/gnome-shell-extension-hibernate-status/issues/65#issuecomment-821480943, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABRUYNP3FO7VZDKMK44HCKDTJCCCRANCNFSM427SOH3A .

csylvain commented 3 years ago

also: preferences widget appeared before and again after the aforementioned error condition.

On Fri, Apr 16, 2021 at 8:15 PM Christopher Sylvain @.***> wrote:

i have not selected any gnome version or snap not automatically offered and installed by the distro

On Fri, Apr 16, 2021 at 2:57 PM Paolo Inaudi @.***> wrote:

if you are on 3.34 then sure, the error appears if you try and open preferences. That's because the preferences widget was not implemented (there are no preferences to be set).

Not sure why you're installing an older version from snap, since Ubuntu 20.04 ships with 3.36 by default.

Anyway since it seems like the extension now works for you, I'm going to close this issue.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/arelange/gnome-shell-extension-hibernate-status/issues/65#issuecomment-821480943, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABRUYNP3FO7VZDKMK44HCKDTJCCCRANCNFSM427SOH3A .