Age | Commit message (Collapse) | Author | |
---|---|---|---|
2023-04-17 | Merge remote-tracking branch 'upstream/master' into source-path | Robert Hensing | |
2023-04-16 | libexpr: Move identifier-like printing to print.cc | Robert Hensing | |
2023-04-16 | libexpr/value/print.* -> libexpr/print.* | Robert Hensing | |
Generalizes the file to sensibly allow printing any part of the language syntax. | |||
2023-04-16 | printLiteral: Do not overload | Robert Hensing | |
2023-04-09 | Deduplicate string literal rendering, fix 4909 | Robert Hensing | |
2023-04-06 | improved help command listing. | Henrik Karlsson | |
2023-04-06 | Origin: Use SourcePath | Eelco Dolstra | |
2023-04-06 | Backport SourcePath from the lazy-trees branch | Eelco Dolstra | |
This introduces the SourcePath type from lazy-trees as an abstraction for accessing files from inputs that may not be materialized in the real filesystem (e.g. Git repositories). Currently, however, it's just a wrapper around CanonPath, so it shouldn't change any behaviour. (On lazy-trees, SourcePath is a <InputAccessor, CanonPath> tuple.) | |||
2023-04-04 | Merge pull request #7944 from yorickvP/fix-curRepl | Théophane Hufschmitt | |
NixRepl::mainLoop: restore old curRepl on function exit | |||
2023-04-03 | Add explicit case statements where -Wswitch-enum would report them | Robert Hensing | |
2023-03-02 | NixRepl::mainLoop: restore old curRepl on function exit | Yorick van Pelt | |
This fixes completion callbacks after entering and leaving a nested debugger. | |||
2023-02-21 | Fix the build without GC | John Ericson | |
I had given it an improper trailing comma in 1bd03ad100e8813751b6c08b0c21ae8cf5a9c21d. | |||
2023-02-20 | Split out `CmdRepl` and `editorFor` | John Ericson | |
The REPL itself and the `nix repl` CLI are conceptually different things, and thus deserve to be in different files. | |||
2023-01-20 | Fix unreachable error message | Guillaume Maudoux | |
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com> | |||
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-11 | Remove default constructor from `OutputsSpec` | John Ericson | |
This forces us to be explicit. It also requires to rework how `from_json` works. A `JSON_IMPL` is added to assist with this. | |||
2023-01-02 | Merge remote-tracking branch 'origin/master' into coerce-string | Eelco Dolstra | |
2022-12-13 | Improve cast safety | Eelco Dolstra | |
Co-authored-by: Théophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com> | |||
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-07 | Trivial changes from the lazy-trees branch | Eelco Dolstra | |
2022-11-28 | use logger->cout | Naïm Favier | |
in order to avoid potential problems with the progress bar Co-authored-by: Eelco Dolstra <edolstra@gmail.com> | |||
2022-11-28 | repl: print a newline on ctrl-D | Naïm Favier | |
2022-11-02 | Temporarily disable the debugger during completion evaluation | Yorick van Pelt | |
readline is not re-entrant, so entering the debugger from the completioncallback results in an eventual segfault. The workaround is to temporarily disable the debugger when searching for possible completions. | |||
2022-10-16 | Merge remote-tracking branch 'origin/master' into coerce-string | Guillaume Maudoux | |
2022-10-13 | Fix clang warnings | Eelco Dolstra | |
2022-09-20 | nix repl: warn if creating dir for history fails | Alyssa Ross | |
The history is not critical to the functionality of nix repl, so it's enough to warn here, rather than refuse to start if the directory Nix thinks the history should live in can't be created. | |||
2022-09-07 | WIP: broken merge but need a git checkpoint | Guillaume Maudoux | |
2022-08-22 | nix repl: Stop the progress bar | Eelco Dolstra | |
The repl was broken since c3769c68465bae971ab6bb48cfcdea85b61ea83a. In general, the progress bar is incompatible with the repl. | |||
2022-06-29 | Merge pull request #6233 from flox/nix-repl-flakes | Théophane Hufschmitt | |
Nix repl flakes | |||
2022-06-23 | Don't capture stdout when launching subshells in `nix repl` | Dave Nicponski | |
2022-06-15 | Merge branch 'master' into nix-repl-flakes | Tom Bereknyei | |
2022-06-02 | Merge branch 'master' into nix-repl-flakes | Tom Bereknyei | |
2022-05-31 | repl: `--option pure-eval true` actually enables pure eval mode | Maximilian Bosch | |
To quote Eelco in #5867: > Unfortunately we can't do > > evalSettings.pureEval.setDefault(false); > > because then we have to do the same in main.cc (where > pureEval is set to true), and that would allow pure-eval > to be disabled globally from nix.conf. Instead, a command should specify that it should be impure by default. Then, `evalSettings.pureEval` will be set to `false;` unless it's overridden by e.g. a CLI flag. In that case it's IMHO OK to be (theoretically) able to override `pure-eval` via `nix.conf` because it doesn't have an effect on commands where `forceImpureByDefault` returns `false` (i.e. everything where pure eval actually matters). Closes #5867 | |||
2022-05-25 | remove parens from repl help | Ben Burdette | |
2022-05-25 | back to ref<EvalState> in NixRepl | Ben Burdette | |
2022-05-25 | Style tweaks | Eelco Dolstra | |
2022-05-23 | comment | Ben Burdette | |
2022-05-22 | remove redundant 'debugMode' flag | Ben Burdette | |
2022-05-22 | change state derefs | Ben Burdette | |
2022-05-22 | changning repl to use EvalState& instead of ref | 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-15 | remove extra argument | Ben Burdette | |
2022-05-05 | fix repl bug | Ben Burdette | |
2022-05-05 | traceable_allocator | Ben Burdette | |
2022-05-05 | rename debug commands to be more gdb-like; hide them except in debug mode | Ben Burdette | |