jaystrictor / gnome-shell-extension-syncthing

GNU General Public License v3.0
87 stars 14 forks source link

Broken in Gnome 45 #74

Open mschout opened 11 months ago

mschout commented 11 months ago

Describe the bug I've been using this one for a while and keep updating shell-version in the extension metadata.json, but starting with Gnome 45, this is no longer enough.

The extension wont load and extensions just shows the error:

export declarations may only appear at top level of a module

Screenshots

image

Version information:

My only diff from upstream is:

diff --git a/src/metadata.json b/src/metadata.json
index 0be2882..83d09a2 100644
--- a/src/metadata.json
mschout@lothlorien:gnome-shell-extension-syncthing (master)$ git diff
diff --git a/src/metadata.json b/src/metadata.json
index 83d09a2..267c536 100644
--- a/src/metadata.json
+++ b/src/metadata.json
@@ -1,5 +1,5 @@
 {
-    "shell-version": ["43"],
+    "shell-version": ["43", "44", "45"],
     "uuid": "syncthingicon@jay.strict@posteo.de",
     "url": "https://github.com/jaystrictor/gnome-shell-extension-syncthing",
     "name": "Syncthing Icon",

Logs Add the output of

systemctl --user -n0 status syncthing.service
● syncthing.service - Syncthing - Open Source Continuous File Synchronization
     Loaded: loaded (/home/mschout/.config/systemd/user/syncthing.service; enabled; preset: enabled)
     Active: active (running) since Tue 2023-10-10 16:46:01 CDT; 8min ago
       Docs: man:syncthing(1)
   Main PID: 6143 (syncthing)
      Tasks: 48 (limit: 76910)
     Memory: 592.9M
        CPU: 1min 2.268s
     CGroup: /user.slice/user-1000.slice/user@1000.service/app.slice/syncthing.service
             ├─6143 /usr/bin/syncthing -no-browser -no-restart -logflags=0
             └─6211 /usr/bin/syncthing -no-browser -no-restart -logflags=0

journalctl -b /usr/bin/gnome-shell | grep syncthingicon

Oct 10 16:48:06 lothlorien gnome-shell[27087]: JS ERROR: Extension syncthingicon@jay.strict@posteo.de: SyntaxError: export declarations may only appear at top level of a module @ resource:///org/gnome/shell/misc/config.js:5:0
Oct 10 16:49:43 lothlorien gnome-shell[35019]: JS ERROR: Extension syncthingicon@jay.strict@posteo.de: SyntaxError: export declarations may only appear at top level of a module @ resource:///org/gnome/shell/misc/config.js:5:0