Expand description
Template-expansion errors behind single constructors with stable keys.
This module owns every expansion template and key (proc.expand.*).
It builds on the generic oxdock_diagnostics::Diagnostic transport
but owns its wording: changing expansion text happens here, never at
the call sites. Call sites pass structured data only, never
format! strings. Suggestion hints render inline in the message
(never via with_hint, avoiding double-print in Display); the
did you mean shape lives here, call sites pass only the scope.
Enums§
- Override
Suggest - Suggestion scope for a missing step-override miss: the name also lives in the script variables or the environment.
- Script
Suggest - Suggestion scope for an undefined
$varmiss: the name also lives in the step environment or the override table.
Functions§
- call_
arg_ empty_ var - Empty
$variable reference in a call argument. Parameterless: the wording is fixed. - call_
arg_ invalid - Unresolvable placeholder call argument. Takes the raw source; quoting lives here.
- call_
arg_ nested_ calls - Nested calls inside placeholder arguments. Parameterless: the wording is fixed.
- call_
arg_ too_ deep - Placeholder call argument nesting past the literal depth cap. Takes the cap; rendering lives here.
- call_
without_ registry - Placeholder call with no registered resolver. Takes the module and function names; quoting lives here.
- invalid_
placeholder_ format - Placeholder in no resolvable shape. Takes the raw key; quoting lives here.
- job_
assign_ failed - Windows job-object assignment failed. Takes the underlying
failure; the flattened chain lives here so the call site stays
format!-free. Third-party-feeling OS errors ride the lift below and never attach a source. - job_
assign_ io_ failed - Windows job-object assignment failed at the OS call. Takes the
operation name (
CreateJobObjectW,AssignProcessToJobObject) and the underlying I/O failure; the io text rides verbatim in both message and reason field. Native?propagation pluswith_contextskeeps the chain flattened byte-identical to the retired shape. Sourceless: the chain text is the message. - key_
path_ bad_ index - Non-numeric list index during key-path traversal. Takes the root variable and the segment; quoting lives here.
- key_
path_ index_ out_ of_ bounds - Out-of-bounds list index during key-path traversal. Takes the root variable, the index, and the list length; rendering lives here.
- key_
path_ missing_ property - Missing property on a map during key-path traversal. Takes the root variable and the segment; quoting lives here.
- key_
path_ on_ primitive - Property access on a primitive during key-path traversal. Takes the root variable and the segment; quoting lives here.
- map_
duplicate_ key - Duplicate key in a map literal. Takes the key; quoting lives here.
- map_
entry_ invalid - Map literal entry without exactly one top-level
:. Takes the raw entry; quoting lives here. - missing_
step_ override - Missing step-override argument. Takes the name plus an optional suggestion scope; hinted and bare share one key and one mode.
- render_
permit PERMITvalue interpolated as text. Parameterless: the wording lives here.- render_
pipe PIPEvalue interpolated as text. Parameterless: the wording and theLETcapture guidance live here.- render_
semaphore SEMAPHOREvalue interpolated as text. Parameterless: the wording lives here.- run_
argv_ unimplemented - Default
run_argvwith no override. Takes the argv;Debugrendering lives here. - run_
bg_ capture_ unsupported - Stdout capture for a background command. Parameterless: the wording is fixed.
- run_
bg_ capture_ unsupported_ miri - Stdout capture for a background command under Miri isolation. Parameterless: the wording is fixed.
- run_
bg_ stderr_ stream_ unsupported_ miri - Stderr streaming for a background command under Miri isolation. Parameterless: the wording is fixed.
- run_
bg_ stdout_ stream_ unsupported_ miri - Stdout streaming for a background command under Miri isolation. Parameterless: the wording is fixed.
- run_
capture_ lock_ poisoned - Capture buffer losing the lock race. Parameterless: the wording is fixed.
- run_
command_ failed - Spawned command exiting non-zero. Takes the command (any
Debug:std::process::Command, argv slice, or script text) and the wait status; both renderings live here. - run_
current_ exe_ failed - Current-executable lookup failed. Takes the I/O failure;
rendering lives here. The typed I/O error rides as the chained
source so
Error::sourceand{err:#}chains keep it. - run_
exec_ requires_ argv - Empty
RUNexec argv. Parameterless: the wording is fixed. - run_
exec_ requires_ program RUNexec form with an empty program. Parameterless: the wording is fixed.- run_
failed - Spawning or waiting on a shell command failed. Takes the command
(any
Debug:std::process::Command) and the I/O failure; rendering lives here. Shared by the status-wait and piped-output paths: one key, one mode. The typed I/O error rides as the chained source. - run_
interactive_ unsupported - Interactive shell on a platform without one. Parameterless: the wording is fixed.
- run_
interpreter_ unsupported_ miri INTERPRETERlookup under Miri isolation. Parameterless: the wording is fixed.- run_
spawn_ unsupported_ miri - Native spawn under the Miri synthetic backend. Parameterless: the wording is fixed.
- run_
stdin_ lock_ failed - Mock stdin snapshot losing the lock race. Parameterless: the wording is fixed.
- run_
stdin_ read_ failed - Mock stdin snapshot read failed. Takes the I/O failure;
rendering lives here. The typed I/O error rides as the chained
source so
Error::sourceand{err:#}chains keep it. Distinct key fromrun_stdin_lock_failed: that names a poisoned stream lock, while this names a failed read on the live stream. - run_
unguarded_ writes_ unsupported_ miri - Unguarded write under Miri isolation. Parameterless: the wording is fixed.
- run_
wait_ failed - Waiting on a managed shell child failed. Takes the command (any
Debug:std::process::Command) plus the wrapped wait failure; the chain renders inline. Distinct key fromrun_failed: that wraps a directstd::io::Errorfromstdspawn/wait calls, while this wraps the managed-handle wait chain (already keyedwait_failedinside); the retired wordings match byte-identically through{reason:#}. - shell_
exited_ with_ status - Shell exiting non-zero. Takes the wait status; rendering lives here.
- spawn_
failed - Spawning a shell command failed. Takes the command (any
Debug:std::process::Command) and the I/O failure; rendering lives here. The typed I/O error rides as the chained source. - spawn_
interactive_ window_ failed - Interactive shell window launch failed. Takes the underlying
failure; the flattened chain lives here so the call site stays
format!-free. The chained spawn diagnostic rides inline; no source is attached. - spawn_
pipe_ half_ missing - Spawned piped child missing a stdio half. Takes the command (any
Debug:std::process::Command) and the stream name (stdin,stdout, orstderr); rendering lives here. Shared by the piped and piped-with-stderr paths: one key, one mode. - spawn_
requires_ path - Spawn without
PATHin the script environment. Takes the program; thePATHspelling and theINHERIT_ENVfix derive from the declared env contract, never literals. - spawn_
requires_ system_ root - Windows spawn without
SystemRootin the script environment. The name spelling and theINHERIT_ENVfix derive from the declared env contract, never literals. - undefined_
env_ var - Undefined
env:KEY. Takes the key plus whether a same-named script variable exists; the hint shape lives here. - undefined_
script_ var - Undefined
$var. Takes the name plus an optional suggestion scope; hinted and bare share one key and one mode. - wait_
failed - Waiting on a spawned child failed. Takes the I/O failure;
rendering lives here. Shared by the
try_waitpoll and the blockingwait: one key, one mode. The typed I/O error rides as the chained source.