[Nix#9865] Provide suggestions in error messages for getAttr #64
Labels
No labels
Area/build-packaging
Area/evaluator
Area/flakes
Area/profiles
Area/remote-builds
Area/repl
Area/store
bug
Cross Compilation
devx
docs
Downstream Dependents
E/easy
E/hard
E/help wanted
E/reproducible
E/requires rearchitecture
imported
Needs Langver
OS/Linux
OS/macOS
performance
regression
release-blocker
RFD
stability
Status
blocked
Status
invalid
Status
postponed
Status
wontfix
testing
ux
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lix-project/lix#64
Loading…
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.