Giter VIP home page Giter VIP logo

Comments (7)

dpoetzsch avatar dpoetzsch commented on July 17, 2024 2

@omron93 I just upgraded to Fedora 35 and the patch you suggested works wonderfully. I already applied it in the repo and will publish a new version now. So no need for a PR :-)

from keyman.

dpoetzsch avatar dpoetzsch commented on July 17, 2024

Thanks for your report!

This seems to be a problem with the commonjs implementation of https://github.com/darkoverlordofdata/gir2dts and gnome 41. Maybe Gnome 41 finally has a module loader integrated into core?

I don't have gnome 41 myself yet but this does not look like I can just do a quick fix for this. I'll have to find time to look at it.

from keyman.

rpkamp avatar rpkamp commented on July 17, 2024

I just switched to Gnome 41 and didn't get that error. I did get a very similar error, but about "console".

So I removed the bit about console from keyringDbus.js (https://github.com/dpoetzsch/keyman/blob/master/keyringDbus.js#L35-L40), bumped the Gnome version to 41 in metadata.json and the extension is working as it should now for me (using ./deploy.sh, logging out and logging back in).

I'm running Fedora 35 with GNOME Shell 41.2 (gjs 1.70.0)

from keyman.

negesti avatar negesti commented on July 17, 2024

Just upgrade to Fedora 35 too and had to comment the console lines in keyringDbus.js.

34 })) }, 35 /**console: { value: { 36 log: function () { print.apply(null, arguments); }, 37 warn: function () { print.apply(null, arguments); }, 38 error: function () { print.apply(null, arguments); }, 39 info: function () { print.apply(null, arguments); } 40 } },**/

from keyman.

omron93 avatar omron93 commented on July 17, 2024

@rpkamp is right and simple patch like this and bash ./deploy.sh works quite fine with Gnome 41.

diff --git a/keyringDbus.js b/keyringDbus.js
index 686c67d..eff58c0 100644
--- a/keyringDbus.js
+++ b/keyringDbus.js
@@ -32,12 +32,12 @@ Object.defineProperties(window, {
             Pango: { id: 'Pango', exports: imports.gi.Pango },
             GObject: { id: 'GObject', exports: imports.gi.GObject }
         })) },
-    console: { value: {
-            log: function () { print.apply(null, arguments); },
-            warn: function () { print.apply(null, arguments); },
-            error: function () { print.apply(null, arguments); },
-            info: function () { print.apply(null, arguments); }
-        } },
+//    console: { value: {
+//            log: function () { print.apply(null, arguments); },
+//            warn: function () { print.apply(null, arguments); },
+//            error: function () { print.apply(null, arguments); },
+//            info: function () { print.apply(null, arguments); }
+//        } },
     _: { value: imports.gettext.gettext }
 });
 Object.defineProperties(define, {
diff --git a/metadata.json b/metadata.json
index 5546697..323e563 100644
--- a/metadata.json
+++ b/metadata.json
@@ -1,5 +1,5 @@
 {
-  "shell-version": ["40"],
+  "shell-version": ["41"],
   "original-authors": ["[email protected]"],
   "uuid": "[email protected]",
   "name": "KeyMan",

@dpoetzsch Can I create a PR to have this working out of the box? or how to proceed to get this issue fixed?

from keyman.

dpoetzsch avatar dpoetzsch commented on July 17, 2024

TLDR: I'd be happy to accept a PR and release a new version.


Sorry for the delay, I've been quite busy with work recently.

I think the proper way to fix this would be to fix it in https://github.com/darkoverlordofdata/gir2dts/blob/master/src/gjs.js, release a new version of gir2dts (which is out of my hands). Another, maybe even better way would be to replace gir2dts with the newer and seemingly more active ts-for-gir. Then, use the new fixed type bindings to create a new version of https://github.com/dpoetzsch/gnome-keyring-js/.

That being said, I want this plugin to just work for people, so I'd be happy to accept a PR in the meantime and release that if it fixes the problem. I can go the long way when I find time for it.

from keyman.

omron93 avatar omron93 commented on July 17, 2024

Perfect. Thanks for quick fix

from keyman.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.