G-dH / advanced-alttab-window-switcher

A highly customizable replacement for Gnome Shell's Alt-Tab window and app switchers.
GNU General Public License v3.0
163 stars 11 forks source link

Unable to load extension on gnome 3.36.8 #51

Closed Ankit-Kulkarni closed 1 year ago

Ankit-Kulkarni commented 1 year ago

Describe the bug Opened the laptop today and the extension didn't load. Tried reinstalling the extension using https://extensions.gnome.org/extension/4412/advanced-alttab-window-switcher/ but getting below messages in syslog

Dec  2 12:56:23 BLDVANKITKUL gnome-shell[141227]: Archive:  /tmp/EACOW1.shell-extension.zip
Dec  2 12:56:23 BLDVANKITKUL gnome-shell[141227]:   inflating: /home/ankitkul/.local/share/gnome-shell/extensions/advanced-alt-tab@G-dH.github.com/extension.js
Dec  2 12:56:23 BLDVANKITKUL gnome-shell[141227]:   inflating: /home/ankitkul/.local/share/gnome-shell/extensions/advanced-alt-tab@G-dH.github.com/switcherList.js
Dec  2 12:56:23 BLDVANKITKUL gnome-shell[141227]:   inflating: /home/ankitkul/.local/share/gnome-shell/extensions/advanced-alt-tab@G-dH.github.com/captionLabel.js
Dec  2 12:56:23 BLDVANKITKUL gnome-shell[141227]:   inflating: /home/ankitkul/.local/share/gnome-shell/extensions/advanced-alt-tab@G-dH.github.com/switcherItems.js
Dec  2 12:56:23 BLDVANKITKUL gnome-shell[141227]:   inflating: /home/ankitkul/.local/share/gnome-shell/extensions/advanced-alt-tab@G-dH.github.com/prefs.js
Dec  2 12:56:23 BLDVANKITKUL gnome-shell[141227]:   inflating: /home/ankitkul/.local/share/gnome-shell/extensions/advanced-alt-tab@G-dH.github.com/actions.js
Dec  2 12:56:23 BLDVANKITKUL gnome-shell[141227]:   inflating: /home/ankitkul/.local/share/gnome-shell/extensions/advanced-alt-tab@G-dH.github.com/windowMenu.js
Dec  2 12:56:23 BLDVANKITKUL gnome-shell[141227]:   inflating: /home/ankitkul/.local/share/gnome-shell/extensions/advanced-alt-tab@G-dH.github.com/winTmb.js
Dec  2 12:56:23 BLDVANKITKUL gnome-shell[141227]:   inflating: /home/ankitkul/.local/share/gnome-shell/extensions/advanced-alt-tab@G-dH.github.com/settings.js
Dec  2 12:56:23 BLDVANKITKUL gnome-shell[141227]:   inflating: /home/ankitkul/.local/share/gnome-shell/extensions/advanced-alt-tab@G-dH.github.com/windowSwitcherPopup.js
Dec  2 12:56:23 BLDVANKITKUL gnome-shell[141227]:   inflating: /home/ankitkul/.local/share/gnome-shell/extensions/advanced-alt-tab@G-dH.github.com/schemas/gschemas.compiled
Dec  2 12:56:23 BLDVANKITKUL gnome-shell[141227]:   inflating: /home/ankitkul/.local/share/gnome-shell/extensions/advanced-alt-tab@G-dH.github.com/schemas/org.gnome.shell.extensions.advanced-alt-tab-window-switcher.gschema.xml
Dec  2 12:56:23 BLDVANKITKUL gnome-shell[141227]:   inflating: /home/ankitkul/.local/share/gnome-shell/extensions/advanced-alt-tab@G-dH.github.com/stylesheet.css
Dec  2 12:56:23 BLDVANKITKUL gnome-shell[141227]:   inflating: /home/ankitkul/.local/share/gnome-shell/extensions/advanced-alt-tab@G-dH.github.com/LICENSE
Dec  2 12:56:23 BLDVANKITKUL gnome-shell[141227]:  extracting: /home/ankitkul/.local/share/gnome-shell/extensions/advanced-alt-tab@G-dH.github.com/metadata.json
Dec  2 12:56:23 BLDVANKITKUL gnome-shell[45717]: JS ERROR: Extension advanced-alt-tab@G-dH.github.com: TypeError: extension.stateObj.enable is not a function#012_callExtensionEnable@resource:///org/gnome/shell/ui/extensionSystem.js:167:32#012loadExtension@resource:///org/gnome/shell/ui/extensionSystem.js:351:26#012callback@resource:///org/gnome/shell/ui/extensionDownloader.js:234:39#012gotExtensionZipFile/<@resource:///org/gnome/shell/ui/extensionDownloader.js:115:13

To Reproduce Not sure how to reproduce this but may be trying to re-install would cause this . Tried manually copying the files from repo to extension path however when using the settings button getting the below technical error

TypeError: prefsModule.init is not a function

Stack trace:
  _init@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:205:25
  OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:122:28
  asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:132:13
  run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:175:20
  main@resource:///org/gnome/Shell/Extensions/js/main.js:19:13
  run@resource:///org/gnome/gjs/modules/script/package.js:222:19
  start@resource:///org/gnome/gjs/modules/script/package.js:206:5
  @/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17
  1. See error snapshot attached aatws

Expected behavior The extension should load and work.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Error started suddenly today. There was a release ig on 1 december. https://github.com/G-dH/advanced-alttab-window-switcher/commit/ceb49536e6b5a58334a3564b3d598090d3884d4d .

G-dH commented 1 year ago

I'm sorry to hear that, but I'm testing the extension on the latest 20.04.5 with no issues. Proper installation from GitHub is described in the README on the main page:

git clone https://github.com/G-dH/advanced-alttab-window-switcher.git
cd advanced-alttab-window-switcher/
make install
G-dH commented 1 year ago

Your logs are related to the extensionsService, no AATWS code was actually executed. I've also tested the installation from e.g.o page without any problem.

Ankit-Kulkarni commented 1 year ago

Thanks for the update @G-dH . I tried from the steps you mentioned and it worked. Got mislead by the error "inform to author" in above screenshots. As there was a recent release a day before I thought of informing. But you have just saved the day. This is an extension I can't really work without.

Thanks a lot :heart: for making this so awesome and configurable. Cheers to your work

G-dH commented 1 year ago

Thanks for the feedback, I hope it was just some local anomaly.