{"action":"created","issue":{"url":"https://api.github.com/repos/tomaz/appledoc/issues/543","repository_url":"https://api.github.com/repos/tomaz/appledoc","labels_url":"https://api.github.com/repos/tomaz/appledoc/issues/543/labels{/name}","comments_url":"https://api.github.com/repos/tomaz/appledoc/issues/543/comments","events_url":"https://api.github.com/repos/tomaz/appledoc/issues/543/events","html_url":"https://github.com/tomaz/appledoc/issues/543","id":93798973,"number":543,"title":"Crash when referencing a block typedef in an enum constant comment","user":{"login":"jbmorley","id":220887,"avatar_url":"https://avatars.githubusercontent.com/u/220887?v=3","gravatar_id":"","url":"https://api.github.com/users/jbmorley","html_url":"https://github.com/jbmorley","followers_url":"https://api.github.com/users/jbmorley/followers","following_url":"https://api.github.com/users/jbmorley/following{/other_user}","gists_url":"https://api.github.com/users/jbmorley/gists{/gist_id}","starred_url":"https://api.github.com/users/jbmorley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbmorley/subscriptions","organizations_url":"https://api.github.com/users/jbmorley/orgs","repos_url":"https://api.github.com/users/jbmorley/repos","events_url":"https://api.github.com/users/jbmorley/events{/privacy}","received_events_url":"https://api.github.com/users/jbmorley/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-08T14:09:43Z","updated_at":"2016-03-17T07:01:57Z","closed_at":null,"body":"Block typedefs seem to be incorrectly handled when referenced from the comment block of an NS_ENUM constant, resulting in a crash.\r\n\r\nStack trace:\r\n```\r\nNSInvalidArgumentException: -[GBEnumConstantData methodSelector]: unrecognized selector sent to instance 0x100600310\r\n  @ 0   CoreFoundation                      0x00007fff9726b03c __exceptionPreprocess + 172\r\n  @ 1   libobjc.A.dylib                     0x00007fff9b13476e objc_exception_throw + 43\r\n  @ 2   CoreFoundation                      0x00007fff9726e0ad -[NSObject(NSObject) doesNotRecognizeSelector:] + 205\r\n  @ 3   CoreFoundation                      0x00007fff971b3e24 ___forwarding___ + 1028\r\n  @ 4   CoreFoundation                      0x00007fff971b3998 _CF_forwarding_prep_0 + 120\r\n  @ 5   appledoc                            0x000000010005b18a -[GBCrossRefData matchesObject:] + 1034\r\n  @ 6   appledoc                            0x00000001000657ea -[GBCommentsProcessor stringByConvertingSimpleCrossReferencesInString:searchRange:flags:] + 1562\r\n  @ 7   appledoc                            0x0000000100065110 -[GBCommentsProcessor stringByConvertingCrossReferencesInString:withFlags:] + 2176\r\n  @ 8   appledoc                            0x0000000100064788 -[GBCommentsProcessor stringByPreprocessingNonLinkString:withFlags:] + 5624\r\n  @ 9   appledoc                            0x0000000100062ee3 -[GBCommentsProcessor stringByPreprocessingString:withFlags:] + 1763\r\n  @ 10  appledoc                            0x000000010006261f -[GBCommentsProcessor commentComponentByPreprocessingString:withFlags:] + 431\r\n  @ 11  appledoc                            0x000000010005d9a4 -[GBCommentsProcessor registerShortDescriptionFromLines:range:removePrefix:] + 708\r\n  @ 12  appledoc                            0x000000010005d39b -[GBCommentsProcessor processCommentBlockInLines:blockRange:shortRange:] + 2331\r\n  @ 13  appledoc                            0x000000010005c45e -[GBCommentsProcessor processComment:withContext:store:] + 2334\r\n  @ 14  appledoc                            0x000000010005bada -[GBCommentsProcessor processCommentForObject:withContext:store:] + 410\r\n  @ 15  appledoc                            0x000000010006e720 -[GBProcessor processCommentForObject:] + 560\r\n  @ 16  appledoc                            0x000000010006e20c -[GBProcessor processConstantsFromProvider:] + 620\r\n  @ 17  appledoc                            0x000000010006c95b -[GBProcessor processConstants] + 715\r\n  @ 18  appledoc                            0x000000010006b7b5 -[GBProcessor processObjectsFromStore:] + 581\r\n  @ 19  appledoc                            0x00000001000057dc -[GBAppledocApplication application:runWithArguments:] + 2588\r\n  @ 20  appledoc                            0x0000000100002d6b -[DDCliApplication runWithDelegate:arguments:] + 427\r\n  @ 21  appledoc                            0x000000010000303b -[DDCliApplication runWithClass:] + 283\r\n  @ 22  appledoc                            0x00000001000032a3 DDCliAppRunWithClass + 99\r\n  @ 23  appledoc                            0x0000000100001ab7 main + 55\r\n  @ 24  appledoc                            0x0000000100001a74 start + 52\r\n```\r\n\r\nThis can be reproduced from the following header:\r\n```objc\r\ntypedef NS_ENUM(NSInteger, ISCustomBlockResponse) {\r\n    \r\n    /**\r\n     * Return this response from an ISCustomBlock.\r\n     */\r\n    ISCustomBlockResponseSuccess,\r\n    \r\n};\r\n\r\ntypedef ISCustomBlockResponse (^ISCustomBlock)();\r\n```"},"comment":{"url":"https://api.github.com/repos/tomaz/appledoc/issues/comments/197733780","html_url":"https://github.com/tomaz/appledoc/issues/543#issuecomment-197733780","issue_url":"https://api.github.com/repos/tomaz/appledoc/issues/543","id":197733780,"user":{"login":"KimDarren","id":5376577,"avatar_url":"https://avatars.githubusercontent.com/u/5376577?v=3","gravatar_id":"","url":"https://api.github.com/users/KimDarren","html_url":"https://github.com/KimDarren","followers_url":"https://api.github.com/users/KimDarren/followers","following_url":"https://api.github.com/users/KimDarren/following{/other_user}","gists_url":"https://api.github.com/users/KimDarren/gists{/gist_id}","starred_url":"https://api.github.com/users/KimDarren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KimDarren/subscriptions","organizations_url":"https://api.github.com/users/KimDarren/orgs","repos_url":"https://api.github.com/users/KimDarren/repos","events_url":"https://api.github.com/users/KimDarren/events{/privacy}","received_events_url":"https://api.github.com/users/KimDarren/received_events","type":"User","site_admin":false},"created_at":"2016-03-17T07:01:57Z","updated_at":"2016-03-17T07:01:57Z","body":":+1: "}}