Aylur / ags

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

running ags gives JS ERROR: Error: unsupported type void #412

Closed cachedpotato closed 1 month ago

cachedpotato commented 1 month ago

Hello,

I've been using ags for a few days and it's been working pretty fine until I updated my OS just a few hours ago. I'm currently using NixOS (unstable) with home-manager ags module, and when I run ags it gives me the following error message:

Gjs-Message: 14:46:21.241: JS WARNING: [resource:///org/gnome/gjs/modules/script/package.js 14]: Requiring GIRepository but it has 2 versions available; use imports.gi.versions to pick one

** (com.github.Aylur.ags:43806): WARNING **: 14:46:21.251: Failed to load shared library '/nix/store/3xsbahrqqc4fc3gknmjj9j9687n4hiz0-glib-2.80.0/lib/libgirepository-2.0.so.0' referenced by the typelib: /nix/store/3xsbahrqqc4fc3gknmjj9j9687n4hiz0-glib-2.80.0/lib/libgirepository-2.0.so.0: undefined symbol: g_once_init_leave_pointer

(com.github.Aylur.ags:43806): Gjs-CRITICAL **: 14:46:21.251: JS ERROR: Error: Unsupported type void, deriving from fundamental void
init@resource:///org/gnome/gjs/modules/script/package.js:170:5
@file:///nix/store/2lkilwz28w29ai11cv83apl6gm6dw91s-ags-1.8.2/bin/.ags-wrapped:24:17

(com.github.Aylur.ags:43806): Gjs-CRITICAL **: 14:46:21.251: Module file:///nix/store/2lkilwz28w29ai11cv83apl6gm6dw91s-ags-1.8.2/bin/.ags-wrapped threw an exception

I've tried reinstalling and that did not solve the issue. As for my ags config, it's pretty much identical to the one in the wiki:


# flake.nix                                                                                                                         
ags.url = "github:Aylur/ags";
...

# home/ags/default.nix
{pkgs, inputs, ...}:
{
  imports = [
    inputs.ags.homeManagerModules.default
  ];

  programs.ags = {
    enable = true;

    #config path, leave as null if you don't want HM to manage config
    configDir = ../ags;

    extraPackages = with pkgs; [
      gtksourceview
      webkitgtk
      #d-bus user interface for account query
      accountsservice
    ];
  };
}

Is there anything wrong with my config? should I download/remove something? Any help would be greatly appreciated.

Thanks!

Aylur commented 1 month ago

The version is now specified, but I have a feeling that this is caused by something else

cachedpotato commented 1 month ago

Reinstalled it and it's working now thank you so much!

teutonicjoe commented 1 month ago

I am running into this today...

teutonicjoe commented 1 month ago

I think the fix is to switch to using the "main" branch instead of unspecified in your flake, if you use Nix.