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
151 stars 54 forks source link

error updating extension #61

Closed csylvain closed 3 years ago

csylvain commented 3 years ago

received notification of new version. attempted update. result: ERROR displayed. `The settings of extension hibernate-status@dromi had an error:

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

Duplicate of #59. Please uninstall and reinstall, and do not open preferences page, it's not implemented anyway.

csylvain commented 3 years ago

have uninstalled extension, restarted browser, and then installed extension. result: immediate error shown.

seriously: something has broken. (see attached screenshot)

On Mon, Oct 12, 2020 at 3:14 AM Paolo Inaudi notifications@github.com wrote:

Duplicate of #59 https://github.com/arelange/gnome-shell-extension-hibernate-status/issues/59 . Please uninstall and reinstall, and do not open preferences page, it's not implemented anyway.

— 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/61#issuecomment-706924334, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABRUYNMT25R64W5R64DAGXDSKKUFHANCNFSM4SMB3B7A .

csylvain commented 3 years ago

Hibernate-Extension-screenshot

p91paul commented 3 years ago

can you collect logs during install?

csylvain commented 3 years ago

which logs where? i'm not a browser extension coder.

On Mon, Oct 12, 2020 at 5:01 PM Paolo Inaudi notifications@github.com wrote:

can you collect logs during install?

— 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/61#issuecomment-707343946, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABRUYNPIRH6CECJP5EFYCRTSKNVEPANCNFSM4SMB3B7A .

csylvain commented 3 years ago

upgrade successful with new version:
[uninstall] ALT-F2 r [install from Extensions]

the ALT-F2 r resets the gnome-shell

nathan-weinberg commented 3 years ago

Encountered the same here as well

Running Fedora 32 with GNOME 3.36.7

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

see my last comment above.

nathan-weinberg commented 3 years ago

Best way to do that?

antoine-pous commented 3 years ago

@p91paul why don't you simply add a placeholder for the preferences panel? It will fix this issue properly. Actually i'm encountering the exact same issue, then the extension install is broken :/

p91paul commented 3 years ago

I did it on the gnome shell 3.38 version, unfortunately you are stuck with an older one.