docs: adopt CTParser 0.9.5-beta — #343/#344 fixed upstream - #919
Merged
Conversation
CTParser 0.9.5-beta (PRs #345 / #347) fixes the two rough edges E1 filed while making abstract-syntax.md executable: - #343: a constraint *bound* referencing the variable / state / control / time is now rejected with a CTBase.ParsingError naming the cause and the fix, instead of a leaked internal gensym `UndefVarError`. The `!!! warning` on abstract-syntax.md no longer says "the message is currently not explicit", and now covers all four kinds of dependency. - #344: `@def name … end true` trace mode prints the parsed model once, not twice — the `!!! hint` block renders a single copy now (no prose change). [compat] CTParser = "0.9" already admits 0.9.5-beta, so no Project.toml change. docs/src/assets/Manifest.toml (the tracked reproducibility snapshot) records CTParser 0.9.5-beta and CTDirect 1.1.6-beta (a docs-only release the resolver pulled in, CTDirect#631 — no source change). Verified with a full docs build: exit 0, 0 unresolved @ref, 0 failed @example; #343 renders the ParsingError, #344 renders one trace block. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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.
Follow-up to E1 — two CTParser rough edges, now fixed
E1 (#913, making
abstract-syntax.mdexecutable) filed two CTParser issues and softened the doc prose meanwhile. CTParser 0.9.5-beta — PRs #345 / #347, phases K/L of #326 — fixes both, with no breaking changes (#343 only affects inputs that already errored; #344 is trace-only output).CTParser#343 — constraint bound depending on the variable
Was rejected with a leaked internal gensym:
Now a
CTBase.ParsingErrornaming the cause and the fix, and the check is broader — a bound depending on the variable, the state, the control, or the time is caught, backend-agnostic:The
!!! warningonabstract-syntax.mdno longer says "the message is currently not explicit" and now names all four kinds of dependency.CTParser#344 — trace mode double-print
@def name … end trueprinted the parsed model twice (the:exare-parse insidedef_funinherited thelogflag). Now once. The!!! hintblock renders a single copy — no prose change.Dependency
[compat] CTParser = "0.9"already admits0.9.5-beta, so noProject.tomlchange.docs/src/assets/Manifest.toml(the tracked reproducibility snapshot, regenerated bymake.jl) records:CTParser0.9.4-beta→0.9.5-betaCTDirect1.1.5-beta→1.1.6-beta— pulled in by the resolver; a docs-only release (CTDirect#631, two inherited-docstring@reffixes, no source or API change).Verification
Full
julia --project=. docs/make.jl: exit 0, 0 unresolved@ref, 0 failed@example.#343renders theParsingError;#344renders one trace block. The 4@extrefwarnings are the unchanged Phase-D upstream backlog underwarnonly.🤖 Generated with Claude Code