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

Empty comment causes crash with invalid range #236

Closed
Mozahler opened this issue May 23, 2015 · 2 comments
Closed

Empty comment causes crash with invalid range #236

Mozahler opened this issue May 23, 2015 · 2 comments

Comments

@Mozahler
Copy link

fatal error: Can't form Range with end < start
from /Library/Ruby/Gems/2.0.0/gems/jazzy-0.2.1/lib/jazzy/sourcekitten.rb:84:in run_sourcekitten' from /Library/Ruby/Gems/2.0.0/gems/jazzy-0.2.1/lib/jazzy/doc_builder.rb:53:inblock in build'
from /Library/Ruby/Gems/2.0.0/gems/jazzy-0.2.1/lib/jazzy/doc_builder.rb:51:in chdir' from /Library/Ruby/Gems/2.0.0/gems/jazzy-0.2.1/lib/jazzy/doc_builder.rb:51:inbuild'
from /Library/Ruby/Gems/2.0.0/gems/jazzy-0.2.1/bin/jazzy:15:in <top (required)>' from /usr/bin/jazzy:23:inload'
from /usr/bin/jazzy:23:in `

'

Turns out the cause was this line of code:
///

Apparently I deleted the comment, but left the slashes in.

@jpsim
Copy link
Collaborator

jpsim commented May 25, 2015

Thanks for filing this, @Mozahler. I just pushed a fix to SourceKitten which should land in the next release of jazzy: jpsim/SourceKitten#50

@jpsim jpsim closed this as completed May 25, 2015
@Mozahler
Copy link
Author

Sure. Thank you for all your hard work!

On May 25, 2015, at 4:14 PM, JP Simard notifications@github.com wrote:

Thanks for filing this, @Mozahler https://github.com/Mozahler. I just pushed a fix to SourceKitten which should land in the next release of jazzy: jpsim/SourceKitten#50 jpsim/SourceKitten#50

Reply to this email directly or view it on GitHub #236 (comment).

@pigeondev2 pigeondev2 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