p-e-w / argos

Create GNOME Shell extensions in seconds

Home Page:https://extensions.gnome.org/extension/1176/argos/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: Tried to construct an object without a GType; are you using GObject

pm314 opened this issue · comments

commented

In Gnome 3.34.2 (solus) Argos runs but when I click on the "extension" header, no drop down appears. Same behavior on several scripts and types (sh, py)
Looking at the log I see the error above repeated many times (as many times as menu items?). I disabled all scripts but the Argos.sh and restarted and see the error just a couple of times.
I've already completely uninstalled Argos, manually removed any leftovers, etc just to be sure but the problem is still there. Downgrading to 3.34.1 seems to fix it.

The error above was also recently reported in github for Gnome Shell System Monitor extension by someone on Arch Gnome. There is an explanation of the fix needed. I may take a shot at this with Argo but I am not a JS developer.

commented

Just an update. This is the same issue as previous closed issue which is caused by a change in gjs. It was reverted back temporarily in gjs 1.58.3 but is now back (for good) in gjs 1.63.2.

The extensions runs well in Gnome 3.42 (Arch linux) but the system log is flooded by the following message:
JS WARNING: [/home/focus/.local/share/gnome-shell/extensions/argos@pew.worldwidemann.com/menuitem.js 25]: Tried to construct an object without a GType; are you using GObject.registerClass() when inheriting from a GObject type?

I've cloned and copied the source code from github.
Is it possible to solve that or to remove the warning message in the log ?

The extensions runs well in Gnome 3.42 (Arch linux) but the system log is flooded by the following message:
JS WARNING: [/home/focus/.local/share/gnome-shell/extensions/argos@pew.worldwidemann.com/menuitem.js 25]: Tried to construct an object without a GType; are you using GObject.registerClass() when inheriting from a GObject type?

I've cloned and copied the source code from github.
Is it possible to solve that or to remove the warning message in the log ?

Just came here to post this same issue, logs being flooded with this.

image

image

image

I've just seen in the followinq PR that the author, p-e-w, has stopped maintaining argos.
So this issue won't be fixed for a while.
Bad news for us !

Now this appears again with the release of Gnome 3.36 as expected, see paradoxxxzero/gnome-shell-system-monitor-applet#551 (comment)