tvl-depot/tvix/eval/src/value
Vincent Ambo 8c13f18d11 feat(tvix/eval): report all known spans on infinite recursion
This reports the span

1. of the code within a thunk,
2. of the place where the thunk was instantiated,
3. of the place where the thunk was first forced,
4. of the place where the thunk was forced again,

when yielding an infinite recursion error, which hopefully makes it
easier to debug them.

The spans are tracked in the ThunkRepr::Blackhole variant when putting
a thunk under evaluation.

Note that we currently have some loss of span precision in the VM loop
when switching between frame types, so spans 3/4 are currently a bit
wonky. Working on it.

Change-Id: Icbd2a9df903d00e8c2545b3fc46dcd2a9e3e3e55
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8270
Reviewed-by: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Autosubmit: tazjin <tazjin@tvl.su>
2023-03-17 19:32:38 +00:00
..
attrs refactor(tvix/eval): simplify NixString representation(s) 2023-03-13 20:30:59 +00:00
arbitrary.rs refactor(tvix/eval): box PathBuf 2023-03-13 20:30:59 +00:00
attrs.rs fix(tvix/eval): implement cppnix JSON-serialisation semantics 2023-03-13 20:30:59 +00:00
builtin.rs feat(tvix/eval): give generators human-readable names 2023-03-13 20:30:59 +00:00
function.rs fix(tvix/eval): fix current clippy warnings 2022-12-25 18:25:06 +00:00
json.rs fix(tvix/eval): implement cppnix JSON-serialisation semantics 2023-03-13 20:30:59 +00:00
list.rs fix(tvix/eval): implement cppnix JSON-serialisation semantics 2023-03-13 20:30:59 +00:00
mod.rs feat(tvix/eval): track span of first force in a thunk blackhole 2023-03-17 19:31:37 +00:00
path.rs refactor(tvix/eval): factor out all calls to canon_path 2022-10-13 09:07:47 +00:00
string.rs chore(tvix/eval): remove From<SmolStr> for NixString instance 2023-03-13 20:30:59 +00:00
thunk.rs feat(tvix/eval): report all known spans on infinite recursion 2023-03-17 19:32:38 +00:00