aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-10-22remove more debug codeBen Burdette
2021-10-22remove dead codeBen Burdette
2021-10-22show expr on errorBen Burdette
2021-10-11comment out debugsBen Burdette
2021-10-11print staticenv bindingsBen Burdette
2021-10-11add nullable Expr argumentBen Burdette
2021-10-02storing staticenv bindingsBen Burdette
2021-09-23ok was unconditoinally throwing on any With varBen Burdette
2021-09-22staticenv should be WithBen Burdette
2021-09-22more debug stuffBen Burdette
2021-09-17turn off the stack usage thingBen Burdette
2021-09-15add cout debuggingBen Burdette
2021-09-14remove version.txtBen Burdette
2021-09-14remove docs accidentally added to version controlBen Burdette
2021-09-14shared_ptr for StaticEnvBen Burdette
2021-09-13printEnvPosChainBen Burdette
2021-08-25remove more explicit valmap codeBen Burdette
2021-08-25adding all the value names from env.values[0]Ben Burdette
2021-08-24print env bindingsBen Burdette
2021-08-18env to bindingsBen Burdette
2021-08-18more error fixesBen Burdette
2021-08-18switch to fakeenvsBen Burdette
2021-08-17moving towards env in exceptionsBen Burdette
2021-08-09trying env args; but unecessary?Ben Burdette
2021-08-06move valmap to hh; add to envBen Burdette
2021-06-11hintfmt for eye searing varnamesBen Burdette
2021-06-11mapEnvBindingsBen Burdette
2021-06-09remove dead codeBen Burdette
2021-06-08formatting; string arg for throwTypeErrorBen Burdette
2021-06-08line endingsBen Burdette
2021-06-08highlight the extra varsBen Burdette
2021-06-08another throwTypeError formBen Burdette
2021-05-14showType(fun)Ben Burdette
2021-05-14clean up w LocalNoInline macroBen Burdette
2021-05-14throwAssertionError, throwUndefinedError -> valmap-izedBen Burdette
2021-05-14throwEvalError form 4Ben Burdette
2021-05-14throwEvalError form 3Ben Burdette
2021-05-14throwEvalError form 2Ben Burdette
2021-05-13throwEvalError; mapBindingsBen Burdette
2021-05-12plain env pointerBen Burdette
2021-05-12unique_ptr for valmapBen Burdette
2021-05-11map1/2 for stack usageBen Burdette
2021-05-10throwTypeError with debugger/envBen Burdette
2021-05-03debugger on autoCallFunction errorBen Burdette
2021-04-28move repl.cc to libcmd for linkageBen Burdette
2021-04-28fixesBen Burdette
2021-04-27Merge branch 'master' into debugger-mergeBen Burdette
2021-04-27Merge pull request #4751 from Ma27/storepath-posDomen Kožar
primops/storePath: add trace to pure mode error
2021-04-27primops/storePath: add trace to pure mode errorMaximilian Bosch
As described in #4745 it's otherwise fairly hard to understand where this is coming from. Say you have an expression which uses e.g. `types.package`: ``` nix { outputs = { self, nixpkgs }: { packages.x86_64-linux.hello = let foo = nixpkgs.lib.evalModules { modules = [ { options.foo.bar = with nixpkgs.lib; mkOption { type = types.package; }; } { foo.bar = ./.; } ]; }; in builtins.trace foo.config.foo.bar.outPath nixpkgs.legacyPackages.x86_64-linux.hello; defaultPackage.x86_64-linux = self.packages.x86_64-linux.hello; }; } ``` Then you'll get an error trace like this: ``` error: 'builtins.storePath' is not allowed in pure evaluation mode at /nix/store/p4h2x6r80njkb0j2rc1xjhhl99yri3zb-source/lib/attrsets.nix:328:15: 327| let 328| path' = builtins.storePath path; | ^ 329| res = … while evaluating the attribute 'config.foo.bar.outPath' at /nix/store/p4h2x6r80njkb0j2rc1xjhhl99yri3zb-source/lib/attrsets.nix:332:11: 331| name = sanitizeDerivationName (builtins.substring 33 (-1) (baseNameOf path')); 332| outPath = path'; | ^ 333| outputs = [ "out" ]; … while evaluating the attribute 'packages.x86_64-linux.hello' at /nix/store/6c1rfsqzrhjw1235palzjmf5vihcpci7-source/flake.nix:3:5: 2| { outputs = { self, nixpkgs }: { 3| packages.x86_64-linux.hello = let | ^ 4| foo = nixpkgs.lib.evalModules { ``` Fixes #4745
2021-04-23Merge branch 'remove-trailing-spaces' of github.com:NixOS/nixEelco Dolstra