Repository navigation
mac: Problems panel reads structured diagnostics — code grouping, notes/help rows, Fix… from help.replacement (#277 part 4) - #345
Merged
Conversation
Decode optional code/suggestion/labels/notes/help on RuntimeV1.Diagnostic (FastJSON + Codable), group/categorise by code with the message-phrase fallback kept, show notes/help on the row, copy rustc-like = note/= help lines, and apply help.replacement through the existing QuickFix path when the range is in bounds and the compile revision still matches. Filtered swift test from apps/mac (StructuredDiagnosticTests, EditorDiagnostics*, DiagnosticsPanelTests, FastJSONTests, ProtocolTests): Executed 76 tests, with 7 tests skipped and 0 failures. Next: full `swift test` from apps/mac, then push this lane branch. Open questions: none in-scope; help.replacement with an explicit other-file path hides Fix… (QuickFix.otherDocument), matching today's explanation edits. Implementation-Agent: cursor-agent cursor-grok-4.6 Commit-Executor: cursor-agent Lane-Owner: daniel-parent (mac-m5pro-dq222) Co-authored-by: Cursor <[email protected]>
This was referenced Sep 14, 2026
Contributor
Author
|
daniel-parent Mac pre-merge verification (for the integration lane, which has no Swift toolchain). Xcode 26.6, macOS 26.6, merged onto
About the 3 full-suite failures: |
… pick up #327's Mac inventory sync (CI sync-supported-latex --check) Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz
This was referenced Sep 14, 2026
compiler: accept
hyperref and \hypersetup, and break URLs the way url.sty does (rebase of #385)
#388
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#277 part (4), claim
GH-277-mac, announced on #2 before work. Implemented by a Cursor worker (Grok 4.6 high) and reviewed by daniel-parent.What
RuntimeV1.Diagnosticand theFastJSONhot path decode the optionalcode,suggestion,labels[],notes[]andhelp{message, replacement?}fromprotocol/proposals/runtime-v1-structured-diagnostics.md(the diagnostics: rustc-style reports in the CLI and the app — source excerpt, carets, labels, suggested fix #277 compiler lane). Absent fields decode exactly as before, and unknown keys are still ignored.help.replacementaccepts bare bytes or apath/sourceobject, because the compiler-side shape is still under review on diagnostics: rustc-style reports in the CLI and the app — source excerpt, carets, labels, suggested fix #277.EditorDiagnosticsusescodewhen present.unsupported_featureis a gap;unknown_command,syntax_error,recovered_input,fidelity_noteandexport_limitationare not. A missing or unknown code falls back to today's message-phrase heuristic, which is kept.\alpah(unknown_command) now counts as an error, not a FlashTeX gap. It's an authoring mistake.= note:and= help:lines, secondary label text appears on hover, and "Copy diagnostics as text" includes the note and help lines.help.replacementthrough the existingQuickFix.prepare/pendingEditpath as one undo step. It's shown only when the range is a valid UTF-8 range in the current buffer, targets the active file, and the compile revision equals the editor revision (the same test aspreviewIsStale). Help without a replacement shows no button.No edits outside
apps/mac.Tests
swift test→Executed 76 tests, with 7 tests skipped and 0 failures.--filter 'StructuredDiagnostic|EditorDiagnostics|DiagnosticsPanelTests|FastJSONTests|ProtocolTests') →Executed 81 tests, with 7 tests skipped and 0 failures.swift test(worker) → 1064 executed, 134 skipped, 1 failure:CompletionTests.testBundledInventoryMatchesTheCompiler. That's the bundledsupported-latex.jsonbeing out of date. It fails the same way on base8f83ab5c, and apps/mac: sync bundled supported-latex.json to main (#250 landed without it) #327 (mac-claude-a) fixes it.Dependency
The compiler doesn't emit
labels,notesorhelpuntil the #277 (1)+(3) lane lands,render-pipelineforwards the fields, andvendor/compileris re-pinned. Until then onlycodeaffects behaviour, and this PR is safe to merge on its own.🤖 Generated with Claude Code
https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz