[Nix#10106] repl remembers non-loadable :l for :r #50

Open
opened 2024-03-16 06:44:39 +00:00 by lix-bot · 0 comments
Member

Upstream-Issue: NixOS/nix#10106

Describe the bug

A mistake I made when :log didn't work.

nix-repl> :l /nix/store/fiip84zv229vagk4i290f74jj383m2pf-vm-test-run-nixops-legacy-network.drv   
error: syntax error, unexpected ',', expecting ')'

nix-repl> :r
Loading '/nix/store/fiip84zv229vagk4i290f74jj383m2pf-vm-test-run-nixops-legacy-network.drv'...
error: syntax error, unexpected ',', expecting ')'

And now I've lost my symbols.

Steps To Reproduce

As above.

Expected behavior

The original :l specification is preserved, unless it did not exist, or unless loading it again can be expected to succeed.
The latter probably means

  • not a store path
  • not an immutable flakeref
  • missing or bad files may be ok when user has write access

nix-env --version output

Additional context

Add any other context about the problem here.

Priorities

Add 👍 to issues you find important.

Upstream-Issue: https://git.lix.systems/NixOS/nix/issues/10106 **Describe the bug** A mistake I made when `:log` didn't work. ``` nix-repl> :l /nix/store/fiip84zv229vagk4i290f74jj383m2pf-vm-test-run-nixops-legacy-network.drv error: syntax error, unexpected ',', expecting ')' nix-repl> :r Loading '/nix/store/fiip84zv229vagk4i290f74jj383m2pf-vm-test-run-nixops-legacy-network.drv'... error: syntax error, unexpected ',', expecting ')' ``` And now I've lost my symbols. **Steps To Reproduce** As above. **Expected behavior** The original `:l` specification is preserved, unless it did not exist, or unless loading it again can be expected to succeed. The latter probably means - not a store path - not an immutable flakeref - missing or bad files may be ok when user has write access **`nix-env --version` output** **Additional context** Add any other context about the problem here. **Priorities** Add :+1: to [issues you find important](https://github.com/NixOS/nix/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc).
lix-bot added the
bug
imported
labels 2024-03-16 06:44:39 +00:00
jade added the
E/easy
E/help wanted
labels 2024-03-18 16:25:22 +00:00
jade added the
Area/repl
label 2024-05-30 07:13:14 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix#50
No description provided.