Illegal instructions 4 when parsing enum
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 2.4k
- Forks
- 237
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure with the reported sourcekitten doc —single-file command on Swift files containing enums, comparing the result with the enum removed. The report names no fixture or test file, so first establish a minimal reproducer and check whether the behavior differs from version 0.31.0. Done means identifying the parsing failure and documenting a verified fix or workaround.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100