Repository navigation
fix: give first-run errors working advice - #88
Merged
Merged
Conversation
SQ0008 help names the refused divergence and lists only the fixes that apply to the caller's flags, policy and session. --builtin-policy takes TIMEZONE and the result-neutral session parameters. Policy errors suggest the nearest divergence id or name a partial entry's missing fields. Schema shape errors name the key, relation or column at fault, and the --help footer documents every command's exit status.
The playground shares the command line's session handling, so the built-in default now converts under TIMEZONE=UTC and still refuses WEEK_START with SQ0007.
…tics # Conflicts: # crates/sqlquack-policy/src/policy/constants.rs # crates/sqlquack/src/cli/_helpers/evidence.rs
Contributor
Author
|
Gate for landing at exactly
|
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.
Why
These are the first errors a new user hits after launch. Some of them gave advice that doesn't work, or leaked parser internals:
--builtin-policyrefused the TIMEZONE=UTC and result-neutral--sessionparameters that the policy docs say it takes.Changes
--strictor--loud-divergences-only, a policy edit, or a UTC session.Refusal::divergence()exposes the id. The registry help and the diagnostics reference are updated.--builtin-policyaccepts TIMEZONE and the result-neutral session parameters. It refuses any other parameter by name and points to--policy.--helpexit-status footer covers check, convert and function, and says census and index exit 0 on refused files and 2 when they can't run.Verification
cargo testpasses for sqlquack-core, -policy, -rules, -semantics and sqlquack.make check-ciandfensu check(0 faults) pass. The hygiene scan is clean.