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

Fails to create documentation #332

Closed
AfricanSwift opened this issue Oct 29, 2015 · 3 comments
Closed

Fails to create documentation #332

AfricanSwift opened this issue Oct 29, 2015 · 3 comments
Assignees
Milestone

Comments

@AfricanSwift
Copy link

After parsing all the swift files it ends with the following message:

parsing ....

/Library/Ruby/Gems/2.0.0/gems/jazzy-0.3.2/lib/jazzy/executable.rb:35:in `execute_command': /Library/Ruby/Gems/2.0.0/gems/jazzy-0.3.2/lib/jazzy/SourceKitten/bin/sourcekitten "doc"] (RuntimeError)

parsing...

from /Library/Ruby/Gems/2.0.0/gems/jazzy-0.3.2/lib/jazzy/sourcekitten.rb:128:in run_sourcekitten' from /Library/Ruby/Gems/2.0.0/gems/jazzy-0.3.2/lib/jazzy/doc_builder.rb:56:inblock in build'
from /Library/Ruby/Gems/2.0.0/gems/jazzy-0.3.2/lib/jazzy/doc_builder.rb:54:in chdir' from /Library/Ruby/Gems/2.0.0/gems/jazzy-0.3.2/lib/jazzy/doc_builder.rb:54:inbuild'
from /Library/Ruby/Gems/2.0.0/gems/jazzy-0.3.2/bin/jazzy:15:in <top (required)>' from /usr/bin/jazzy:23:inload'
from /usr/bin/jazzy:23:in `

'

Is there a more detailed log that will explain why it's crashing?

FYI:
Xcode Version 7.0 (7A220), stored as xcode.app in /Applications

@AfricanSwift
Copy link
Author

This seems to be part of the same issue as Illegal instruction: 4

@AfricanSwift
Copy link
Author

This is a small rendition is what caused the SourceKitten crash.

extension NSColor {
    public var red: CGFloat {
        /// crash scenario -  This line crashes source kitten.
        let multiplier: CGFloat = 255.0
        return self.redComponent * multiplier
    }
}

@jpsim
Copy link
Collaborator

jpsim commented Nov 3, 2015

This was fixed in jpsim/SourceKitten#79 and will be included in the next release of jazzy.

Thanks for taking the time to share details on what wasn't working for you!

@jpsim jpsim closed this as completed Nov 3, 2015
@istx25 istx25 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