{"id":"468ad8ea18c450a1","repo":"BurntSushi/ripgrep","slug":"sorting-by-creation-time-isn-t-supported-err","errorCode":null,"errorMessage":"sorting by creation time isn't supported: {err}","messagePattern":"sorting by creation time isn't supported: (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/core/flags/lowargs.rs","lineNumber":715,"sourceCode":"                anyhow::bail!(\n                    \"sorting by last modified isn't supported: {err}\"\n                );\n            }\n            SortModeKind::LastAccessed => {\n                let md = std::env::current_exe()\n                    .and_then(|p| p.metadata())\n                    .and_then(|md| md.accessed());\n                let Err(err) = md else { return Ok(()) };\n                anyhow::bail!(\n                    \"sorting by last accessed isn't supported: {err}\"\n                );\n            }\n            SortModeKind::Created => {\n                let md = std::env::current_exe()\n                    .and_then(|p| p.metadata())\n                    .and_then(|md| md.created());\n                let Err(err) = md else { return Ok(()) };\n                anyhow::bail!(\n                    \"sorting by creation time isn't supported: {err}\"\n                );\n            }\n        }\n    }\n}\n\n/// A single instance of either a change or a selection of one ripgrep's\n/// file types.\n#[derive(Debug, Eq, PartialEq)]\npub(crate) enum TypeChange {\n    /// Clear the given type from ripgrep.\n    Clear { name: String },\n    /// Add the given type definition (name and glob) to ripgrep.\n    Add { def: String },\n    /// Select the given type for filtering.\n    Select { name: String },\n    /// Select the given type for filtering but negate it.","sourceCodeStart":697,"sourceCodeEnd":733,"githubUrl":"https://github.com/BurntSushi/ripgrep/blob/3fce3b5bb0236da2df6d99672afb8a719642eca7/crates/core/flags/lowargs.rs#L697-L733","documentation":"Error \"sorting by creation time isn't supported: {err}\" thrown in BurntSushi/ripgrep.","triggerScenarios":"Thrown at crates/core/flags/lowargs.rs:715 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Choose a different sort criterion; creation time is not available on all filesystems/platforms"],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"3fce3b5bb0236da2df6d99672afb8a719642eca7","analyzedAt":"2026-08-06T01:39:05.073Z","schemaVersion":2}