Hmbown/CodeWhale · error · anyhow::Error
DSH receipt {} has schema_version {} (this build understands
Error message
DSH receipt {} has schema_version {} (this build understands {}) What it means
Error "DSH receipt {} has schema_version {} (this build understands {})" thrown in Hmbown/CodeWhale.
Source
Thrown at crates/tui/src/integrations/dsh/receipt.rs:106
impl Default for DshReceiptDocument {
fn default() -> Self {
Self {
schema_version: RECEIPT_SCHEMA_VERSION,
current: None,
history: Vec::new(),
}
}
}
impl DshReceiptDocument {
pub(crate) fn load(path: &Path) -> Result<Self> {
match std::fs::read(path) {
Ok(bytes) => {
let doc: Self = serde_json::from_slice(&bytes)
.with_context(|| format!("parse DSH receipt {}", path.display()))?;
if doc.schema_version > RECEIPT_SCHEMA_VERSION {
anyhow::bail!(
"DSH receipt {} has schema_version {} (this build understands {})",
path.display(),
doc.schema_version,
RECEIPT_SCHEMA_VERSION
);
}
Ok(doc)
}
Err(error) if error.kind() == std::io::ErrorKind::NotFound => Ok(Self::default()),
Err(error) => {
Err(error).with_context(|| format!("read DSH receipt {}", path.display()))
}
}
}
pub(crate) fn push(&mut self, entry: DshReceiptEntry) {
self.history.push(entry);
if self.history.len() > MAX_HISTORY {View on GitHub (pinned to 8880682c63)
When it happens
Trigger: Thrown at crates/tui/src/integrations/dsh/receipt.rs:106 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of Hmbown/CodeWhale@8880682c63 (2026-08-16).
Data as JSON: /api/errors/9a3cafc02f90e63c.
Report an issue: GitHub.