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

objc doc generation: "fatal error: not text: CXCommentKind(rawValue: 3)" #409

Closed
Nelyus opened this issue Jul 27, 2017 · 0 comments · Fixed by #634
Closed

objc doc generation: "fatal error: not text: CXCommentKind(rawValue: 3)" #409

Nelyus opened this issue Jul 27, 2017 · 0 comments · Fixed by #634

Comments

@Nelyus
Copy link

Nelyus commented Jul 27, 2017

I encountered this error while trying to generate documentation for an all-objc framework with jazzy.

tl;dr; don't use html tags, use markdown

I don't know if it is worth addressing, but at least the explanation and workaround might be worth this ticket. (It took me some time to understand where the error came from).

The issue error arises when some fields in the documentation contains an html tag. So the workaround is to remove html tags and prefer markdown.

For information here is the header file, command line args and error log of the failing case:

// my_header.h

/**
 * some foo function
 * @param bar has a <b>purpose</b>
 */
void foo(int bar);
$> sourcekitten doc --objc my_header.h -- -x objective-c -isysroot "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -I '' -fmodules
fatal error: not text: CXCommentKind(rawValue: 3): file /[...]/SourceKitten/Source/SourceKittenFramework/Clang+SourceKitten.swift, line 263

but the following works fine:

// my_header.h

/**
 * some foo function
 * @param bar has a **purpose**
 */
void foo(int bar);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants
@Nelyus and others