Skip to content

fix: resolve Highlightr Bundle.module in packaged .app (editor crash) - #2

Merged
johnfkoo951 merged 1 commit into
johnfkoo951:mainfrom
VoidLight00:fix/highlightr-bundle-module-app-root
Jun 27, 2026
Merged

fix: resolve Highlightr Bundle.module in packaged .app (editor crash)#2
johnfkoo951 merged 1 commit into
johnfkoo951:mainfrom
VoidLight00:fix/highlightr-bundle-module-app-root

Conversation

@VoidLight00

Copy link
Copy Markdown
Contributor

PR #1 shipped the SPM resource bundle in Contents/Resources, but the swift-build Bundle.module accessor looks at the .app root (unsignable) and a baked .build path (absent on user machines), never Contents/Resources — so source/split editor render still traps with SIGTRAP on 1.4.7.

  • package_app.sh: repoint the baked fallback path to the shipped Contents/Resources bundle before codesign (scripts/fix-highlightr-bundle.py).
  • FIX_FOR_CLAUDE_CODE.md: root cause, reproduce, fix options, regression test.

PR johnfkoo951#1 shipped the SPM resource bundle in Contents/Resources, but the swift-build
Bundle.module accessor looks at the .app root (unsignable) and a baked .build path
(absent on user machines), never Contents/Resources — so source/split editor render
still traps with SIGTRAP on 1.4.7.

- package_app.sh: repoint the baked fallback path to the shipped Contents/Resources
  bundle before codesign (scripts/fix-highlightr-bundle.py).
- FIX_FOR_CLAUDE_CODE.md: root cause, reproduce, fix options, regression test.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@johnfkoo951
johnfkoo951 merged commit 53542e7 into johnfkoo951:main Jun 27, 2026
johnfkoo951 added a commit that referenced this pull request Jun 27, 2026
)

1.4.7 as published still crashed for users: the copied bundle landed in
Contents/Resources, but Highlightr's generated Bundle.module accessor only
checks the .app root and a baked .build path — never Contents/Resources.
PR #2 (fix-highlightr-bundle.py) repoints the baked path to the shipped
bundle before codesign. This bump ships that fix to users.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants