lix/lix
Jade Lovelace faf00ad022 libexpr: significantly improve error messages for bad attr paths
This commit makes Lix include the summarized content of the value being
indexed when it is bad.

lix/lix2 » nix eval --expr '{x.y = 2;}' 'x.y.z'
error: the value being indexed in the selection path 'x.y.z' at 'x.y' should be a set but is an integer: 2

lix/lix2 » nix eval --expr '{x.y = { a = 3; };}' 'x.y.z'
error: attribute 'z' in selection path 'x.y.z' not found inside path 'x.y', whose contents are: { a = 3; }
       Did you mean a?

lix/lix2 » nix eval --expr '{x.y = { a = 3; };}' 'x.y.1'
error: the expression selected by the selection path 'x.y.1' should be a list but is a set: { a = 3; }

Change-Id: I3202aba0e437e00b4c6d3ee287a2d9a7c6892dbf
2024-12-10 15:43:31 -08:00
..
asan-options fix tooling after include reorganization 2024-11-19 22:55:32 +00:00
code-generation fix tooling after include reorganization 2024-11-19 22:55:32 +00:00
legacy libexpr: fully separate evaluator and running evaluation 2024-12-05 13:30:35 +00:00
libcmd libcmd: munge evalSettings in the right place 2024-12-06 00:59:53 +01:00
libexpr libexpr: significantly improve error messages for bad attr paths 2024-12-10 15:43:31 -08:00
libfetchers fix tooling after include reorganization 2024-11-19 22:55:32 +00:00
libmain cli infra: modernize legacy command interface 2024-11-20 14:17:02 +00:00
libstore libstore: remove an unused function 2024-11-20 14:17:02 +00:00
libutil attr path parser: fix bug in not rejecting empty attr paths, add unparser 2024-12-10 13:32:28 -08:00
lix-doc fix tooling after include reorganization 2024-11-19 22:55:32 +00:00
nix libexpr: fully separate evaluator and running evaluation 2024-12-05 13:30:35 +00:00
pch fix tooling after include reorganization 2024-11-19 22:55:32 +00:00
lix-base.pc.in fix tooling after include reorganization 2024-11-19 22:55:32 +00:00
meson.build fix tooling after include reorganization 2024-11-19 22:55:32 +00:00