negesti / gnome-shell-extensions-negesti

An gnome-shell extension that makes window movement a lot easier.
GNU General Public License v3.0
287 stars 46 forks source link

There was an error loading the preferences dialogue for Put Window: #124

Closed maxcr closed 6 years ago

maxcr commented 7 years ago
TypeError: redeclaration of let intelligenCornerSwitch

Stack trace:
  Application<._getExtensionPrefsModule@resource:///org/gnome/shell/extensionPrefs/main.js:74:13
  wrapper@resource:///org/gnome/gjs/modules/lang.js:178:22
  Application<._selectExtension@resource:///org/gnome/shell/extensionPrefs/main.js:89:31
  wrapper@resource:///org/gnome/gjs/modules/lang.js:178:22
  Application<._onCommandLine@resource:///org/gnome/shell/extensionPrefs/main.js:243:17
  wrapper@resource:///org/gnome/gjs/modules/lang.js:178:22
  main@resource:///org/gnome/shell/extensionPrefs/main.js:399:5
  @<main>:1:49
negesti commented 7 years ago

this should be fixed in the current github version

maxcr commented 7 years ago

If I use github version my whole shell crashes, and kills all running progs.

negesti commented 7 years ago

That sounds really strange. I'm using the current version without problems. What's your gnome she'll version? The redeclaration is normally just a warning.

agreco commented 7 years ago

How do I install this plugin via cloning this repo?

negesti commented 7 years ago

Have a look at the wiki

Basically you need a folder called "putWindow@clemens.lab21.org" inside ~/.local/share/gnome-shell/extensions/

negesti commented 7 years ago

@maxcr can i close this issue?

agreco commented 7 years ago

I followed your steps and putWindow does install, but the script error still occurs when accessing the configuration from Tweak.

negesti commented 7 years ago

I guess you are on the master branch. should work now after git pull or checkout develop

agreco commented 7 years ago

I'm on develop, for sure

negesti commented 7 years ago

the redeclaration was fixed in #120 nearly two months ago. Maybe something else kills the preferences for you? can you run it from console and check the log?

 gnome-shell-extension-prefs  putWindow@clemens.lab21.org
agreco commented 7 years ago

As per the instructions on the wiki, the folder,putWindow@clemens.lab21.org doesn't exist within the repo.

agreco commented 7 years ago

I've checked out develop, and its not there so I can't move it to ~/.local{...}/gnome-shell/extensions

I must be missing something

negesti commented 7 years ago

Just create the folder and move/link the files. I will update the wiki. I removed the subfolder ages ago and cloned the repo into a folder with the correct name.

Gnome shell only recognizes the extension if the folder name matches the name defined in metadata.json...

negesti commented 7 years ago

I've added installation instructions to the readme and uploaded a release zip that can be installed using gnome-tweak-tool

AKoetsier commented 7 years ago

Had the same problem. After manually installing the latest zip (v20.1.0) I can open the preferences again.

agreco commented 7 years ago

I can confirm that the latest release zip, does allow preferences to be accessed.