NixOS / nix

Nix, the purely functional package manager
https://nixos.org/
GNU Lesser General Public License v2.1
12.8k stars 1.52k forks source link

nix repl: `Interrupted` error pollutes thunks and they cannot be evaluated again #4523

Open oxalica opened 3 years ago

oxalica commented 3 years ago

Describe the bug

When an evaluation is canceled, any expressions referencing previous one will be immediately evaluated to an Interrupted error again, though it's not actually interrupted again.

Steps To Reproduce

  1. nix repl '<nixpkgs>'
  2. Evaluate stdenv and immediately press Ctrl-C to cancel it.
  3. Evaluate hello or any other package referencing stdenv. It will immediately result in another Interrupted error.

Expected behavior Evaluate the new expressions (which may reference previous interrupted thunks) again without error.

nix-env --version output nix-env (Nix) 2.4pre20201205_a5d85d0

stale[bot] commented 3 years ago

I marked this as stale due to inactivity. → More info

oxalica commented 3 years ago

Still an issue.

stale[bot] commented 2 years ago

I marked this as stale due to inactivity. → More info