-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Crash on emoji as typealias with 0.14.0 #1006
Comments
That's a fun one 😄 . Thanks for reporting! Although I can't reproduce this...
What does your configuration look like? Are you enabling any opt-in rules? Are you sure it crashes with just the sample you've provided, or does that string crash with a rule for text later in the file? |
I was able to reproduce the crash by adding this example on
|
It seems that |
Replacing func lineAndCharacter(forByteOffset offset: Int) -> (line: Int, character: Int)? {
let characterOffset = location(fromByteOffset: offset)
return lineAndCharacter(forCharacterOffset: characterOffset)
} All tests in SourceKitten pass, but I had to change |
Sounds like there's a bug somewhere in SourceKitten, whether it's in |
It's in |
Or were you referring to the +1 offset after changing the implementation? 🤔 |
All of it. There's a bug now with |
I have no clue why only these tests are failing. I thought it could be because of |
I don't know if it's still relevant. Here's my configuration. disabled_rules: # rule identifiers to exclude from running
- valid_docs
- variable_name
opt_in_rules: # some rules are only opt-in
- empty_count
excluded: # paths to ignore during linting. Takes precedence over `included`.
- Pods
line_length: 150
type_body_length: 500 |
Another example of this crash: #1068 (comment) |
Some possibly related debugging occurred in #1292 beginning with this comment. |
@SDGGiesbrecht I don't think it's the same thing. For #1006, the fix is said to be in this pull request: jpsim/SourceKitten#358 |
Fixed in #1535. |
Swiftlint 0.14.0 crashes when run as build phase in Xcode 8.2 (8C38) while trying to parse following statement:
public typealias 🔳 = QRCode
/Users/XXXXX/Library/Developer/Xcode/DerivedData/XXXXXX-aqobyostblawgtbajeamvisokbcm/Build/Intermediates/CodeCoverage/Intermediates/XXXXXX.build/Debug-appletvsimulator/XXXXXX.build/Script-5BEA03541CCE131F008B1777.sh: line 6: 16251 Illegal instruction: 4 swiftlint
Command /bin/sh failed with exit code 132
The text was updated successfully, but these errors were encountered: