isDipesh / gnome-shell-extension-sensors

Gnome shell extension: Shows CPU temperature, HDD temperature, voltage and fan RPM
https://motorscript.com/gnome-shell-extension-sensors/
161 stars 153 forks source link

syntax error while accessing extension settings #111

Open vasyugan opened 10 years ago

vasyugan commented 10 years ago

SyntaxError: syntax error

Stack trace: @/home/xx/.local/share/gnome-shell/extensions/temperature@xtranophilist/prefs.js:9 Application<._getExtensionPrefsModule@resource:///org/gnome/shell/extensionPrefs/main.js:86 wrapper@resource:///org/gnome/gjs/modules/lang.js:169 Application<._selectExtension@resource:///org/gnome/shell/extensionPrefs/main.js:101 wrapper@resource:///org/gnome/gjs/modules/lang.js:169 Application<._extensionSelected@resource:///org/gnome/shell/extensionPrefs/main.js:121 wrapper@resource:///org/gnome/gjs/modules/lang.js:169 Application<._selectExtension@resource:///org/gnome/shell/extensionPrefs/main.js:112 wrapper@resource:///org/gnome/gjs/modules/lang.js:169 Application<._onCommandLine@resource:///org/gnome/shell/extensionPrefs/main.js:245 wrapper@resource:///org/gnome/gjs/modules/lang.js:169 main@resource:///org/gnome/shell/extensionPrefs/main.js:278 @

:1

jaarandaz commented 10 years ago

This happens on gnome-shell 3.10.4-0ubuntu5.1 after compliling and installing extension. it fails at line "const Utilities = Me.imports.utilities;" so maybe it has something to do with utilities.js. Sadly I have no idea about gnome extension development.

fabrixx commented 10 years ago

Hi. I have Debian testing and from site i can enable addon but now work, so i builded from github and work but i ca't enter in the Settings, when i click it nothing happen

tymik commented 5 years ago

I have the same issue with little more verbosity regarding the syntax error.

ii gnome-shell 3.30.1-2ubuntu1 amd64 graphical shell for the GNOME desktop

sensors extension installed via web. The issue happens for entering settings for the extension, settings for other extensions are working just fine.

SyntaxError: missing ( after for

Stack trace:
  _getExtensionPrefsModule@resource:///org/gnome/shell/extensionPrefs/main.js:67:13
  wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
  _selectExtension@resource:///org/gnome/shell/extensionPrefs/main.js:82:31
  wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
  _onCommandLine@resource:///org/gnome/shell/extensionPrefs/main.js:235:17
  wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
  main@resource:///org/gnome/shell/extensionPrefs/main.js:389:5
  @<main>:1:43
russel commented 5 years ago

This repository is unmaintained. You need to switch to using https://github.com/UshakovVasilii/gnome-shell-extension-freon