SourceKitten icon indicating copy to clipboard operation
SourceKitten copied to clipboard

Illegal instructions 4 when parsing enum

Open bdhersh opened this issue 2 years ago • 1 comments

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.

bdhersh avatar Sep 11 '23 15:09 bdhersh

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.

johnfairh avatar Sep 11 '23 19:09 johnfairh