notificatcher icon indicating copy to clipboard operation
notificatcher copied to clipboard

Build fails when running nimble build

Open yummy-licorice opened this issue 2 years ago • 5 comments

Log:

  Verifying dependencies for [email protected]
    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 [email protected]
    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 [email protected]
    Reading official package list
   Checking for unicodedb@>= 0.7.2
      Info: Dependency on unicodedb@>= 0.7.2 already satisfied
  Verifying dependencies for [email protected]
    Reading official package list
   Checking for nimPNG@any version
      Info: Dependency on nimPNG@any version already satisfied
  Verifying dependencies for [email protected]
   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 [email protected]
      Info: Dependency on https://github.com/zielmicha/nim-dbus@any version already satisfied
  Verifying dependencies for [email protected]
      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 [email protected]
      Info: Dependency on unicodedb@>= 0.7.2 already satisfied
  Verifying dependencies for [email protected]
      Info: Dependency on nimPNG@any version already satisfied
  Verifying dependencies for [email protected]
   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

yummy-licorice avatar Jun 16 '22 05:06 yummy-licorice

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.

PMunch avatar Jun 16 '22 06:06 PMunch

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

yummy-licorice avatar Jun 16 '22 06:06 yummy-licorice

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

yummy-licorice avatar Jun 16 '22 06:06 yummy-licorice

my mistake that was becaus dunst was running

yummy-licorice avatar Jun 16 '22 06:06 yummy-licorice

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.

PMunch avatar Jun 16 '22 07:06 PMunch