Re: [gnome-shell-ext] imports.misc.util throwing "Error: Requiring Shell, version none: Typelib file for namespace 'Meta', version '3.0' not found"



If you can run `imports.misc.util` in lg, then it's run basically the same way as an extension. There shouldn't be any error in a way you're describing. You could put the current state of your code on github or somewhere where we can get a more complete picture in order to try and reproduce it.

Shell debugging is quite a problem. I hope we will have better tools in the future.

Mario

Am Freitag, den 18.11.2016, 12:16 -0200 schrieb Vitor Araujo Boufleur:

Hi Mario, thanks for responding, I joined the mailing list.

Executing 'gnome-shell --version' gives me 'GNOME Shell 3.20.4'.

I'm running this command in the shell extension context, not through user context.

I ran the command through LookingGlass in two ways:

1

const Util = imports.misc.util;

2

imports.misc.util

There doesn't seem to have any error. Do you know what may cause this bug?


Em 18-11-2016 06:59, Mario Wenzel escreveu:
Hi Vitor,

first of all, as an extension developer you might want to join this
(rather new) mailing list. This is the way we (the GNOME people) want
to keep touch with the extension developer community.

Then please tell us which shell version you're running and in which
context you're running this command. For example, if you're creating a
shell extension, you can't run it with gjs, it has to be run from the
shell context instead of the user context (which would be gjs).

If you press alt+f2 and enter "lg", you get a js console in the shell
context. Does the command work there?

Mario


Am Donnerstag, den 17.11.2016, 16:41 -0200 schrieb Vitor Araujo
Boufleur:
Hi all,

This line "const Util = imports.misc.util;" is throwing this error 
"Error: Requiring Shell, version none: Typelib file for namespace 
'Meta', version '3.0' not found".

Stack trace:
   @resource:///org/gnome/shell/misc/util.js:7
@/home/CENSORED/.local/share/gnome-
shell/extensions/CENSORED/lib/util.js:34
@/home/CENSORED/.local/share/gnome-
shell/extensions/CENSORED/prefs.js:7
Application<._getExtensionPrefsModule@resource:///org/gnome/shell/ext
ensionPrefs/main.js:74
   wrapper@resource:///org/gnome/gjs/modules/lang.js:178
Application<._selectExtension@resource:///org/gnome/shell/extensionPr
efs/main.js:89
   wrapper@resource:///org/gnome/gjs/modules/lang.js:178
Application<._onCommandLine@resource:///org/gnome/shell/extensionPref
s/main.js:238
   wrapper@resource:///org/gnome/gjs/modules/lang.js:178
   main@resource:///org/gnome/shell/extensionPrefs/main.js:376
   @<main>:1

Does anyone know the cause of this?

With regards,
Vitor Araujo Boufleur


_______________________________________________
gnome-shell-extensions-list mailing list
gnome-shell-extensions-list gnome org
https://mail.gnome.org/mailman/listinfo/gnome-shell-extensions-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]