-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
Description
Describe the bug
The lazy evaluation and traversal of a large datastructure through the repl's :p
command cannot be interrupted via ctrl-c.
Steps To Reproduce
-
nix-repl> pkgs = import <nixpkgs> {} nix-repl> :p pkgs
- Try to stop it with ctrl-c
- Be ready to send a TERM signal from another terminal or wait... quite a while.
Expected behavior
Ctrl-c should stop the current evaluation and return to the repl prompt in a timely manner.
Metadata
$ nix-env --version
nix-env (Nix) 2.28.3
Additional context
I'm writing some flake-parts modules that handle and name nixpkgs instantiations for memoization purposes... I triggered this quite a few times in debugging even after I already knew not to in theory.
Checklist
- checked latest Nix manual (source)
- checked open bug issues and pull requests for possible duplicates
Add 👍 to issues you find important.