iffy / nim-argparse

Argument parsing for Nim
MIT License
122 stars 8 forks source link

nim-argparse fails on recent devel #22

Closed brentp closed 5 years ago

brentp commented 5 years ago

nimble test endswith the following traceback:

/home/brentp/src/nim-argparse/src/argparse/macrohelp.nim(4, 8) Warning: imported and not used: 'sequtils' [UnusedImport]
/home/brentp/src/nim-argparse/src/argparse.nim(651, 9) Hint: 'ParentOptsIdent' is declared but not used [XDeclaredButNotUsed]
/home/brentp/src/nim-argparse/src/argparse.nim(117, 3) Hint: 'ParseResult' is declared but not used [XDeclaredButNotUsed]
stack trace: (most recent call last)
/home/brentp/src/nim-argparse/src/argparse.nim(929, 23) tmpmkParser
/home/brentp/src/nim-argparse/src/argparse.nim(760, 31) mkParser
/home/brentp/src/nim-argparse/src/argparse.nim(623, 36) genParseProcs
/home/brentp/src/nim-argparse/src/argparse/macrohelp.nim(60, 8) parentOf
/home/brentp/src/nim-argparse/tests/test1.nim(24, 7) template/generic instantiation of `suite` from here
/home/brentp/src/nim-argparse/tests/test1.nim(25, 8) template/generic instantiation of `test` from here
/home/brentp/src/nim-argparse/tests/test1.nim(26, 22) template/generic instantiation of `newParser` from here
/home/brentp/src/nim-argparse/src/argparse/macrohelp.nim(60, 8) Error: node not found: EXTRA
     Error: Execution failed with exit code 1
        ... Command: "/home/brentp/src/nim/bin/nim" c --noNimblePath "-r" "--path:."  "/home/brentp/src/nim-argparse/tests/test1.nim"
iffy commented 5 years ago

I'm guessing this is the problematic line: https://github.com/iffy/nim-argparse/blob/master/src/argparse.nim#L623

I suspect something has changed with macros quote do: in devel.

brentp commented 5 years ago

cheers!