You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NSString and Swift's String handle extended grapheme clusters differently. While removing trailing whitespace, SourceKitten tries to create a UnicodeScalar from an NSString character which does not necessarily succeed. Because of that SourceKitten crashes at force-unwrapping the unicode scalar (String+SourceKitten.swift, line 241 in trimmingTrailingCharacters(in characterSet: CharacterSet).
Minimal example:
/**💣*/classFoobar{}
The text was updated successfully, but these errors were encountered:
NSString and Swift's String handle extended grapheme clusters differently. While removing trailing whitespace, SourceKitten tries to create a UnicodeScalar from an NSString character which does not necessarily succeed. Because of that SourceKitten crashes at force-unwrapping the unicode scalar (
String+SourceKitten.swift
, line 241 intrimmingTrailingCharacters(in characterSet: CharacterSet)
.Minimal example:
The text was updated successfully, but these errors were encountered: