BurntSushi/ripgrep · error

sorting by creation time isn't supported: {err}

Error message

sorting by creation time isn't supported: {err}

What it means

Error "sorting by creation time isn't supported: {err}" thrown in BurntSushi/ripgrep.

Source

Thrown at crates/core/flags/lowargs.rs:715

                anyhow::bail!(
                    "sorting by last modified isn't supported: {err}"
                );
            }
            SortModeKind::LastAccessed => {
                let md = std::env::current_exe()
                    .and_then(|p| p.metadata())
                    .and_then(|md| md.accessed());
                let Err(err) = md else { return Ok(()) };
                anyhow::bail!(
                    "sorting by last accessed isn't supported: {err}"
                );
            }
            SortModeKind::Created => {
                let md = std::env::current_exe()
                    .and_then(|p| p.metadata())
                    .and_then(|md| md.created());
                let Err(err) = md else { return Ok(()) };
                anyhow::bail!(
                    "sorting by creation time isn't supported: {err}"
                );
            }
        }
    }
}

/// A single instance of either a change or a selection of one ripgrep's
/// file types.
#[derive(Debug, Eq, PartialEq)]
pub(crate) enum TypeChange {
    /// Clear the given type from ripgrep.
    Clear { name: String },
    /// Add the given type definition (name and glob) to ripgrep.
    Add { def: String },
    /// Select the given type for filtering.
    Select { name: String },
    /// Select the given type for filtering but negate it.

View on GitHub (pinned to 3fce3b5bb0)

Solutions

  1. Choose a different sort criterion; creation time is not available on all filesystems/platforms

When it happens

Trigger: Thrown at crates/core/flags/lowargs.rs:715 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of BurntSushi/ripgrep@3fce3b5bb0 (2026-08-06). Data as JSON: /data/errors/468ad8ea18c450a1.json. Report an issue: GitHub.