Command errors
When the proptastic command can't do what it was asked, it says why in a sentence, in your words, on stderr, and ends with the command to run next, with your values in it. Each error has a code, which is never in the text, and an exit status. The library's own refusals, a property that can't run as written, are on Errors.
How an error reads
proptastic: , the sentence, then the command, two spaces in. Under --format=agent or --format=jsonl the error also ends stdout as a run-failed event of proptastic.events/v1: its code, its first line as message, each command it ends in as help with whether it runs as it is, its exitCode, the whole error as rendered, and the edition once the command has chosen one.
Codes
A code marked as mutastic's means what mutastic's code of the same name means, so a tool that reads one reads the other.
Under a code, a command that stops with it, and the first line of what it says: the contract's cases, which the command's tests run, each checked to say exactly that. DIR and the like stand for where a case ran, and the command to run next, which the line ends in, is left out.
unknown-command
A command proptastic doesn't have. Exits 2. As mutastic's.
A command a slip away from a real one:
proptastic rnu DIRproptastic has no command rnu. There's one called run.proptastic frobnicateproptastic has no command frobnicate. To see its commands:An option before its command:
proptastic --seed=0x5eed run DIRproptastic takes its command first, then the command's options.unknown-option
An option the command doesn't have, and no command takes. Exits 2. As mutastic's.
proptastic run --sede=0x5eed DIRrun has no option --sede. There's one called --seed.option-value
A value the option can't take, or none where it needs one. Exits 2. As mutastic's.
A seed without its 0x:
proptastic run --seed=5eed DIR--seed takes 0x and up to 16 hex digits, as a failure prints the seed, not 5eed.proptastic run --profile=nightley DIR--profile has no value nightley. There's one called nightly.proptastic run --format--format needs a value, one of full, concise, agent or jsonl.proptastic run --replay=yes DIR--replay takes no valueoption-not-taken
An option another command takes; the error names that command (run points to fuzz). Exits 2. As mutastic's.--for
fuzz's option given to run, which names fuzz:
proptastic run --for=30m DIRrun doesn't take --for: fuzz does.needs-id
--accept or --remove without an id, or --propose without --reason. Exits 2. As mutastic's.
proptastic example --accept DIR--accept needs a counterexample's id, a c and eight hex digits, as proptastic example lists them:proptastic example c4f1a2b9e --propose DIR--propose needs --reason, why this input belongs in the spec, for the person who accepts it:extra-words
More words than the command takes. Exits 2. As mutastic's.
Only run passes words to the build:
proptastic fuzz DIR -- --offlinefuzz doesn't take build arguments after --, only run does: proptastic fuzz [DIR] [OPTIONS]proptastic run DIR morerun doesn't take more: proptastic run [DIR] [OPTIONS] [-- BUILD-ARGUMENTS]environment
A variable set to a value proptastic can't use. Exits 2. As mutastic's.
PROPTASTIC_PROGRESS=dots proptastic fuzz DIR --format=jsonlPROPTASTIC_PROGRESS is dots, which proptastic doesn't take: it takes auto, bar, counter or none. To run without it:unknown-id
An id that names no counterexample or proposal. Exits 2. As mutastic's.
no-directory
DIR isn't there. Exits 2. As mutastic's.
proptastic run DIR/nowherethere's no directory DIR/nowhere.no-project
No build in DIR, or above it, that proptastic runs. Exits 2. As mutastic's.
A directory with no build in it or above it:
proptastic run EMPTYthere's no project in EMPTY for proptastic to run.disk
A file proptastic couldn't read or write. Exits 2. As mutastic's.
other
Something else in the project proptastic couldn't use. Exits 2. As mutastic's.
internal
Proptastic went wrong: a bug to report. Exits 4. As mutastic's.
edition-not-released
A build of an edition whose CLI support isn't released yet. Exits 2.
proptastic run RUSTRUST is a Rust project, by its Cargo.toml, and proptastic's Rust edition isn't released yet. For now proptastic runs the Java edition's properties, with Gradle or Maven.An edition named whose CLI support isn't released:
proptastic run DIR --edition=rust--edition=rust names proptastic's Rust edition, which isn't released yet. For now proptastic runs the Java edition's properties, with Gradle or Maven.which-edition
DIR's build files are more than one edition's, and --edition doesn't say which. Exits 2.
proptastic run BOTHBOTH has both pom.xml and Cargo.toml, so either edition could read it: say which with --edition=java or --edition=rustunknown-property
A property the manifest doesn't have; the error offers one close name. Exits 2.
A property's name a slip away from one the manifest has:
proptastic run REGISTERED --only=sortKeepSizethere's no property sortKeepSize. There's one called sortKeepsSize.no-property-at
No property's forAll on that line; the error names the lines that have one. Exits 2.
A line next to the forAll's, and the line again with it:
proptastic run REGISTERED --at=src/test/java/com/example/SortTest.java:30no property's forAll is on line 30 of src/test/java/com/example/SortTest.java. There's one on line 31:unknown-outcome
An outcome the property's model doesn't have. Exits 2.
fixed-seed
The build fixes the seed, so fuzz would search one stream; the error names where. Exits 2.
host-failed
The host's test run failed and no property failed: the build, or a test that isn't a property. Exits 3.
The build failed, and wrote no property's event:
proptastic run FAILINGthe build failed before any property ran.failed-before-search
A pinned example or saved counterexample failed before fuzz began searching. Exits 3.
input-hung
An input ran past its limit in fuzz's worker, which wrote it to fuzz/hang-<hash>; the error names the file. Exits 3.
not-proposed
--accept names an id that isn't proposed. Exits 1.
not-there
--remove names a proposal or pinned line that isn't there, or a pinned line that has changed. Exits 1.
pin-refused
The property's code doesn't match what was saved, or its chain isn't one proptastic edits; the error prints the line to paste. Exits 1.
pin-not-compiling
The pinned line didn't compile, so it was taken out again. Exits 1.
ci-refused
With CI set, example doesn't pin or accept: CI doesn't edit source. Exits 1.