Skip to content

mac: \cref leaves CommandDocs.beyondCompiler now that the compiler renders it - #465

Merged
GoKubar merged 1 commit into
mainfrom
fix/cref-beyond-compiler
Sep 14, 2026
Merged

GoKubar merged 1 commit into
mainfrom
fix/cref-beyond-compiler

Conversation

@GoKubar

@GoKubar GoKubar commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

mac: \cref leaves CommandDocs.beyondCompiler now that the compiler renders it

#460 (cleveref, the rebase of #434) added \cref to the compiler inventory, which
turned the Mac drift guard red on main:

CompletionTests.swift:476: error:
  -[FlashTeXMacTests.CompletionTests testCommandDocsNameOnlyKnownCommands]:
  XCTAssertFalse failed - \cref is rendered by the compiler now;
  remove it from beyondCompiler

That guard is doing exactly its job. beyondCompiler documents standard LaTeX
the editor explains even though the compiler only diagnoses it, and its own
comment states the contract: "a name listed here must leave the list once the
compiler renders it." So this drops "cref" from the set. Docs.table["cref"]
stays — the hover text is still wanted, it is now backed by the inventory
instead of by the beyond-compiler list.

\cref was the only name affected: the full suite reported one failure, and the
other cleveref spellings (\Cref, \crefrange, \cpageref, \labelcref, \crefname)
were never in beyondCompiler.

The ubuntu CI jobs compile none of this, so the breakage was invisible to
#460's checks; it was caught by running the Mac suite against merged main.

Verified on the Mac (apps/mac, fresh /tmp worktree and build directory, this
change merged onto main @ 620aac8):
swift build ok
swift test --skip NearbyInterfaceTests --skip NearbyLANInterfaceTests
before this change: 1210 tests, 137 skipped, 1 failure
after this change: 1210 tests, 137 skipped, 0 failures

Implementation-Agent: Claude Opus 5 (lane linux-integration-2, linux-primary)
Commit-Executor: Claude Opus 5 (direct git, observed Cursor usage limit)

…nders it

#460 (cleveref, the rebase of #434) added \cref to the compiler inventory, which
turned the Mac drift guard red on main:

    CompletionTests.swift:476: error:
      -[FlashTeXMacTests.CompletionTests testCommandDocsNameOnlyKnownCommands]:
      XCTAssertFalse failed - \cref is rendered by the compiler now;
      remove it from beyondCompiler

That guard is doing exactly its job. `beyondCompiler` documents standard LaTeX
the editor explains even though the compiler only diagnoses it, and its own
comment states the contract: "a name listed here must leave the list once the
compiler renders it." So this drops "cref" from the set. `Docs.table["cref"]`
stays — the hover text is still wanted, it is now backed by the inventory
instead of by the beyond-compiler list.

`\cref` was the only name affected: the full suite reported one failure, and the
other cleveref spellings (\Cref, \crefrange, \cpageref, \labelcref, \crefname)
were never in `beyondCompiler`.

The ubuntu CI jobs compile none of this, so the breakage was invisible to
#460's checks; it was caught by running the Mac suite against merged main.

Verified on the Mac (apps/mac, fresh /tmp worktree and build directory, this
change merged onto main @ 620aac8):
    swift build                                                    ok
    swift test --skip NearbyInterfaceTests --skip NearbyLANInterfaceTests
      before this change: 1210 tests, 137 skipped, 1 failure
      after  this change: 1210 tests, 137 skipped, 0 failures

Implementation-Agent: Claude Opus 5 (lane linux-integration-2, linux-primary)
Commit-Executor: Claude Opus 5 (direct git, observed Cursor usage limit)
@GoKubar
GoKubar merged commit 18dcb66 into main Sep 14, 2026
21 checks passed
@GoKubar
GoKubar deleted the fix/cref-beyond-compiler branch September 14, 2026 20:08
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.

1 participant