[Nix#9865] Provide suggestions in error messages for getAttr #64
Labels
No labels
Affects/CppNix
Affects/Nightly
Affects/Only nightly
Affects/Stable
Area/build-packaging
Area/cli
Area/evaluator
Area/fetching
Area/flakes
Area/language
Area/lix ci
Area/nix-eval-jobs
Area/profiles
Area/protocol
Area/releng
Area/remote-builds
Area/repl
Area/repl/debugger
Area/store
awaiting
author
awaiting
contributors
bug
Context
contributors
Context
drive-by
Context
maintainers
Context
RFD
crash 💥
Cross Compilation
devx
docs
Downstream Dependents
E/easy
E/hard
E/help wanted
E/reproducible
E/requires rearchitecture
Feature/S3
imported
Language/Bash
Language/C++
Language/NixLang
Language/Python
Language/Rust
Needs Langver
OS/Linux
OS/macOS
performance
regression
release-blocker
stability
Status
blocked
Status
invalid
Status
postponed
Status
wontfix
testing
testing/flakey
Topic/Large Scale Installations
ux
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lix-project/lix#64
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Upstream-Issue: NixOS/nix#9865
Is your feature request related to a problem? Please describe.
Errors involving installables or names explicitly lexically appearing in Nix code, including using the CLI for non-flakes purposes, provide name suggestions for attributes:
However, this is not the case in dynamically getting attributes, which can be annoying when the offending string came from the user somehow.
Describe the solution you'd like
I would like to have getAttr try to provide suggestions for the intended attributes.
Describe alternatives you've considered
Well, we can simply make it appear lexically in Nix code, which would make everyone supremely happy I anticipate :)
Additional context
Tested in 1c260fa6d1f47d83954792771d0614db163cc3bc.
Priorities
Add 👍 to issues you find important.
This is important to being able to make a flakey-profile based nix-env replacement! :)
Likely not dissimilar to what flox does, but we probably don't want the entirety of flox for this.
This issue was mentioned on Gerrit on the following CLs: