Neroth / gnome-shell-extension-weather

A simple extension for displaying weather informations from several cities in GNOME Shell
GNU General Public License v3.0
138 stars 143 forks source link

TypeError: GWeather.Location.new_world is not a function #263

Open MuhammadAnas47 opened 2 years ago

MuhammadAnas47 commented 2 years ago

The settings of extension weather-extension@xeked.com had an error:

TypeError: GWeather.Location.new_world is not a function

Stack trace:

@/home/<User>/.local/share/gnome-shell/extensions/weather-extension@xeked.com/prefs.js:100:28
_init@resource:///org/gnome/Shell/Extensions/js/extensionPrefsDialog.js:23:33
ExtensionPrefsDialog@resource:///org/gnome/Shell/Extensions/js/extensionPrefsDialog.js:10:4
OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:129:33
asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:115:22
run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:186:20
main@resource:///org/gnome/Shell/Extensions/js/main.js:22:13
run@resource:///org/gnome/gjs/modules/script/package.js:206:19
start@resource:///org/gnome/gjs/modules/script/package.js:190:8
@/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17
HinTak commented 2 years ago

See https://github.com/Neroth/gnome-shell-extension-weather/issues/252#issuecomment-631569749 please upgrade

yeroc commented 1 year ago

@HinTak I just got this error myself on a fresh install from the Gnome Extensions site. Is the current version not deployed there?

HinTak commented 1 year ago

@yeroc see https://github.com/Neroth/gnome-shell-extension-weather/pull/261 I gave up about a year ago with fc 37 I think. Fedora now ships openweather which is similar but source the info from a different place. I think a year ago I had them side by side and found the old one more accurate, sadly it was beyond fixing around fc37. If you are using an older (year old or ubuntu lts) distro you might have more luck.