Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Parse assertion for '+' symbols in C functions in @implementation blocks #394

Open
karwa opened this Issue Aug 18, 2013 · 1 comment

Comments

Projects
None yet
2 participants

karwa commented Aug 18, 2013

Appledoc is crashing when attempting to parse one of my implementation files. I traced it back, and it appears to be recognising the '+' symbol in a C function in my @implementation block.

Appledoc seems to think that this symbol (used for addition) is part of a class method declaration. If you comment out the addition, it parses the file just fine.

2013-08-18 17:50:31.078 appledoc[6528:707] *** Assertion failure in +[GBMethodData methodDataWithType:result:arguments:], /Users/karl/Spring/Tools/appledoc/Model/GBMethodData.m:41
Oops, something went wrong...
NSInternalInconsistencyException: Invalid parameter not satisfying: [arguments count] >= 1

It is possible to work around the issue by moving the C function outside of the implementation block.

Here is the .m file triggering the assertion: http://pastebin.com/aqmHu1rv

Owner

tomaz commented Aug 18, 2013

This is known issue with 2.x codebase. Can't find exisiting issue right now, but I'm sure there was one.

@tomaz tomaz added Bug Known labels May 16, 2014

@tomaz tomaz added this to the 3.0 milestone May 16, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment