{"action":"created","issue":{"url":"https://api.github.com/repos/c-blake/cligen/issues/83","repository_url":"https://api.github.com/repos/c-blake/cligen","labels_url":"https://api.github.com/repos/c-blake/cligen/issues/83/labels{/name}","comments_url":"https://api.github.com/repos/c-blake/cligen/issues/83/comments","events_url":"https://api.github.com/repos/c-blake/cligen/issues/83/events","html_url":"https://github.com/c-blake/cligen/issues/83","id":388305041,"node_id":"MDU6SXNzdWUzODgzMDUwNDE=","number":83,"title":"API change/change in return value of dispatch_* procs?","user":{"login":"kaushalmodi","id":3578197,"node_id":"MDQ6VXNlcjM1NzgxOTc=","avatar_url":"https://avatars2.githubusercontent.com/u/3578197?v=4","gravatar_id":"","url":"https://api.github.com/users/kaushalmodi","html_url":"https://github.com/kaushalmodi","followers_url":"https://api.github.com/users/kaushalmodi/followers","following_url":"https://api.github.com/users/kaushalmodi/following{/other_user}","gists_url":"https://api.github.com/users/kaushalmodi/gists{/gist_id}","starred_url":"https://api.github.com/users/kaushalmodi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaushalmodi/subscriptions","organizations_url":"https://api.github.com/users/kaushalmodi/orgs","repos_url":"https://api.github.com/users/kaushalmodi/repos","events_url":"https://api.github.com/users/kaushalmodi/events{/privacy}","received_events_url":"https://api.github.com/users/kaushalmodi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-12-06T16:55:48Z","updated_at":"2018-12-06T17:36:53Z","closed_at":"2018-12-06T17:06:06Z","author_association":"NONE","body":"Hello,\r\n\r\nI have this snippet like this in few of my packages:\r\n\r\n```nim\r\nwhen isMainModule:\r\n  import cligen\r\n  const\r\n    url = \"https://github.com/OrgTangle/ntangle\"\r\n  dispatchGen(ntangle\r\n              , usage = \"\\nNAME\\n  ntangle - $doc\\n\" &\r\n                \"USAGE\\n  $command $args\\n\\n\" &\r\n                \"OPTIONS\\n$options\\n\" &\r\n                \"URL\\n  \" & url & \"\\n\"\r\n              , help = { \"version\": \"write the version to stdout\" }\r\n  )\r\n  if paramCount()==0:\r\n    quit(dispatch_ntangle(@[\"--help\"]))    # This is line 564 referenced in the backtrace below.\r\n  else:\r\n    quit(dispatch_ntangle(commandLineParams()))\r\n```\r\n\r\nRef: https://github.com/c-blake/cligen/issues/27#issuecomment-387819439\r\n\r\nThat works with the latest cligen release as of today (0.9.18). But after `nimble install cligen@#HEAD`, I get this error:\r\n\r\n```\r\nntangle.nim(564, 9) Error: type mismatch: got <void>\r\nbut expected one of:\r\nproc quit(errormsg: string; errorcode = QuitFailure)\r\nproc quit(errorcode: int = QuitSuccess)\r\n\r\nexpression: quit(dispatchntangle(@[\"--help\"],\r\n                     \"Command-line utility for Tangling of Org mode documents\", \"\\nNAME\\n  ntangle - $doc\\nUSAGE\\n  $command $args\\n\\nOPTIONS\\n$options\\nURL\\n  https://github.com/OrgTangle/ntangle\\n\",\r\n                     \"\", \"\", false))\r\nstack trace: (most recent call last)\r\n../../../../../../pkgs/nim/devel/lib/system/nimscript.nim(351)\r\n../../../../../nim/nim/config.nims(231) muslTask\r\n../../../../../../pkgs/nim/devel/lib/system/nimscript.nim(252) selfExec\r\n/home/kmodi/stow/pkgs/nim/devel/lib/system/nimscript.nim(252, 7) Error: unhandled exception: FAILED: /home/kmodi/stow/pkgs/nim/devel/bin/nim c -d:musl -d:release --opt:size  src/ntangle.nim\r\n```\r\n\r\nI am using Nim built from devel branch 160a03464310d8a9e1ffaf83d73904df3439df78."},"comment":{"url":"https://api.github.com/repos/c-blake/cligen/issues/comments/444960616","html_url":"https://github.com/c-blake/cligen/issues/83#issuecomment-444960616","issue_url":"https://api.github.com/repos/c-blake/cligen/issues/83","id":444960616,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NDk2MDYxNg==","user":{"login":"c-blake","id":8928205,"node_id":"MDQ6VXNlcjg5MjgyMDU=","avatar_url":"https://avatars2.githubusercontent.com/u/8928205?v=4","gravatar_id":"","url":"https://api.github.com/users/c-blake","html_url":"https://github.com/c-blake","followers_url":"https://api.github.com/users/c-blake/followers","following_url":"https://api.github.com/users/c-blake/following{/other_user}","gists_url":"https://api.github.com/users/c-blake/gists{/gist_id}","starred_url":"https://api.github.com/users/c-blake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c-blake/subscriptions","organizations_url":"https://api.github.com/users/c-blake/orgs","repos_url":"https://api.github.com/users/c-blake/repos","events_url":"https://api.github.com/users/c-blake/events{/privacy}","received_events_url":"https://api.github.com/users/c-blake/received_events","type":"User","site_admin":false},"created_at":"2018-12-06T17:36:53Z","updated_at":"2018-12-06T17:36:53Z","author_association":"OWNER","body":"Cool.  Thanks."}}
{"actor":{"display_login":"c-blake"}}