lix/src/libexpr
regnat 0c6e46e349 Add some suggestions to the evaluator
Make the evaluator show some suggestions when trying to access an
invalid field from an attrset.

```console
$ nix eval --expr '{ foo = 1; }.foa'
error: attribute 'foa' missing

       at «string»:1:1:

            1| { foo = 1; }.foa
             | ^
       Did you mean foo?
```
2022-03-08 06:21:45 +01:00
..
flake Fix segfault in headerCallback() 2022-03-03 11:11:16 +01:00
primops Merge pull request #6185 from hercules-ci/fetchTree-reuse-local-paths 2022-03-01 13:15:42 +01:00
attr-path.cc Implement a suggestions mechanism 2022-03-07 10:09:09 +01:00
attr-path.hh Remove std::string alias (for real this time) 2022-02-25 16:13:02 +01:00
attr-set.cc Remove EvalState::mkAttrs() 2022-01-04 20:29:17 +01:00
attr-set.hh Remove std::string alias (for real this time) 2022-02-25 16:13:02 +01:00
common-eval-args.cc Remove std::string alias (for real this time) 2022-02-25 16:13:02 +01:00
common-eval-args.hh Remove std::string alias (for real this time) 2022-02-25 16:13:02 +01:00
eval-cache.cc Also display suggestions for the commands using the eval cache 2022-03-07 10:09:10 +01:00
eval-cache.hh Merge or-suggestions.hh into suggestions.hh 2022-03-07 17:49:02 +01:00
eval-inline.hh Make most calls to determinePos() lazy 2022-02-04 00:33:21 +01:00
eval.cc Add some suggestions to the evaluator 2022-03-08 06:21:45 +01:00
eval.hh Add EvalState::coerceToStorePath() helper 2022-03-02 23:58:58 +01:00
fetchurl.nix Move <nix/fetchurl.nix> into the nix binary 2020-12-22 14:43:20 +01:00
function-trace.cc Revert the enum struct change 2020-06-18 22:11:26 +00:00
function-trace.hh Hide FunctionCallTrace constructor/destructor 2020-01-05 16:21:34 +01:00
get-drvs.cc Add EvalState::coerceToStorePath() helper 2022-03-02 23:58:58 +01:00
get-drvs.hh Add EvalState::coerceToStorePath() helper 2022-03-02 23:58:58 +01:00
imported-drv-to-derivation.nix Move some corepkgs into the nix binary 2020-03-11 16:57:48 +01:00
json-to-value.cc return string_views from forceString* 2022-01-27 17:15:43 +01:00
json-to-value.hh return string_views from forceString* 2022-01-27 17:15:43 +01:00
lexer.l remove ExprIndStr 2022-01-19 13:39:42 +01:00
local.mk Merge pull request #5175 from Pamplemousse/make 2021-08-30 12:44:29 +02:00
nix-expr.pc.in pkg-config files: Use c++17 2019-03-14 14:11:12 +01:00
nixexpr.cc Remove std::string alias (for real this time) 2022-02-25 16:13:02 +01:00
nixexpr.hh Remove std::string alias (for real this time) 2022-02-25 16:13:02 +01:00
parser.y Remove std::string alias (for real this time) 2022-02-25 16:13:02 +01:00
primops.cc Add EvalState::allowAndSetStorePathString helper 2022-02-28 21:37:49 +01:00
primops.hh libexpr: throw a more helpful eval-error if a builtin is not available due to a missing feature-flag 2021-09-29 11:57:15 +02:00
symbol-table.hh Remove std::string alias 2022-02-21 16:37:25 +01:00
value-to-json.cc Support range-based for loop over list values 2021-11-25 16:31:39 +01:00
value-to-json.hh toJSON: report error position for fancier output 2021-10-25 21:17:52 +00:00
value-to-xml.cc Remove std::string alias (for real this time) 2022-02-25 16:13:02 +01:00
value-to-xml.hh toXML: display errors position 2021-11-13 20:33:34 -05:00
value.hh Be more aggressive in hiding repeated values 2022-03-03 13:33:34 +01:00