Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Did you mean ..." when typing wrong package name #972

Closed
mpscholten opened this issue Jul 15, 2016 · 2 comments · Fixed by #5594
Closed

"Did you mean ..." when typing wrong package name #972

mpscholten opened this issue Jul 15, 2016 · 2 comments · Fixed by #5594
Assignees
Labels
good first issue Quick win for first-time contributors UX The way in which users interact with Nix. Higher level than UI.

Comments

@mpscholten
Copy link
Contributor

Currently when typing the wrong package name, e.g. nix-env -i cabal instead of nix-env -i cabal-install you will get error: selector ‘cabal’ matches no derivations. That's not really helpful.

Maybe nix-env could check for possible package with a similar name, and then output something like error: selector ‘cabal’ matches no derivations. Did you mean ‘cabal-install‘?

@copumpkin
Copy link
Member

Let's do this on attribute paths too. Attribute names are so last year :)
On Fri, Jul 15, 2016 at 09:15 Marc Scholten notifications@github.com
wrote:

Currently when typing the wrong package name, e.g. nix-env -i cabal
instead of nix-env -i cabal-install you will get error: selector ‘cabal’
matches no derivations. That's not really helpful.

Maybe nix-env could check for possible package with a similar name, and
then output something like error: selector ‘cabal’ matches no
derivations. Did you mean ‘cabal-install‘?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#972, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAAKP0WbG9zie4zFqWAlrV0RgglJtgP1ks5qV4gMgaJpZM4JNYwt
.

@domenkozar domenkozar added improvement UX The way in which users interact with Nix. Higher level than UI. labels Jul 21, 2016
@shlevy shlevy added the backlog label Apr 1, 2018
@stale
Copy link

stale bot commented Feb 15, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the stale label Feb 15, 2021
@garbas garbas added the good first issue Quick win for first-time contributors label Nov 11, 2021
@stale stale bot removed the stale label Nov 11, 2021
mopleen added a commit to tweag/nix that referenced this issue Nov 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Quick win for first-time contributors UX The way in which users interact with Nix. Higher level than UI.
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

5 participants