BurntSushi/ripgrep · error

sorting by last accessed isn't supported: {err}

Error message

sorting by last accessed isn't supported: {err}

What it means

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

Source

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

    /// error (hopefully explaining why) is returned.
    pub(crate) fn supported(&self) -> anyhow::Result<()> {
        match self.kind {
            SortModeKind::Path => Ok(()),
            SortModeKind::LastModified => {
                let md = std::env::current_exe()
                    .and_then(|p| p.metadata())
                    .and_then(|md| md.modified());
                let Err(err) = md else { return Ok(()) };
                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.

View on GitHub (pinned to 3fce3b5bb0)

Solutions

  1. Choose a different sort criterion supported on this platform
  2. Access time may be disabled (e.g. relatime/noatime mounts); sort by another field

When it happens

Trigger: Thrown at crates/core/flags/lowargs.rs:706 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/8ca8135ef0362157.json. Report an issue: GitHub.