{"action":"created","issue":{"url":"https://api.github.com/repos/c-blake/cligen/issues/98","repository_url":"https://api.github.com/repos/c-blake/cligen","labels_url":"https://api.github.com/repos/c-blake/cligen/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/c-blake/cligen/issues/98/comments","events_url":"https://api.github.com/repos/c-blake/cligen/issues/98/events","html_url":"https://github.com/c-blake/cligen/issues/98","id":433927633,"node_id":"MDU6SXNzdWU0MzM5Mjc2MzM=","number":98,"title":"weird problem","user":{"login":"pb-cdunn","id":12086299,"node_id":"MDQ6VXNlcjEyMDg2Mjk5","avatar_url":"https://avatars1.githubusercontent.com/u/12086299?v=4","gravatar_id":"","url":"https://api.github.com/users/pb-cdunn","html_url":"https://github.com/pb-cdunn","followers_url":"https://api.github.com/users/pb-cdunn/followers","following_url":"https://api.github.com/users/pb-cdunn/following{/other_user}","gists_url":"https://api.github.com/users/pb-cdunn/gists{/gist_id}","starred_url":"https://api.github.com/users/pb-cdunn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pb-cdunn/subscriptions","organizations_url":"https://api.github.com/users/pb-cdunn/orgs","repos_url":"https://api.github.com/users/pb-cdunn/repos","events_url":"https://api.github.com/users/pb-cdunn/events{/privacy}","received_events_url":"https://api.github.com/users/pb-cdunn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2019-04-16T18:37:44Z","updated_at":"2019-04-16T21:13:13Z","closed_at":null,"author_association":"NONE","body":"```\r\n     Error: Build failed for package: pb\r\n        ... Details:\r\n        ... Execution failed with exit code 1\r\n        ... Command: \"/mnt/software/n/nim/0.19.9/Nim/bin/nim\" c --noBabelPath --path:\"/pbi/flash/cdunn/repo/.git/NIMBLE/pkgs/cligen-0.9.19\"  --path:\"/pbi/flash/cdunn/repo/.git/NIMBLE/pkgs/hts-0.2.9\"  -o:\"/pbi/flash/cdunn/repo/utils/pb\" \"/pbi/flash/cdunn/repo/utils/src/pb.nim\"\r\n        ... Output: stack trace: (most recent call last)\r\n        ... ../../.git/NIMBLE/pkgs/cligen-0.9.19/cligen.nim(305, 27) dispatchGen\r\n        ... ../../.git/NIMBLE/pkgs/cligen-0.9.19/cligen.nim(57, 9) formalParams\r\n        ... pb.nim(17, 18) template/generic instantiation of `dispatchMulti` from here\r\n        ... pb.nim(18, 10) template/generic instantiation of `dispatchMultiGen` from here\r\n        ... pb.nim(21, 10) template/generic instantiation of `dispatchGen` from here\r\n        ... ../../.git/NIMBLE/pkgs/cligen-0.9.19/cligen.nim(57, 9) Error: formalParams requires a proc argument.\r\n```\r\nThat happens for\r\n```nim\r\nimport pbpkg/phasr\r\n\r\nproc phasr() =\r\n    phasr.foo()\r\n\r\nwhen isMainModule:\r\n    import cligen\r\n    dispatchMulti(\r\n        [phasr],\r\n    )\r\n```\r\nBut the following works fine:\r\n```nim\r\nimport pbpkg/zev  # where I have moved the module phasr.nim to zev.nim\r\n\r\nproc zev() =\r\n    zev.foo()\r\n\r\nwhen isMainModule:\r\n    import cligen\r\n    dispatchMulti(\r\n        [zev]\r\n    )\r\n```\r\nAlso fine is:\r\n```nim\r\nimport pbpkg/phasr\r\n\r\nproc phase() =\r\n    phasr.foo()\r\n\r\nwhen isMainModule:\r\n    import cligen\r\n    dispatchMulti(\r\n        [phase],\r\n    )\r\n```\r\nWhy does the word `phasr` not work, but `zev` works fine?"},"comment":{"url":"https://api.github.com/repos/c-blake/cligen/issues/comments/483845736","html_url":"https://github.com/c-blake/cligen/issues/98#issuecomment-483845736","issue_url":"https://api.github.com/repos/c-blake/cligen/issues/98","id":483845736,"node_id":"MDEyOklzc3VlQ29tbWVudDQ4Mzg0NTczNg==","user":{"login":"pb-cdunn","id":12086299,"node_id":"MDQ6VXNlcjEyMDg2Mjk5","avatar_url":"https://avatars1.githubusercontent.com/u/12086299?v=4","gravatar_id":"","url":"https://api.github.com/users/pb-cdunn","html_url":"https://github.com/pb-cdunn","followers_url":"https://api.github.com/users/pb-cdunn/followers","following_url":"https://api.github.com/users/pb-cdunn/following{/other_user}","gists_url":"https://api.github.com/users/pb-cdunn/gists{/gist_id}","starred_url":"https://api.github.com/users/pb-cdunn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pb-cdunn/subscriptions","organizations_url":"https://api.github.com/users/pb-cdunn/orgs","repos_url":"https://api.github.com/users/pb-cdunn/repos","events_url":"https://api.github.com/users/pb-cdunn/events{/privacy}","received_events_url":"https://api.github.com/users/pb-cdunn/received_events","type":"User","site_admin":false},"created_at":"2019-04-16T21:13:13Z","updated_at":"2019-04-16T21:13:13Z","author_association":"NONE","body":"Ok. Not critical though. `cmdName` works fine."}}
{"actor":{"display_login":"pb-cdunn"}}