Aylur / ags

A customizable and extensible shell
GNU General Public License v3.0
1.73k stars 94 forks source link

Migrating to NixOS 24.05 Packages Breaks AGS #448

Closed celesrenata closed 1 week ago

celesrenata commented 3 weeks ago

Hi There!

I have noticed that updating packages to reference 24.05 breaks AGS with the following when you try to run it.

~/sources/nixos ❯ ags 

** (com.github.Aylur.ags:128633): WARNING **: 18:40:06.890: Failed to load shared library '/nix/store/fd267llpq3dwnmzla6skmvx28r8wvlg6-gtksourceview-3.24.11/lib/libgtksourceview-3.0.so.1' referenced by the typelib: /nix/store/fd267llpq3dwnmzla6skmvx28r8wvlg6-gtksourceview-3.24.11/lib/libgtksourceview-3.0.so.1: undefined symbol: g_once_init_enter_pointer

(com.github.Aylur.ags:128633): Gjs-WARNING **: 18:40:06.890: JS ERROR: Error: Unsupported type void, deriving from fundamental void
loadCustomColorScheme@file:///home/celes/.config/ags/modules/sideleft/apis/ai_chatmessage.js:30:27
@file:///home/celes/.config/ags/modules/sideleft/apis/ai_chatmessage.js:33:22
_init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34

For now, I have found a workaround by importing the previous version of gtksourceview from 23.11.

Aylur commented 1 week ago

updated the lock file, if that doesn't fix it, there could be some other issue with your setup