Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Better handling of unrecognized @ directives #274

Open
dqueffeulouatw opened this Issue · 3 comments

3 participants

@dqueffeulouatw

I don't know where the problem is. Just drop here the stack:

appledoc version: 2.1 (build 840)

Oops, something went wrong...

NSRangeException: *** -[__NSArrayI objectAtIndex:]: index 3 beyond bounds [0 .. 2]

@ 0 CoreFoundation 0x00007fff8aee2f56 __exceptionPreprocess + 198

@ 1 libobjc.A.dylib 0x00007fff819cfd5e objc_exception_throw + 43

@ 2 CoreFoundation 0x00007fff8ae8c370 -[__NSArrayI objectAtIndex:] + 208

@ 3 appledoc 0x0000000104699686 -[GBCommentsProcessor processAvailabilityBlockInString:lines:blockRange:shortRange:] + 214

@ 4 appledoc 0x00000001046978b4 -[GBCommentsProcessor processCommentBlockInLines:blockRange:shortRange:] + 996

@ 5 appledoc 0x000000010469701e -[GBCommentsProcessor processComment:withContext:store:] + 1886

@ 6 appledoc 0x0000000104696899 -[GBCommentsProcessor processCommentForObject:withContext:store:] + 329

@ 7 appledoc 0x00000001046a2f64 -[GBProcessor processCommentForObject:] + 372

@ 8 appledoc 0x00000001046a2b77 -[GBProcessor processMethodsFromProvider:] + 615

@ 9 appledoc 0x00000001046a1731 -[GBProcessor processClasses] + 641

@ 10 appledoc 0x00000001046a146d -[GBProcessor processObjectsFromStore:] + 477

@ 11 appledoc 0x000000010465aa58 -[GBAppledocApplication application:runWithArguments:] + 1896

@ 12 appledoc 0x0000000104658385 -[DDCliApplication runWithClass:] + 357

@ 13 appledoc 0x00000001046586c7 DDCliAppRunWithClass + 103

@ 14 appledoc 0x0000000104657538 main + 56

@ 15 appledoc 0x00000001046574f4 start + 52

@tomaz
Owner
@dqueffeulouatw

I think I found it, it when I add @since :

/** Mark the URL dirty.

Next time the URL will be requested, it will not be taken from the cache excepted if the
network is unreachable. The invalidate persists across application stops.

@since 1.8
/
-(void)invalidateURL:(NSString
)aURL;

All is fine if I don't add the @

Actually I update appledoc to have the @since because it seemed to be available now. Maybe not.
Remark: the comment is closed normally (github don't show it).

@dmcgloin

I believe I'm seeing the same issue with the Appledoc build I downloaded today. It's the same NSRangeException. I turned on --verbose level 5 and identified the two different comment blocks that seemed to be the offenders. In both cases, after I removed the "@available" tag in this line: "@available Available in iOS 5.0 and later." it worked.

Happy to provide more details if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.