Skip to content

ux(cli): ripr cache clear failure text prints the raw \?\ verbatim path for the layer it could not remove #7388

Closed

Description

@EffortlessSteven

Symptom

On Windows, when ripr cache clear --force cannot remove a cache layer (a file held open by another process), the error message prints the verbatim extended-length spelling of the layer path:

ripr: failed to remove ripr cache layer \?\C:\tmp\ripr-audit-scratch\target\ripr\cache\repo-file-facts: The process cannot access the file because it is being used by another process. (os error 32); the cache root and unrelated siblings were preserved

The sibling Cache dir: header in the same command's output renders the same directory through human_path as the plain C:/... forward-slash spelling (#7326 / PR #7333); the failure line uses layer.path.display() raw, so the verbatim prefix and backslash spelling leak only on the error path.

Evidence

Why it frustrates

The user meets the most technical spelling of the path exactly when they are already in error recovery. It is inconsistent with every other path rendering in the same output, and the \?\ form is the one spelling that pastes poorly into editors, other shells, and issue reports — which is precisely what a user doing recovery is about to do.

Suggested direction

Route the failure message through output::path::human_path like the header (and like the #7343 fix direction for the Real dir: line). Keep the raw spelling in any JSON/log surface where identity matters.

Classification: verified_current, confidence high (behavioral repro on this Windows host; source at origin/main confirmed unchanged).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions