feat(libexpr): mark start of infinite recursion in error traces - #16296
Merged
xokdvium merged 1 commit intoAug 15, 2026
Conversation
xokdvium
reviewed
Aug 12, 2026
xokdvium
reviewed
Aug 12, 2026
roberth
force-pushed
the
feat-infinite-recursion-mark-start
branch
3 times, most recently
from
August 13, 2026 09:21
a844e7c to
ad80d38
Compare
xokdvium
reviewed
Aug 13, 2026
roberth
force-pushed
the
feat-infinite-recursion-mark-start
branch
from
August 13, 2026 12:01
ad80d38 to
13bf395
Compare
xokdvium
reviewed
Aug 13, 2026
Assisted-By: Claude Code (Claude Opus 4.7) Assisted-By: Claude Code (Claude Opus 5)
roberth
force-pushed
the
feat-infinite-recursion-mark-start
branch
from
August 13, 2026 12:18
13bf395 to
82c4f82
Compare
xokdvium
approved these changes
Aug 14, 2026
xokdvium
reviewed
Aug 15, 2026
Comment on lines
+74
to
+77
| template<typename... Args> | ||
| explicit InfiniteRecursionError(EvalState & state, const Value * v, const Args &... args) | ||
| : CloneableError(state, args...) | ||
| , v(v) |
Contributor
There was a problem hiding this comment.
Suggested change
| template<typename... Args> | |
| explicit InfiniteRecursionError(EvalState & state, const Value * v, const Args &... args) | |
| : CloneableError(state, args...) | |
| , v(v) | |
| template<typename... Args> | |
| explicit InfiniteRecursionError(EvalState & state, const Value * v, Args &&... args) | |
| : CloneableError(state, std::forward<Args>(args)...) | |
| , v(v) |
But it probably doesn't matter much.
Member
Author
There was a problem hiding this comment.
Doesn't do anything atm. Would take 4 more changes:
| # | Link | Signature | File |
|---|---|---|---|
| 1 | EvalState::error<T> |
const Args &... args |
eval.hh:488 |
| 2 | EvalErrorBuilder<T> ctor |
const Args &... args |
eval-error.hh:129 |
| 3 | InfiniteRecursionError ctor |
const Args &... args |
eval-error.hh:75 |
| 4 | EvalBaseError ctor |
const Args &... formatArgs |
eval-error.hh:39 |
| 5 | BaseError ctor |
Args &&... args → HintFmt(...) |
error.hh:142 ✅ already forwards |
Also errors are supposedly not in the hot path (tryEval aside)
Contributor
There was a problem hiding this comment.
That's still good to do locally, even if we are not forwarding everything up the call stack.
Contributor
There was a problem hiding this comment.
I can improve this in a follow-up.
Member
Author
There was a problem hiding this comment.
I already asked Claude to do it #16309, if it's any help :)
This was referenced Aug 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Trace useful. Found a need for this again when debugging the tracing cache (STF)
Context
Assisted-By: Claude Code (Claude Opus 4.7)
Assisted-By: Claude Code (Claude Opus 5)
Add 👍 to pull requests you find important.
The Nix maintainer team uses a GitHub project board to schedule and track reviews.