-
Notifications
You must be signed in to change notification settings - Fork 414
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.rb:657:in block in expand_extensions': undefined method
include?' for nil:NilClass (NoMethodError)
#1325
Comments
Out of interest, what version of Xcode/Swift? I haven't done any testing with Xcode 14.1 yet. The crash line says, I think, that a decl in the json, probably for a Swift Would be great if you can share the json, but understand if you can't/don't want to. Would be more defensive against weird json from the compiler to check against this property being missing. |
Hi, Xcode version 13.4.1 Anyway, by elimination I was able to reduce it's size so I can just redact everything that is sensitive.
|
Thanks a lot for tracking that down. I see it's a special case to do with Objective-C categories: sourcekitten has to figure out their So, if you get your ObjC I'll add a fix on the jazzy side to cope with this bad json, but it's not localised to the method that crashed - the name is so important for organising things I think we'll have to just filter them out entirely and log a warning. |
jazzy version: 0.14.3
Tried with multiple version of Ruby (2.6.10, 2.7.6, 3.1.2)
The text was updated successfully, but these errors were encountered: