╭─┤~/build/plotinus├───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ole@lapole├──
╰─> nix-shell --pure -p vala git cmake gtk3 pkgconfig stdenv pcre zsh gcc pth xorg.libxcb xorg.libpthreadstubs xorg.libXdmcp libxkbcommon epoxy at_spi2_core dbus 
^[kthese paths will be fetched (0.08 MiB download, 0.12 MiB unpacked):
  /nix/store/c4h8rab42lz9pskn0r3s9fgzz8x9a7ay-dbus-1.10.22-doc
fetching path ‘/nix/store/c4h8rab42lz9pskn0r3s9fgzz8x9a7ay-dbus-1.10.22-doc’...
^P
*** Downloading ‘https://cache.nixos.org/nar/15d6rviwfjzk3z22qc0bimfmvvh91z5h2q5xw4376yadq1fdq21g.nar.xz’ (signed by ‘cache.nixos.org-1’) to ‘/nix/store/c4h8rab42lz9pskn0r3s9fgzz8x9a7ay-dbus-1.10.22-doc’...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 85572  100 85572    0     0  85572      0  0:00:01  0:00:01 --:--:-- 83484


[nix-shell:~/build/plotinus]$ rm -rf build && mkdir build && cd build && cmake ..
-- The C compiler identification is GNU 6.4.0
-- Check for working C compiler: /nix/store/m3hr6jjlg637240q67as3js21dg6h218-gcc-wrapper-6.4.0/bin/gcc
-- Check for working C compiler: /nix/store/m3hr6jjlg637240q67as3js21dg6h218-gcc-wrapper-6.4.0/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found PkgConfig: /nix/store/7m6a8xznyjkkgvkwa8b9sm3cyxpfjv2k-pkg-config-0.29.2/bin/pkg-config (found version "0.29.2") 
-- Checking for module 'gtk+-3.0'
--   Found gtk+-3.0, version 3.22.21
-- Found Vala: /nix/store/yb5yh4rvzly3lyda4ghp9mbd6mgh1fqb-vala-0.34.1/bin/valac  
-- checking for Vala version of 0.26
--   found Vala, version 0.34.1
-- GSettings schemas will be installed locally.
-- GSettings shemas will be compiled.
-- GSettings schemas will be installed into /var/empty/local/share/glib-2.0/schemas/
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ole/build/plotinus/build

[nix-shell:~/build/plotinus/build]$ make
[  4%] Generating src/Command.c;src/CommandExtractor.c;src/CommandList.c;src/InstanceSettings.c;src/Keybinder.c;src/Module.c;src/PopupWindow.c;src/Service.c;src/Utilities.c
/home/ole/build/plotinus/src/Utilities.vala:82.12-82.45: warning: unhandled error `GLib.RegexError'
    return /_(?!_)/.replace(label, -1, 0, "").strip();
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/home/ole/build/plotinus/src/Utilities.vala:48.17-48.97: warning: unhandled error `GLib.RegexError'
    var regex = new Regex("(" + string.joinv("|", regex_words) + ")", RegexCompileFlags.CASELESS);
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/home/ole/build/plotinus/src/CommandList.vala:91.19-91.54: warning: unhandled error `GLib.RegexError'
    this.filter = /\s{2,}/.replace(filter, -1, 0, " ").strip().casefold();
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/home/ole/build/plotinus/src/Service.vala:152.20-152.48: warning: unhandled error `GLib.IOError'
      connection = Bus.get_sync(BusType.SESSION);
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/home/ole/build/plotinus/src/Service.vala:153.17-153.112: warning: unhandled error `GLib.IOError'
      service = Bus.get_proxy_sync(BusType.SESSION, "com.worldwidemann.plotinus", "/com/worldwidemann/plotinus");
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/home/ole/build/plotinus/src/Service.vala:92.9-92.57: warning: unhandled error `GLib.IOError'
        connection.register_object(command_path, command);
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/home/ole/build/plotinus/src/Service.vala:165.7-165.73: warning: unhandled error `GLib.IOError'
      connection.register_object(command_provider_path, command_provider);
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/home/ole/build/plotinus/src/Module.vala:26.27-26.84: warning: unhandled error `GLib.FileError'
    var executable_path = FileUtils.read_link("/proc/%u/exe".printf(Posix.getpid()));
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/home/ole/build/plotinus/src/Service.vala:48.49-48.73: warning: unhandled error `GLib.IOError'
        CommandProviderProxy command_provider = Bus.get_proxy.end(result);
                                                ^^^^^^^^^^^^^^^^^^^^^^^^^
/home/ole/build/plotinus/src/Service.vala:62.7-62.84: warning: unhandled error `GLib.IOError'
      connection.register_object(command_palette_path, new CommandPalette(commands));
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/home/ole/build/plotinus/src/Service.vala:18.25-18.106: warning: unhandled error `GLib.IOError'
        (connection) => connection.register_object("/com/worldwidemann/plotinus", new Service(connection)));
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/home/ole/build/plotinus/src/Module.vala:22.3-22.22: warning: method `Plotinus.gtk_module_init' never used
  void gtk_module_init([CCode(array_length_pos=0.9)] ref unowned string[] argv) {
  ^^^^^^^^^^^^^^^^^^^^
/home/ole/build/plotinus/src/Service.vala:68.5-68.37: warning: method `Plotinus.ServiceProxy.get_commands' never used
    public abstract void get_commands(ObjectPath window_path, out string bus_name, out ObjectPath[] command_paths);
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/home/ole/build/plotinus/src/Service.vala:71.5-71.45: warning: method `Plotinus.ServiceProxy.show_command_palette' never used
    public abstract void show_command_palette(CommandStruct[] commands,
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/home/ole/build/plotinus/src/Service.vala:134.5-134.21: warning: method `Plotinus.CommandPalette.close' never used
    public void close() {
    ^^^^^^^^^^^^^^^^^
Scanning dependencies of target dbus_service
[  9%] Building C object CMakeFiles/dbus_service.dir/src/Command.c.o
[ 13%] Building C object CMakeFiles/dbus_service.dir/src/CommandExtractor.c.o
/home/ole/build/plotinus/src/CommandExtractor.vala: In function '__lambda4_':
/home/ole/build/plotinus/src/CommandExtractor.vala:135:11: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
         if (menu_item.submenu == null) {
           ^
/home/ole/build/plotinus/src/CommandExtractor.vala:158:12: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
           foreach (var command in get_menu_shell_commands(menu_item.submenu, submenu_path)) {
            ^
[ 18%] Building C object CMakeFiles/dbus_service.dir/src/CommandList.c.o
/home/ole/build/plotinus/src/CommandList.vala: In function '__lambda7_':
/home/ole/build/plotinus/src/CommandList.vala:68:2: warning: 'gtk_style_context_get_background_color' is deprecated: Use 'gtk_render_background' instead [-Wdeprecated-declarations]
       var selection_color = style_context.get_background_color(Gtk.StateFlags.SELECTED | Gtk.StateFlags.FOCUSED);
  ^    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /nix/store/9xw3c4yk3rwihwwj047iqha364k8f962-gtk+3-3.22.21-dev/include/gtk-3.0/gtk/gtkicontheme.h:27:0,
                 from /nix/store/9xw3c4yk3rwihwwj047iqha364k8f962-gtk+3-3.22.21-dev/include/gtk-3.0/gtk/gtk.h:123,
                 from /home/ole/build/plotinus/build/src/CommandList.c:17:
/nix/store/9xw3c4yk3rwihwwj047iqha364k8f962-gtk+3-3.22.21-dev/include/gtk-3.0/gtk/gtkstylecontext.h:1201:6: note: declared here
 void gtk_style_context_get_background_color (GtkStyleContext *context,
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /nix/store/61i1fmxk0dgx93yawafhxr9j75z676ji-glib-2.52.3-dev/include/glib-2.0/glib.h:79:0,
                 from /home/ole/build/plotinus/build/src/CommandList.c:15:
/nix/store/yb5yh4rvzly3lyda4ghp9mbd6mgh1fqb-vala-0.34.1/share/vala-0.34/vapi/glib-2.0.vapi: In function 'string_strip':
/nix/store/yb5yh4rvzly3lyda4ghp9mbd6mgh1fqb-vala-0.34.1/share/vala-0.34/vapi/glib-2.0.vapi:1209:14: warning: passing argument 1 of 'g_strchug' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   result._strip ();
              ^
/nix/store/61i1fmxk0dgx93yawafhxr9j75z676ji-glib-2.52.3-dev/include/glib-2.0/glib/gstrfuncs.h:180:53: note: in definition of macro 'g_strstrip'
 #define g_strstrip( string ) g_strchomp (g_strchug (string))
                                                     ^~~~~~
/nix/store/61i1fmxk0dgx93yawafhxr9j75z676ji-glib-2.52.3-dev/include/glib-2.0/glib/gstrfuncs.h:175:23: note: expected 'gchar * {aka char *}' but argument is of type 'const gchar * {aka const char *}'
 gchar*                g_strchug        (gchar        *string);
                       ^~~~~~~~~
[ 22%] Building C object CMakeFiles/dbus_service.dir/src/InstanceSettings.c.o
[ 27%] Building C object CMakeFiles/dbus_service.dir/src/Keybinder.c.o
/home/ole/build/plotinus/src/Keybinder.vala: In function 'plotinus_application_keybinder_real_set_keys':
/home/ole/build/plotinus/src/Keybinder.vala:40:100: warning: passing argument 3 of 'gtk_application_set_accels_for_action' from incompatible pointer type [-Wincompatible-pointer-types]
       application.set_accels_for_action("app." + ACTION_NAME, keys);
                                                                                                    ^     
In file included from /nix/store/9xw3c4yk3rwihwwj047iqha364k8f962-gtk+3-3.22.21-dev/include/gtk-3.0/gtk/gtkwindow.h:33:0,
                 from /nix/store/9xw3c4yk3rwihwwj047iqha364k8f962-gtk+3-3.22.21-dev/include/gtk-3.0/gtk/gtkdialog.h:32,
                 from /nix/store/9xw3c4yk3rwihwwj047iqha364k8f962-gtk+3-3.22.21-dev/include/gtk-3.0/gtk/gtkaboutdialog.h:30,
                 from /nix/store/9xw3c4yk3rwihwwj047iqha364k8f962-gtk+3-3.22.21-dev/include/gtk-3.0/gtk/gtk.h:31,
                 from /home/ole/build/plotinus/build/src/Keybinder.c:19:
/nix/store/9xw3c4yk3rwihwwj047iqha364k8f962-gtk+3-3.22.21-dev/include/gtk-3.0/gtk/gtkapplication.h:154:18: note: expected 'const gchar * const* {aka const char * const*}' but argument is of type 'gchar ** {aka char **}'
 void             gtk_application_set_accels_for_action           (GtkApplication       *application,
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 31%] Building C object CMakeFiles/dbus_service.dir/src/Module.c.o
/home/ole/build/plotinus/src/Module.vala: In function '__lambda23_':
/home/ole/build/plotinus/src/Module.vala:53:29: warning: passing argument 2 of 'g_list_foreach' from incompatible pointer type [-Wincompatible-pointer-types]
           AppInfo.get_all().foreach((app_info) => {
                             ^~~~~~~~~~~~~~~~~~~~
In file included from /nix/store/61i1fmxk0dgx93yawafhxr9j75z676ji-glib-2.52.3-dev/include/glib-2.0/glib/ghash.h:33:0,
                 from /nix/store/61i1fmxk0dgx93yawafhxr9j75z676ji-glib-2.52.3-dev/include/glib-2.0/glib.h:50,
                 from /home/ole/build/plotinus/build/src/Module.c:15:
/nix/store/61i1fmxk0dgx93yawafhxr9j75z676ji-glib-2.52.3-dev/include/glib-2.0/glib/glist.h:132:10: note: expected 'GFunc {aka void (*)(void *, void *)}' but argument is of type 'void (*)(const void *, void *)'
 void     g_list_foreach                 (GList            *list,
          ^~~~~~~~~~~~~~
[ 36%] Building C object CMakeFiles/dbus_service.dir/src/PopupWindow.c.o
[ 40%] Building C object CMakeFiles/dbus_service.dir/src/Service.c.o
/home/ole/build/plotinus/src/Service.vala: In function '__lambda29_':
/home/ole/build/plotinus/src/Service.vala:48:9: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
         CommandProviderProxy command_provider = Bus.get_proxy.end(result);
         ^
/home/ole/build/plotinus/src/Service.vala:48:40: warning: passing argument 1 of 'g_async_initable_new_finish' from incompatible pointer type [-Wincompatible-pointer-types]
         CommandProviderProxy command_provider = Bus.get_proxy.end(result);
                                        ^~~~~~
In file included from /nix/store/61i1fmxk0dgx93yawafhxr9j75z676ji-glib-2.52.3-dev/include/glib-2.0/gio/gio.h:35:0,
                 from /nix/store/9xw3c4yk3rwihwwj047iqha364k8f962-gtk+3-3.22.21-dev/include/gtk-3.0/gdk/gdkapplaunchcontext.h:28,
                 from /nix/store/9xw3c4yk3rwihwwj047iqha364k8f962-gtk+3-3.22.21-dev/include/gtk-3.0/gdk/gdk.h:32,
                 from /nix/store/9xw3c4yk3rwihwwj047iqha364k8f962-gtk+3-3.22.21-dev/include/gtk-3.0/gtk/gtk.h:30,
                 from /home/ole/build/plotinus/build/src/Service.c:19:
/nix/store/61i1fmxk0dgx93yawafhxr9j75z676ji-glib-2.52.3-dev/include/glib-2.0/gio/gasyncinitable.h:115:10: note: expected 'GAsyncInitable * {aka struct _GAsyncInitable *}' but argument is of type 'PlotinusCommandProviderProxy * {aka struct _PlotinusCommandProviderProxy *}'
 GObject *g_async_initable_new_finish       (GAsyncInitable       *initable,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ole/build/plotinus/src/Service.vala:48:9: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
         CommandProviderProxy command_provider = Bus.get_proxy.end(result);
         ^
Service.c: In function '_dbus_plotinus_service_get_commands':
Service.c:1011:39: warning: passing argument 1 of 'plotinus_service_proxy_get_commands' from incompatible pointer type [-Wincompatible-pointer-types]
/home/ole/build/plotinus/build/src/Service.c:287:6: note: expected 'PlotinusServiceProxy * {aka struct _PlotinusServiceProxy *}' but argument is of type 'PlotinusService * {aka struct _PlotinusService *}'
 void plotinus_service_proxy_get_commands (PlotinusServiceProxy* self, const char* window_path, gchar** bus_name, char*** command_paths, int* command_paths_length1);
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Service.c: In function '_dbus_plotinus_service_register_window':
Service.c:1055:42: warning: passing argument 1 of 'plotinus_service_proxy_register_window' from incompatible pointer type [-Wincompatible-pointer-types]
/home/ole/build/plotinus/build/src/Service.c:288:6: note: expected 'PlotinusServiceProxy * {aka struct _PlotinusServiceProxy *}' but argument is of type 'PlotinusService * {aka struct _PlotinusService *}'
 void plotinus_service_proxy_register_window (PlotinusServiceProxy* self, const char* window_path, const gchar* bus_name, const char* command_provider_path);
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Service.c: In function '_dbus_plotinus_service_unregister_window':
Service.c:1081:44: warning: passing argument 1 of 'plotinus_service_proxy_unregister_window' from incompatible pointer type [-Wincompatible-pointer-types]
/home/ole/build/plotinus/build/src/Service.c:289:6: note: expected 'PlotinusServiceProxy * {aka struct _PlotinusServiceProxy *}' but argument is of type 'PlotinusService * {aka struct _PlotinusService *}'
 void plotinus_service_proxy_unregister_window (PlotinusServiceProxy* self, const char* window_path);
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Service.c: In function '_dbus_plotinus_service_show_command_palette':
Service.c:1196:47: warning: passing argument 1 of 'plotinus_service_proxy_show_command_palette' from incompatible pointer type [-Wincompatible-pointer-types]
/home/ole/build/plotinus/build/src/Service.c:290:6: note: expected 'PlotinusServiceProxy * {aka struct _PlotinusServiceProxy *}' but argument is of type 'PlotinusService * {aka struct _PlotinusService *}'
 void plotinus_service_proxy_show_command_palette (PlotinusServiceProxy* self, PlotinusCommandStruct* commands, int commands_length1, gchar** bus_name, char** command_palette_path);
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Service.c: In function 'plotinus_service_proxy_proxy_get_commands':
Service.c:1376:228: error: 'error' undeclared (first use in this function)
Service.c:1376:228: note: each undeclared identifier is reported only once for each function it appears in
Service.c: In function 'plotinus_service_proxy_proxy_register_window':
Service.c:1428:228: error: 'error' undeclared (first use in this function)
Service.c: In function 'plotinus_service_proxy_proxy_unregister_window':
Service.c:1451:228: error: 'error' undeclared (first use in this function)
Service.c: In function 'plotinus_service_proxy_proxy_show_command_palette':
Service.c:1512:228: error: 'error' undeclared (first use in this function)
Service.c: In function '_dbus_plotinus_command_provider_get_commands':
Service.c:2170:48: warning: passing argument 1 of 'plotinus_command_provider_proxy_get_commands' from incompatible pointer type [-Wincompatible-pointer-types]
/home/ole/build/plotinus/build/src/Service.c:265:6: note: expected 'PlotinusCommandProviderProxy * {aka struct _PlotinusCommandProviderProxy *}' but argument is of type 'PlotinusCommandProvider * {aka struct _PlotinusCommandProvider *}'
 void plotinus_command_provider_proxy_get_commands (PlotinusCommandProviderProxy* self, gchar** bus_name, char*** command_paths, int* command_paths_length1);
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Service.c: In function 'plotinus_command_provider_proxy_proxy_get_commands':
Service.c:2321:228: error: 'error' undeclared (first use in this function)
make[2]: *** [CMakeFiles/dbus_service.dir/build.make:271: CMakeFiles/dbus_service.dir/src/Service.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:68: CMakeFiles/dbus_service.dir/all] Error 2
make: *** [Makefile:130: all] Error 2