jpsim / jpsim/SourceKitten

Illegal instructions 4 when parsing enum

Open
#791 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.