SourceKitten
SourceKitten copied to clipboard
Illegal instructions 4 when parsing enum
I’ve narrowed the illegal instruction 4 error to the usage of enums, whether or not they are public, inside or outside the scope of my main classes, and whether or not they have ///comments
Removing the enum allows me to parse the file. The issue is consistent with several different files.
Any advice on a workaround? I am on 0.31.0
Was testing with sourcekitten doc —single-file command in terminal.
Latest SourceKitten is 0.34.1 -- 0.31.0 is three years old.
The problem sounds familiar and I expect it is fixed in latest. If you do still see the problem on latest then please post a minimal recreate and we can look into it.