Skip to content

fix: catch Verso elab failures and log instead of rethrowing - #1090

Merged
david-christiansen merged 1 commit into
mainfrom
elab-error-log
Nov 6, 2026
Merged

david-christiansen merged 1 commit into
mainfrom
elab-error-log

Conversation

@david-christiansen

@david-christiansen david-christiansen commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

The basic block and inline elaborators now catch exceptions thrown by specific elaborators and log them, emitting an empty block or inline as appropriate. This allows elaboration to proceed. Headers, which are blocks in the surface syntax, now recover from nesting errors by picking the deepest valid nesting.

More errors are presented to the user at once, and the structure of the document better matches the structure of elaboration, which improves interactivity.

No-Changelog: elab improvement with no API change

The basic block and inline elaborators now catch exceptions thrown by
specific elaborators and log them, emitting an empty block or inline
as appropriate. This allows elaboration to proceed. Headers, which are
blocks in the surface syntax, now recover from nesting errors by
picking the deepest valid nesting.

More errors are presented to the user at once, and the structure of
the document better matches the structure of elaboration, which
improves interactivity.
@david-christiansen
david-christiansen added this pull request to the merge queue Nov 6, 2026
Merged via the queue into main with commit 1869aaf Nov 6, 2026
16 of 17 checks passed
@david-christiansen
david-christiansen deleted the elab-error-log branch November 6, 2026 08:42
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