TheWeirdDev/somafm-radio-gnome-ext

incompatible to gnome-shell 3.34.0

Closed this issue · 6 comments

dr-br commented

Issue
SomaFm internet radio does not start/show up

OS
OS: Ubuntu 19.10
GNOME Shell 3.34.0

Hint
Alt+F2 and lg says:
"TypeError: item is undefined"

Proposal
There are often issues when gnome-shell is updated. Could you give me a hint, where to find information about gnome-shell-extension-debugging? Tools? Website? (Or just send me a lmgtfy-query ;) )

I added a new commit, Can you check if now the extension works?

There aren't much resources/tools about gnome-shell extensions. This website has the documentation for classes, etc... :
https://www.roojs.org/seed/gir-1.2-gtk-3.0/seed/index.html

For debugging, I often put global.log("Debug: " + variable); and check it using:
journalctl --since '5 minutes ago' /usr/bin/gnome-shell

When i started, I read other people's code to understand how to write extensions.

There might be better ways to do it, I don't know. I wrote this extension just as a hobby in college.

dr-br commented

Still "item is undefined"
I will try Debug-Logs

That's weird. It works on my Arch Linux desktop. I will download Ubuntu and check it.

I found this website which is also helpful
https://gjs-docs.gnome.org/

Well it seems to work on Ubuntu 19.10 as well. Maybe other extensions are the reason it fails to load. Can you disable all other extensions and test again?

dr-br commented

I disabled all other extensions. No luck.
Last error message was setLoading not defined or something.
When I uncommented all "setLoading"-calls, it kind of works.
Now will try Debug-Logs.

Now works.