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

SourceKitten not happy with 🍒 emoji #794

Closed
Mozahler opened this issue Apr 29, 2017 · 4 comments · Fixed by #796
Closed

SourceKitten not happy with 🍒 emoji #794

Mozahler opened this issue Apr 29, 2017 · 4 comments · Fixed by #796
Assignees

Comments

@Mozahler
Copy link

It took me way too long to find out why my project wouldn't compile. I have emoji in other files, and they don't cause this:
Parsing Dummy.swift (24/25)
from /Users/Alex/.rvm/gems/ruby-2.3.3/gems/jazzy-0.7.5/lib/jazzy/sourcekitten.rb:216:in run_sourcekitten' from /Users/Alex/.rvm/gems/ruby-2.3.3/gems/jazzy-0.7.5/lib/jazzy/doc_builder.rb:67:in block in build'
from /Users/Alex/.rvm/gems/ruby-2.3.3/gems/jazzy-0.7.5/lib/jazzy/doc_builder.rb:65:in chdir' from /Users/Alex/.rvm/gems/ruby-2.3.3/gems/jazzy-0.7.5/lib/jazzy/doc_builder.rb:65:in build'
from /Users/Alex/.rvm/gems/ruby-2.3.3/gems/jazzy-0.7.5/bin/jazzy:15:in <top (required)>' from /Users/Alex/.rvm/gems/ruby-2.3.3/bin/jazzy:22:in load'
from /Users/Alex/.rvm/gems/ruby-2.3.3/bin/jazzy:22:in <main>' from /Users/Alex/.rvm/gems/ruby-2.3.3/bin/ruby_executable_hooks:15:in eval'
from /Users/Alex/.rvm/gems/ruby-2.3.3/bin/ruby_executable_hooks:15:in `

'

I extracted the crucial code and attached it. This file causes the above error. (I have moved on by deleting the 🍒 ) Please let me know if I should have reported this in the SourceKitten repository. I put it here because I was running jazzy.
Dummy.swift.zip

@Mozahler
Copy link
Author

It turns out I have another file which causes a different error, but I believe it is related (it has many cherries in it). All 24 files are parsed without errors, and then I get a pile of them:
Parsing AirDropUtilities.swift (24/24)
A compile error prevented PDFsByFolder.coreDataConnection from receiving a unique USR. Documentation may be incomplete. Please check for compile errors by running xcodebuild .
A compile error prevented PDFsByFolder.model from receiving a unique USR. Documentation may be incomplete. Please check for compile errors by running xcodebuild .
A compile error prevented PDFsByFolder.filteredDataOrSearchResults from receiving a unique USR. Documentation may be incomplete. Please check for compile errors by running xcodebuild .
A compile error prevented PDFsByFolder.defaultCalendar from receiving a unique USR. Documentation may be incomplete. Please check for compile errors by running xcodebuild .
A compile error prevented PDFsByFolder.fetchedResultsController from receiving a unique USR. Documentation may be incomplete. Please check for compile errors by running xcodebuild .
A compile error prevented PDFsByFolder.bookkeeping(:) from receiving a unique USR. Documentation may be incomplete. Please check for compile errors by running xcodebuild .
A compile error prevented PDFSearchUtilities.findByName(
:moc:) from receiving a unique USR. Documentation may be incomplete. Please check for compile errors by running xcodebuild .
A compile error prevented PDFSearchUtilities.fetch(:moc:) from receiving a unique USR. Documentation may be incomplete. Please check for compile errors by running xcodebuild .
A compile error prevented PDFSearchUtilities.findByPath(
:moc:) from receiving a unique USR. Documentation may be incomplete. Please check for compile errors by running xcodebuild .
A compile error prevented PDFSearchUtilities.findByFolder(:moc:) from receiving a unique USR. Documentation may be incomplete. Please check for compile errors by running xcodebuild .
A compile error prevented PDFSearchUtilities.findRecent(
:moc:) from receiving a unique USR. Documentation may be incomplete. Please check for compile errors by running xcodebuild .
A compile error prevented PDFSearchUtilities.findAllPDFDocs(_:) from receiving a unique USR. Documentation may be incomplete. Please check for compile errors by running xcodebuild .
94% documentation coverage with 18 undocumented symbols
I've attached the file without cleanup (it is a couple of years old, the only changes have been to get it to compile with language updates along the way 🙄)
PDFsByFolder.swift.zip

@Mozahler Mozahler reopened this Apr 29, 2017
@johnfairh
Copy link
Collaborator

The latest version of sourcekitten has no problem with this file. The version of sourcekitten included with jazzy does crash as you've discovered. Looks like jpsim/SourceKitten#350.

@Mozahler
Copy link
Author

Mozahler commented May 1, 2017

Great news. Thanks.

@Mozahler Mozahler closed this as completed May 1, 2017
@jpsim
Copy link
Collaborator

jpsim commented May 1, 2017

Let's keep this open until jazzy itself has the fix. I'm updating jazzy's SourceKitten binary now.

@jpsim jpsim reopened this May 1, 2017
@jpsim jpsim self-assigned this May 1, 2017
@jpsim jpsim closed this as completed in #796 May 1, 2017
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.

3 participants