PMunch / notificatcher

Simple program to read freedesktop notifications and format them as strings
MIT License
18 stars 3 forks source link

Build fails when running nimble build #2

Open licoricee opened 2 years ago

licoricee commented 2 years ago

Log:

  Verifying dependencies for notificatcher@0.4.0
    Reading official package list
   Checking for https://github.com/zielmicha/nim-dbus@any version
      Info: Dependency on https://github.com/zielmicha/nim-dbus@any version already satisfied
  Verifying dependencies for dbus@0.0.1
    Reading official package list
   Checking for https://github.com/PMunch/docopt.nim@#dispatch
      Info: Dependency on https://github.com/PMunch/docopt.nim@#dispatch already satisfied
  Verifying dependencies for docopt@#dispatch
    Reading official package list
   Checking for regex@>= 0.11.1
      Info: Dependency on regex@>= 0.11.1 already satisfied
  Verifying dependencies for regex@0.19.0
    Reading official package list
   Checking for unicodedb@>= 0.7.2
      Info: Dependency on unicodedb@>= 0.7.2 already satisfied
  Verifying dependencies for unicodedb@0.10.0
    Reading official package list
   Checking for nimPNG@any version
      Info: Dependency on nimPNG@any version already satisfied
  Verifying dependencies for nimPNG@0.3.1
   Building notificatcher/notificatcher using c backend
  Executing /home/luke/.nimble/bin/nim c --colors:on --noNimblePath -d:NimblePkgVersion=0.4.0 --path:/home/luke/.nimble/pkgs/dbus-0.0.1 --path:'/home/luke/.nimble/pkgs/docopt-#dispatch' --path:/home/luke/.nimble/pkgs/regex-0.19.0 --path:/home/luke/.nimble/pkgs/unicodedb-0.10.0 --path:/home/luke/.nimble/pkgs/nimPNG-0.3.1 -o:/home/luke/.config/notificatcher/notificatcher /home/luke/.config/notificatcher/src/notificatcher.nim
Hint: used config file '/home/luke/.choosenim/toolchains/nim-1.6.6/config/nim.cfg' [Conf]
Hint: used config file '/home/luke/.choosenim/toolchains/nim-1.6.6/config/config.nims' [Conf]
...................................................................................................................
stack trace: (most recent call last)
/home/luke/.nimble/pkgs/dbus-0.0.1/dbus/private/defmacro.nim(28, 37) addMethod
/home/luke/.nimble/pkgs/dbus-0.0.1/dbus/private/defmacro.nim(7, 11) generateArgsDesc
/home/luke/.choosenim/toolchains/nim-1.6.6/lib/system/assertions.nim(38, 26) failedAssertImpl
/home/luke/.choosenim/toolchains/nim-1.6.6/lib/system/assertions.nim(28, 11) raiseAssert
/home/luke/.choosenim/toolchains/nim-1.6.6/lib/system/fatal.nim(53, 5) sysFatal
/home/luke/.nimble/pkgs/dbus-0.0.1/dbus/private/defintrospection.nim(7, 18) template/generic instantiation of `addMethod` from here
/home/luke/.choosenim/toolchains/nim-1.6.6/lib/system/fatal.nim(53, 5) Error: unhandled exception: /home/luke/.nimble/pkgs/dbus-0.0.1/dbus/private/defmacro.nim(7, 12) `arg.kind == nnkPar`  [AssertionDefect]
     Error: Build failed for package: notificatcher
        ... Execution failed with exit code 1
        ... Command: /home/luke/.nimble/bin/nim c --colors:on --noNimblePath -d:NimblePkgVersion=0.4.0 --path:/home/luke/.nimble/pkgs/dbus-0.0.1 --path:'/home/luke/.nimble/pkgs/docopt-#dispatch' --path:/home/luke/.nimble/pkgs/regex-0.19.0 --path:/home/luke/.nimble/pkgs/unicodedb-0.10.0 --path:/home/luke/.nimble/pkgs/nimPNG-0.3.1 -o:/home/luke/.config/notificatcher/notificatcher /home/luke/.config/notificatcher/src/notificatcher.nim
❯ nimble build -d:release
  Verifying dependencies for notificatcher@0.4.0
      Info: Dependency on https://github.com/zielmicha/nim-dbus@any version already satisfied
  Verifying dependencies for dbus@0.0.1
      Info: Dependency on https://github.com/PMunch/docopt.nim@#dispatch already satisfied
  Verifying dependencies for docopt@#dispatch
      Info: Dependency on regex@>= 0.11.1 already satisfied
  Verifying dependencies for regex@0.19.0
      Info: Dependency on unicodedb@>= 0.7.2 already satisfied
  Verifying dependencies for unicodedb@0.10.0
      Info: Dependency on nimPNG@any version already satisfied
  Verifying dependencies for nimPNG@0.3.1
   Building notificatcher/notificatcher using c backend
stack trace: (most recent call last)
defmacro.nim(28, 37)     addMethod
defmacro.nim(7, 11)      generateArgsDesc
assertions.nim(38, 26)   failedAssertImpl
assertions.nim(28, 11)   raiseAssert
fatal.nim(53, 5)         sysFatal
/home/luke/.nimble/pkgs/dbus-0.0.1/dbus/private/defintrospection.nim(7, 18) template/generic instantiation of `addMethod` from here
/home/luke/.choosenim/toolchains/nim-1.6.6/lib/system/fatal.nim(53, 5) Error: unhandled exception: defmacro.nim(7, 12) `arg.kind == nnkPar`  [AssertionDefect]
       Tip: 11 messages have been suppressed, use --verbose to show them.
     Error: Build failed for package: notificatcher
        ... Execution failed with exit code 1
        ... Command: /home/luke/.nimble/bin/nim c --colors:on --noNimblePath -d:release -d:NimblePkgVersion=0.4.0 --path:/home/luke/.nimble/pkgs/dbus-0.0.1 --path:'/home/luke/.nimble/pkgs/docopt-#dispatch' --path:/home/luke/.nimble/pkgs/regex-0.19.0 --path:/home/luke/.nimble/pkgs/unicodedb-0.10.0 --path:/home/luke/.nimble/pkgs/nimPNG-0.3.1 --hints:off -o:/home/luke/.config/notificatcher/notificatcher /home/luke/.config/notificatcher/src/notificatcher.nim
PMunch commented 2 years ago

I forgot that I had made a tiny modification to that library locally to get this to work. I'll make a PR to them, and in the meantime tag this repository to use my branch.

licoricee commented 2 years ago

oh, i fixed it by just switching to nim 1.4.8 on choosenim

licoricee commented 2 years ago

wait, it compiles but it doesnt activate when i use something like notify-send

licoricee commented 2 years ago

my mistake that was becaus dunst was running

PMunch commented 2 years ago

Just pushed a fix that will make it compile on 1.6.6 as well. And yes, if something else is already bound to the dbus then you won't get notifications.