Skip to content

libcmd/repl: Fix issues with :ll before anything is loaded, get rid o…#15167

Merged
xokdvium merged 1 commit intomasterfrom
repl-last-loaded-fix
Feb 6, 2026
Merged

libcmd/repl: Fix issues with :ll before anything is loaded, get rid o…#15167
xokdvium merged 1 commit intomasterfrom
repl-last-loaded-fix

Conversation

@xokdvium
Copy link
Contributor

@xokdvium xokdvium commented Feb 6, 2026

…f store parameters to constructors

Motivation

Fixes abort on :ll if nothing has been loaded yet. Also gets rid of redundant openStore() calls that were dead code (store can be extracted from EvalState already) and arguably openStore is a layer violation.

Also catches EPIPE in case the pager gets interrupted to avoid superfluous error messages.

Context

Fixes #15128.


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

@xokdvium xokdvium requested a review from edolstra as a code owner February 6, 2026 19:04
@github-actions github-actions bot added new-cli Relating to the "nix" command with-tests Issues related to testing. PRs with tests have some priority repl The Read Eval Print Loop, "nix repl" command and debugger labels Feb 6, 2026
@xokdvium xokdvium force-pushed the repl-last-loaded-fix branch from 2cf34f7 to a8b7437 Compare February 6, 2026 19:21
Copy link
Contributor

@Radvendii Radvendii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice cleanup.

…f store parameters to constructors

Fixes abort on :ll if nothing has been loaded yet. Also gets rid of
redundant openStore() calls that were dead code (store can be extracted
from EvalState already) and arguably openStore is a layer violation.

Also catches EPIPE in case the pager gets interrupted to avoid superfluous
error messages.
@xokdvium xokdvium force-pushed the repl-last-loaded-fix branch from a8b7437 to bcc6390 Compare February 6, 2026 19:29
@xokdvium xokdvium added this pull request to the merge queue Feb 6, 2026
Merged via the queue into master with commit 2f49b73 Feb 6, 2026
19 checks passed
@xokdvium xokdvium deleted the repl-last-loaded-fix branch February 6, 2026 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-cli Relating to the "nix" command repl The Read Eval Print Loop, "nix repl" command and debugger with-tests Issues related to testing. PRs with tests have some priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Running :ll as the first command in the nix repl crashes Nix

2 participants