Tudmotu / gnome-shell-extension-clipboard-indicator

The most popular clipboard manager for GNOME, with over 1M downloads
https://extensions.gnome.org/extension/779/clipboard-indicator/
MIT License
892 stars 169 forks source link

Error: Could not guess unspecified GValue type #296

Closed julienkosinski closed 3 years ago

julienkosinski commented 3 years ago

Hi,

When I open Settings, I have a "Something went wrong" page with this error.

The settings of extension clipboard-indicator@tudmotu.com had an error:

Error: Could not guess unspecified GValue type

Stack trace:

addKeybinding@/home/julien/.local/share/gnome-shell/extensions/clipboard-indicator@tudmotu.com/prefs.js:281:11
_init@/home/julien/.local/share/gnome-shell/extensions/clipboard-indicator@tudmotu.com/prefs.js:109:22
wrapper@resource:///org/gnome/gjs/modules/script/_legacy.js:83:27
_Base.prototype._construct@resource:///org/gnome/gjs/modules/script/_legacy.js:19:10
newClass@resource:///org/gnome/gjs/modules/script/_legacy.js:115:21
buildPrefsWidget@/home/julien/.local/share/gnome-shell/extensions/clipboard-indicator@tudmotu.com/prefs.js:257:18
_init@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:207:40
OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:122:28
asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:115:22
run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:177:20
main@resource:///org/gnome/Shell/Extensions/js/main.js:19:13
run@resource:///org/gnome/gjs/modules/script/package.js:206:19
start@resource:///org/gnome/gjs/modules/script/package.js:190:8
@/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17

It's Ubuntu 21.04 on Wayland or Xorg GNOME Shell 3.38.4

Thanks :)

vtlkzmn commented 3 years ago

Same with me.

I've tried to make this work by

model.set(row,
            [COLUMN_ID, COLUMN_DESCRIPTION, COLUMN_KEY, COLUMN_MODS],
            [id.toString(),        description.toString(),        Number(key),        Number(mods)]);

With this error appeared elsewhere.

The settings of extension clipboard-indicator@tudmotu.com had an error:

TypeError: inputWidget.append is not a function

Stack trace:

_init/addRow</<@/xxx/.local/share/gnome-shell/extensions/clipboard-indicator@tudmotu.com/prefs.js:197:33
_init@/xxx/.local/share/gnome-shell/extensions/clipboard-indicator@tudmotu.com/prefs.js:216:15
wrapper@resource:///org/gnome/gjs/modules/script/_legacy.js:83:27
_Base.prototype._construct@resource:///org/gnome/gjs/modules/script/_legacy.js:19:10
newClass@resource:///org/gnome/gjs/modules/script/_legacy.js:115:21
buildPrefsWidget@/xxx/.local/share/gnome-shell/extensions/clipboard-indicator@tudmotu.com/prefs.js:257:18
_init@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:207:40
OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:122:28
asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:115:22
run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:177:20
main@resource:///org/gnome/Shell/Extensions/js/main.js:19:13
run@resource:///org/gnome/gjs/modules/script/package.js:206:19
start@resource:///org/gnome/gjs/modules/script/package.js:190:8
@/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17

Ubuntu 21.04 Wayland,

gnome-shell --version
GNOME Shell 3.38.4
hjwk commented 3 years ago

Same here

Error: Could not guess unspecified GValue type

Stack trace:
  addKeybinding@/home/ewoshub/.local/share/gnome-shell/extensions/clipboard-indicator@tudmotu.com/prefs.js:281:5
  App<._init@/home/ewoshub/.local/share/gnome-shell/extensions/clipboard-indicator@tudmotu.com/prefs.js:109:9
  wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
  _Base.prototype._construct@resource:///org/gnome/gjs/modules/_legacy.js:18:5
  Class.prototype._construct/newClass@resource:///org/gnome/gjs/modules/_legacy.js:114:32
  buildPrefsWidget@/home/ewoshub/.local/share/gnome-shell/extensions/clipboard-indicator@tudmotu.com/prefs.js:257:18
  _selectExtension@resource:///org/gnome/shell/extensionPrefs/main.js:91:22
  wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
  _onCommandLine@resource:///org/gnome/shell/extensionPrefs/main.js:243:17
  wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
  main@resource:///org/gnome/shell/extensionPrefs/main.js:397:5
  @<main>:1:43

Fresh install of Ubuntu 18.04 GNOME Shell 3.28.4

Tudmotu commented 3 years ago

Can you try installing an earlier version?

kryptish commented 3 years ago

ran into the same error GNOME 3 + Wayland, installed version 36 and now the settings page seems to work

whiskybar commented 3 years ago

I'm afraid this PR https://github.com/Tudmotu/gnome-shell-extension-clipboard-indicator/pull/280 removes some compatibility with the earlier GNOME versions. I tried reverting some changes manually and I got the preferences dialog back up again.

cmoetzing commented 3 years ago

V37 works for me aswell. All versions above that seem to break the settings.

aggeboe commented 3 years ago

V37 works for me aswell. All versions above that seem to break the settings.

V37 works for me as well

Tudmotu commented 3 years ago

Thanks for verifying. Newer version support GNOME 40 and above. Closing this issue.