{"record":{"id":"f3c79ca5b5e0650b","repo":"jdx/mise","slug":"unknown-trigger-trigger","errorCode":null,"errorMessage":"unknown trigger {trigger:?}","messagePattern":"unknown trigger (.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/cli/dotfiles/history/ls.rs","lineNumber":61,"sourceCode":"                .into_iter()\n                .map(|(_, pending)| crate::system::history::store::Entry {\n                    id: pending.id,\n                    commit: String::new(),\n                    checkpoint: pending.checkpoint,\n                })\n                .collect();\n        }\n        entries.reverse();\n        if let Some(label) = &self.label {\n            entries.retain(|entry| entry.checkpoint.labels.contains(label));\n        }\n        if let Some(path) = &self.path {\n            let path = display_arg(path);\n            entries.retain(|entry| entry.checkpoint.changes.touches(&path));\n        }\n        if let Some(trigger) = &self.trigger {\n            let Some(trigger) = Trigger::parse(trigger) else {\n                eyre::bail!(\"unknown trigger {trigger:?}\");\n            };\n            entries.retain(|entry| entry.checkpoint.trigger == trigger);\n        }\n        if self.limit > 0 {\n            entries.truncate(self.limit);\n        }\n        if self.json {\n            miseprintln!(\"{}\", serde_json::to_string_pretty(&entries)?);\n            return Ok(());\n        }\n        if entries.is_empty() {\n            info!(\"no history checkpoints recorded\");\n            return Ok(());\n        }\n        let mut table = MiseTable::new(false, &[\"ID\", \"When\", \"Trigger\", \"Description\", \"Files\"]);\n        for entry in &entries {\n            let checkpoint = &entry.checkpoint;\n            let files = if checkpoint.tree.available {","sourceCodeStart":43,"sourceCodeEnd":79,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/cli/dotfiles/history/ls.rs#L43-L79","documentation":"`mise dotfiles history ls --trigger <name>` filters checkpoint entries by their trigger kind. The value is parsed with Trigger::parse; an unrecognized string bails with the offending value quoted for debug visibility.","triggerScenarios":"`mise dotfiles history ls --trigger manual` (or any string not in the Trigger enum) — parse fails and the bail fires with {trigger:?} showing the raw input.","commonSituations":"Guessing trigger names instead of checking valid values; typo like 'automatc'; casing mismatch; older docs referencing a renamed trigger kind.","solutions":["Run `mise dotfiles history ls` without --trigger and inspect which triggers appear in entries","Check `mise dotfiles history ls --help` for the accepted trigger values","Retry with a valid trigger name (correct spelling/casing)"],"exampleFix":"// before\nmise dotfiles history ls --trigger Manual\n// after\nmise dotfiles history ls --trigger manual   # or the exact enum value from --help","handlingStrategy":"validation","validationCode":"mise dotfiles history ls --help | grep -A5 trigger   # list accepted trigger values","typeGuard":null,"tryCatchPattern":"match Err(msg) if msg.starts_with(\"unknown trigger\") => print valid trigger values from help and retry","preventionTips":["Copy trigger names from --help, not from memory","Keep casing exactly as documented","Check the source Trigger enum when unsure"],"tags":["cli","dotfiles","enum"],"backgroundTag":"invalid-enum-value","analyzedSha":"533346cc374382b41ec5ff70536252b2e96e725c","analyzedAt":"2026-09-17T13:35:38.149Z","contentChangedAt":"2026-09-17T13:35:38.149Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}