end-4 / dots-hyprland

Modern, feature-rich and accessible desktop configuration.
https://end-4.github.io/dots-hyprland-wiki/en/
GNU General Public License v3.0
3.61k stars 242 forks source link

[Issue] ags Utils not defined #351

Open Dialgatrainer02 opened 5 months ago

Dialgatrainer02 commented 5 months ago
Click to expand ```plain (com.github.Aylur.ags:3124): Gjs-WARNING **: 12:01:36.541: JS ERROR: ReferenceError: Utils is not defined @file:///home/olivia/.config/ags/variables.js:4:29 _init/GLib.MainLoop.prototype.runAsync/
end-4 commented 5 months ago

that should fix it, though this shouldn't happen if you have the correct ags version

Dialgatrainer02 commented 5 months ago

I'll force update ags and I'll pull the commit

Dialgatrainer02 commented 5 months ago

updated to the git version on the aur and updated the config now i get:

(com.github.Aylur.ags:17674): Gjs-WARNING **: 16:05:57.347: JS ERROR: ReferenceError: App is not defined
@file:///home/olivia/.config/ags/variables.js:7:51
_init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34

ags -v

1.7.1
clsty commented 5 months ago

updated to the git version on the aur and updated the config now i get:

No. The correct ags version is the one that this repo needs, instead of the latest.

Just run ./update-ags.sh and you will get the correct version of ags installed.

Dialgatrainer02 commented 5 months ago

i ran the installer it worked once then i rebooted and now i get

(com.github.Aylur.ags:3673): Gjs-WARNING **: 19:26:35.066: JS ERROR: SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data @ file:///home/olivia/.config/ags/services/gemini.js:219:18
appendHistory@file:///home/olivia/.config/ags/services/gemini.js:219:18
loadHistory@file:///home/olivia/.config/ags/services/gemini.js:212:14
GeminiService@file:///home/olivia/.config/ags/services/gemini.js:163:38
@file:///home/olivia/.config/ags/services/gemini.js:328:16
_init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34

(com.github.Aylur.ags:3673): Gjs-Console-CRITICAL **: 19:26:35.098: Error: There is no window named overview
getWindow@resource:///com/github/Aylur/ags/app.js:140:27
update@file:///home/olivia/.config/ags/modules/overview/overview_hyprland.js:334:26
default/OverviewRow/setup/<@file:///home/olivia/.config/ags/modules/overview/overview_hyprland.js:377:60
hook/<@resource:///com/github/Aylur/ags/widgets/widget.js:43:25
_init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34

(com.github.Aylur.ags:3673): Gjs-CRITICAL **: 19:26:35.098: JS ERROR: TypeError: (intermediate value).getWindow(...) is undefined
update@file:///home/olivia/.config/ags/modules/overview/overview_hyprland.js:334:26
default/OverviewRow/setup/<@file:///home/olivia/.config/ags/modules/overview/overview_hyprland.js:377:60
hook/<@resource:///com/github/Aylur/ags/widgets/widget.js:43:25
_init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34

(com.github.Aylur.ags:3673): Gjs-Console-CRITICAL **: 19:26:35.099: Error: There is no window named overview
getWindow@resource:///com/github/Aylur/ags/app.js:140:27
update@file:///home/olivia/.config/ags/modules/overview/overview_hyprland.js:334:26
default/OverviewRow/setup/<@file:///home/olivia/.config/ags/modules/overview/overview_hyprland.js:398:39
hook/<@resource:///com/github/Aylur/ags/widgets/widget.js:43:25
_init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34

(com.github.Aylur.ags:3673): Gjs-CRITICAL **: 19:26:35.099: JS ERROR: TypeError: (intermediate value).getWindow(...) is undefined
update@file:///home/olivia/.config/ags/modules/overview/overview_hyprland.js:334:26
default/OverviewRow/setup/<@file:///home/olivia/.config/ags/modules/overview/overview_hyprland.js:398:39
hook/<@resource:///com/github/Aylur/ags/widgets/widget.js:43:25
_init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34

(com.github.Aylur.ags:3673): Gjs-Console-CRITICAL **: 19:26:35.099: Error: There is no window named overview
getWindow@resource:///com/github/Aylur/ags/app.js:140:27
update@file:///home/olivia/.config/ags/modules/overview/overview_hyprland.js:334:26
default/OverviewRow/setup/<@file:///home/olivia/.config/ags/modules/overview/overview_hyprland.js:377:60
hook/<@resource:///com/github/Aylur/ags/widgets/widget.js:43:25
_init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34

(com.github.Aylur.ags:3673): Gjs-CRITICAL **: 19:26:35.099: JS ERROR: TypeError: (intermediate value).getWindow(...) is undefined
update@file:///home/olivia/.config/ags/modules/overview/overview_hyprland.js:334:26
default/OverviewRow/setup/<@file:///home/olivia/.config/ags/modules/overview/overview_hyprland.js:377:60
hook/<@resource:///com/github/Aylur/ags/widgets/widget.js:43:25
_init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34

(com.github.Aylur.ags:3673): Gjs-Console-CRITICAL **: 19:26:35.099: Error: There is no window named overview
getWindow@resource:///com/github/Aylur/ags/app.js:140:27
update@file:///home/olivia/.config/ags/modules/overview/overview_hyprland.js:334:26
default/OverviewRow/setup/<@file:///home/olivia/.config/ags/modules/overview/overview_hyprland.js:398:39
hook/<@resource:///com/github/Aylur/ags/widgets/widget.js:43:25
_init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34

(com.github.Aylur.ags:3673): Gjs-CRITICAL **: 19:26:35.099: JS ERROR: TypeError: (intermediate value).getWindow(...) is undefined
update@file:///home/olivia/.config/ags/modules/overview/overview_hyprland.js:334:26
default/OverviewRow/setup/<@file:///home/olivia/.config/ags/modules/overview/overview_hyprland.js:398:39
hook/<@resource:///com/github/Aylur/ags/widgets/widget.js:43:25
_init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34

when running ags

clsty commented 5 months ago

Run

rm ~/.cache/ags/user/ai/chats/gemini.txt
pkill ags;ags

Also you need to update this repo, because it seems that you are still using the older one.

midn8hustlr commented 5 months ago

I was also facing similar issues clsty's suggestion for removing gemini cache worked!