Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsupported CXCursorKind #387

Closed
Mozahler opened this issue Nov 22, 2015 · 4 comments
Closed

Unsupported CXCursorKind #387

Mozahler opened this issue Nov 22, 2015 · 4 comments

Comments

@Mozahler
Copy link

I'm struggling with trying to document my ObjectiveC framework which is a few years old and compiles fine. None of my includes are being recognized by jazzy, so I'm specifying an alternate umbrella file with full paths. If I hardcode full paths to the files it seems to get further, but this error stops me in my tracks. I don't know what I can provide that would help diagnose the problem, but I'd be happy to provide it.

/Library/Ruby/Gems/2.0.0/gems/rouge-1.9.1/lib/rouge/lexers/shell.rb:20: warning: already initialized constant Rouge::Lexers::Shell::KEYWORDS
/Library/Ruby/Gems/2.0.0/gems/rouge-1.9.1/lib/rouge/lexers/shell.rb:20: warning: previous definition of KEYWORDS was here
/Library/Ruby/Gems/2.0.0/gems/rouge-1.9.1/lib/rouge/lexers/shell.rb:25: warning: already initialized constant Rouge::Lexers::Shell::BUILTINS
/Library/Ruby/Gems/2.0.0/gems/rouge-1.9.1/lib/rouge/lexers/shell.rb:25: warning: previous definition of BUILTINS was here
fatal error: Unsupported CXCursorKind value: 15: file /Users/jp/Projects/jazzy/SourceKitten/Source/SourceKittenFramework/ObjCDeclarationKind.swift, line 55
/Library/Ruby/Gems/2.0.0/gems/jazzy-0.4.0/lib/jazzy/executable.rb:36:in `execute_command': /Library/Ruby/Gems/2.0.0/gems/jazzy-0.4.0/lib/jazzy/SourceKitten/bin/sourcekitten ["doc", "--objc", "/Users/Alex/Alex/SummerLib2015/SummerLib2015/SummerLib2015_jazzy.h", "-x", "objective-c", "-isysroot", "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.1.sdk", "-I", "/Users/Alex/Alex/SummerLib2015"] (RuntimeError)
@Mozahler
Copy link
Author

the next and final error is:


fatal error: Unsupported CXCursorKind value: 15: file /Users/jp/Projects/jazzy/SourceKitten/Source/SourceKittenFramework/ObjCDeclarationKind.swift, line 55
    from /Library/Ruby/Gems/2.0.0/gems/jazzy-0.4.0/lib/jazzy/sourcekitten.rb:136:in `run_sourcekitten'
    from /Library/Ruby/Gems/2.0.0/gems/jazzy-0.4.0/lib/jazzy/doc_builder.rb:57:in `block in build'
    from /Library/Ruby/Gems/2.0.0/gems/jazzy-0.4.0/lib/jazzy/doc_builder.rb:55:in `chdir'
    from /Library/Ruby/Gems/2.0.0/gems/jazzy-0.4.0/lib/jazzy/doc_builder.rb:55:in `build'
    from /Library/Ruby/Gems/2.0.0/gems/jazzy-0.4.0/bin/jazzy:15:in `<top (required)>'
    from /usr/bin/jazzy:23:in `load'
    from /usr/bin/jazzy:23:in `<main>'

@jpsim
Copy link
Collaborator

jpsim commented Nov 23, 2015

Thanks for reporting this, @Mozahler! You're getting this error because you're using an Objective-C ivar in your public API headers and jazzy doesn't support that at the moment. Thankfully, it's pretty easy to address so I'll go do that now and post back here once that's done!

@jpsim
Copy link
Collaborator

jpsim commented Nov 24, 2015

Fixed in master 😄

@Mozahler
Copy link
Author

Wow! That was quick. Thank you and have a wonderful Thanksgiving

@karagraysen karagraysen modified the milestone: The Past Nov 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants