Skip to content

command_not_found_handle nixf-tidy suggests wrong package #263

@l0b0

Description

@l0b0

(Cross-post of this issue based on this suggestion.)

Describe the bug

command_not_found_handle nixf-tidy suggests installing nixd, but that package does not provide a nixf-tidy command,

Steps To Reproduce

Steps to reproduce the behavior:

  1. Enable command-not-found and nix-index
  2. Run command_not_found_handle nixf-tidy
  3. Run the suggested command nix-shell -p nixd.out --run 'nixf-tidy'

Actual behavior

nix-shell -p nixd.out --run 'nixf-tidy'
/tmp/nix-shell-1050179-0/rc: line 3: nixf-tidy: command not found

Expected behavior

nixf-tidy should run.

Additional context

Workaround: nix-shell --packages nixf

Metadata

  • system: "x86_64-linux"
  • host os: Linux 6.12.5, NixOS, 25.05 (Warbler), 25.05.20241217.ee90e6b
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.24.11
  • channels(root): ""
  • nixpkgs: /nix/store/l244w5dq4777ywqinrjmbi2gknd50czl-source

Notify maintainers

I'm not sure whether the error is with nix-index, nixd, or some other package.

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