Age | Commit message (Collapse) | Author | |
---|---|---|---|
2023-01-19 | Discuss re-entrant errors and design | Guillaume Maudoux | |
2023-01-19 | Add tests for error traces, and fixes | Guillaume Maudoux | |
2023-01-19 | Revert "Revert "Merge pull request #6204 from layus/coerce-string"" | Guillaume Maudoux | |
This reverts commit 9b33ef3879a764bed4cc2404a08344c3a697a646. | |||
2023-01-18 | Revert "Merge pull request #6204 from layus/coerce-string" | Robert Hensing | |
This reverts commit a75b7ba30f1e4f8b15e810fd18e63ee9552e0815, reversing changes made to 9af16c5f742300e831a2cc400e43df1e22f87f31. | |||
2023-01-10 | Parse string context elements properly | John Ericson | |
Prior to this change, we had a bunch of ad-hoc string manipulation code scattered around. This made it hard to figure out what data model for string contexts is. Now, we still store string contexts most of the time as encoded strings --- I was wary of the performance implications of changing that --- but whenever we parse them we do so only through the `NixStringContextElem::parse` method, which handles all cases. This creates a data type that is very similar to `DerivedPath` but: - Represents the funky `=<drvpath>` case as properly distinct from the others. - Only encodes a single output, no wildcards and no set, for the "built" case. (I would like to deprecate `=<path>`, after which we are in spitting distance of `DerivedPath` and could maybe get away with fewer types, but that is another topic for another day.) | |||
2023-01-10 | Merge remote-tracking branch 'origin/master' into fix-7417 | Eelco Dolstra | |
2023-01-02 | Merge remote-tracking branch 'origin/master' into coerce-string | Eelco Dolstra | |
2023-01-02 | Merge pull request #7351 from NaN-git/fix-mkString | Théophane Hufschmitt | |
cleanup eval.hh/eval.cc | |||
2022-12-24 | remove undefined function | Philipp Otterbein | |
2022-12-20 | EvalState::copyPathToStore(): Return a StorePath | Eelco Dolstra | |
2022-12-13 | Introduce AbstractPos | Eelco Dolstra | |
This makes the position object used in exceptions abstract, with a method getSource() to get the source code of the file in which the error originated. This is needed for lazy trees because source files don't necessarily exist in the filesystem, and we don't want to make libutil depend on the InputAccessor type in libfetcher. | |||
2022-12-12 | Move isUri() and resolveUri() out of filetransfer.cc | Eelco Dolstra | |
These are purely related to NIX_PATH / -I command line parsing, so put them in libexpr. | |||
2022-10-25 | Rework error throwing, and test it | Guillaume Maudoux | |
2022-10-23 | Try to please clang with convoluted templates | Guillaume Maudoux | |
2022-10-22 | Introduce an Error builder to tackle complexity | Guillaume Maudoux | |
2022-10-20 | Rollback unneeded throwFrameErrorWithTrace function | Guillaume Maudoux | |
2022-10-17 | Initial frames support | Guillaume Maudoux | |
2022-09-11 | Cleanup error strings rebase | Guillaume Maudoux | |
2022-09-07 | WIP: broken merge but need a git checkpoint | Guillaume Maudoux | |
2022-07-11 | Merge branch 'master' into ignore-try | Ben Burdette | |
2022-07-11 | move ignore-try to EvalSettings | Ben Burdette | |
2022-07-05 | Add builtins.traceVerbose | Gytis Ivaskevicius | |
Co-Authored-By: Silvan Mosberger <contact@infinisil.com> Add builtins.traceVerbose tests | |||
2022-06-02 | Shut up clang warnings | Eelco Dolstra | |
2022-06-02 | print message with exceptions in a try clause | Ben Burdette | |
2022-06-02 | ignore-try flag | Ben Burdette | |
2022-05-30 | Respect the outputSpecified attribute | Eelco Dolstra | |
E.g. 'nix build nixpkgs#libxml2.dev' will build the 'dev' output. | |||
2022-05-26 | Remove pre-C++11 hackiness | Eelco Dolstra | |
2022-05-25 | back to ref<EvalState> in NixRepl | Ben Burdette | |
2022-05-25 | Style tweaks | Eelco Dolstra | |
2022-05-22 | remove redundant 'debugMode' flag | Ben Burdette | |
2022-05-20 | debugRepl ftn pointer | Ben Burdette | |
2022-05-19 | 'debugMode' | Ben Burdette | |
2022-05-19 | de-const evalState exceptions | Ben Burdette | |
2022-05-19 | Merge branch 'debug-exploratory-PR' into debuggerHook-eval-arg | Ben Burdette | |
2022-05-19 | use an expr->StaticEnv table in evalState | Ben Burdette | |
2022-05-16 | first whack at passing evalState as an arg to debuggerHook. | Ben Burdette | |
2022-05-12 | Merge branch 'debugThrow' into debug-exploratory-PR | Ben Burdette | |
2022-05-12 | template-ize debugThrow | Ben Burdette | |
2022-05-09 | Merge branch 'master' into debug-exploratory-PR | Ben Burdette | |
2022-05-06 | Add unit tests for libexpr (#5377) | Andreas Rammhold | |
* libexpr: fix builtins.split example The example was previously indicating that multiple whitespaces would be collapsed into a single captured whitespace. That isn't true and was likely a mistake when being documented initially. * Fix segfault on unitilized list when printing value Since lists are just chunks of memory the individual elements in the list might be unitilized when a programming error happens within Nix. In this case the values are null-initialized (at least with Boehm GC) and we can avoid a nullptr deref when printing them. I ran into this issue while ensuring that new expression tests would show the actual value on an assertion failure. This is unlikely to cause any runtime performance regressions as printing values is not really in the hot path (unless the repl is the primary use case). * Add operator<< for ValueTypes * Add libexpr tests This introduces tests for libexpr that evalulate various trivial Nix language expressions and primop invocations that should be good smoke tests wheter or not the implementation is behaving as expected. | |||
2022-05-06 | debugError() | Ben Burdette | |
2022-05-06 | trying debugThrow | Ben Burdette | |
2022-05-05 | traceable_allocator | Ben Burdette | |
2022-05-05 | rename valmap | Ben Burdette | |
2022-05-05 | Style fixes | Eelco Dolstra | |
In particular, use std::make_shared and enumerate(). Also renamed some fields to fit naming conventions. | |||
2022-04-29 | incorporate PosIdx changes, symbol changes. | Ben Burdette | |
2022-04-29 | Merge remote-tracking branch 'origin/master' into coerce-string | Guillaume Maudoux | |
2022-04-28 | Merge branch 'master' into debug-merge-master | Ben Burdette | |
2022-04-28 | No point in passing string_views by reference | Guillaume Maudoux | |
2022-04-26 | Don't pass Symbol by reference | Eelco Dolstra | |
Since Symbol is just an integer, passing it by const reference is never advantageous. |