Files
lix/doc/manual/rl-next/ignore-try-default.md
T
Jade Lovelace 61c276e858 repl: default to turning off ignore-try
This results in anything that uses nixpkgs getting stopped in the
debugger inside of nixpkgs internals, which are usually irrelevant.

Let's default to the more useful option.

Fixes: https://git.lix.systems/lix-project/lix/issues/666
Change-Id: If4b94a3d488bfb2f634ee5a2bc195e7a4b5434a5
2025-07-02 23:11:07 +00:00

757 B

synopsis, issues, cls, category, credits
synopsis issues cls category credits
Repl debugger uses `--ignore-try` by default
lix#666
3488
Breaking Changes
jade

Previously, using the debugger meant that exceptions thrown in builtins.tryEval would trigger the debugger.

However, this caught nixpkgs initialization code, which is unhelpful in the majority of cases, so we changed the default.

To get the old behaviour, use --no-ignore-try.

$ nix repl --debugger --expr 'with import <nixpkgs> {}; pkgs.hello'
Lix 2.94.0-dev-pre20250625-9a59106
Type :? for help.
error: file 'nixpkgs-overlays' was not found in the Nix search path (add it using $NIX_PATH or -I)

This exception occurred in a 'tryEval' call. Use --ignore-try to skip these.

Added 13 variables.
nix-repl>