neuromorph / openbar

A GNOME Shell extension for theming Gnome Top Bar / Top Panel, Menus, Dash/Dock, Gnome Shell and Gtk/Flatpak Apps.
https://extensions.gnome.org/extension/6580/open-bar/
GNU General Public License v3.0
268 stars 4 forks source link

[BUG]:"obj is undefined" error #70

Closed AnAxeCalledNegus closed 2 months ago

AnAxeCalledNegus commented 2 months ago

Obj is undefined shows up in the extension manager , I can't enable nor disable openbar too . Screenshot from 2024-09-07 18-55-25

neuromorph commented 2 months ago

Hello,

Please use the Bug Report template when logging a bug so that relevant info can be captured. I see Open Bar version 34, please also provide the Gnome version and your OS/distribution, in case it may help.

For the error, you need to get a stack trace as mentioned in the Bug template. Copying the process below for quick reference:

Error Stack Trace If you are getting an error (showing in the Extension Manager for e.g.), please run the following command in a terminal and then Enable the extension. If the error is preventing the extension from enabling then first remove/uninstall the extension then run the below command in a terminal and again install the extension while the command is running. If there is no error during enable then keep the command running and try disabling the extension. At some point the same error will show up in the terminal but it will also have a trace log. Please share that here so we can debug the issue. SHELL_DEBUG=all journalctl /usr/bin/{gjs,gnome-shell} -fo cat

Thank you for reporting!

AnAxeCalledNegus commented 2 months ago

Hi, My machine is running Ubuntu 22.04 with GNOME 42.9 , I tried every method of error stack tracing but it was always the same series of logging , Also the extension never got enabled even after a reinstall, Here's what pops up : JS ERROR: Extension openbar@neuromorph: TypeError: obj is undefined connect@/home/o/.local/share/gnome-shell/extensions/openbar@neuromorph/extension.js:49:13 applyMenuStyles@/home/o/.local/share/gnome-shell/extensions/openbar@neuromorph/extension.js:415:47 enable@/home/o/.local/share/gnome-shell/extensions/openbar@neuromorph/extension.js:1151:14

neuromorph commented 2 months ago

Thanks, this log shows the files/lines where issue is occurring. It seems to do with the Notifications section shown when you click on the Date button in the panel. It is complaining that the section-list for messages is 'undefined'.

AnAxeCalledNegus commented 2 months ago

After some testing , I concluded that an extension called "Just perfection" is interfering with openbar for some reason , disabling it fixes the issue . I'll post a picture regarding the top panel but It probably won't be helpful , my top panel is modified a bit much . image

AnAxeCalledNegus commented 2 months ago

I'm using an extension called "Big Sur status area" for it to be spread out like this

After some testing , I concluded that an extension called "Just perfection" is interfering with openbar for some reason , disabling it fixes the issue . I'll post a picture regarding the top panel but It probably won't be helpful , my top panel is modified a bit much . image

AnAxeCalledNegus commented 2 months ago

It's fixed now , Customization options related to notifications and clock positions were incorrectly set. Thank you very much for assisting me !

neuromorph commented 2 months ago

After some testing , I concluded that an extension called "Just perfection" is interfering with openbar for some reason , disabling it fixes the issue .

Glad that it worked for you! However, I am not sure how "Just Perfection" is interfering. On the other hand, the "Big Sur status area" extension seems to be changing the placement of message section-list from Date menu so that could be the reason for the error.

As I was typing, I just saw this update from you:

It's fixed now , Customization options related to notifications and clock positions were incorrectly set.

Well, that's great to know. :+1:
I am also looking into a future update to openbar where it should depend less on other extensions.

Thank you very much for assisting me !

You are welcome!

AnAxeCalledNegus commented 2 months ago

Openbar is already amazing ,an update like you said would be the cherry on top !