dir.join(dir) when the variable is called dirOpen and answer this issue on GitHub.
bug, ready · opened 2026-11-22 · updated 2026-11-22 · 0 comments
Found while supervising the safety lane (#2483’s re-recorded stderr).
crates/nikaia-std/src/compiler/prover_walk.nika:3213 writes the help of a value from outside at a raw sink with a fixed placeholder root: (`dir.join({first}).path().to_text()`). Where the variable is itself dir (as in tests/compiler/tests/a_pub_parameter_at_a_raw_sink_is_from_outside.stderr), the help reads dir.join(dir).path().to_text(), which looks like joining the value under itself.
root.join(x), and where {first} is root, another placeholder (base); or say “a fs::Dir the program opened, D.join(x)” in words. Keep the rest of the help as it is (ADR-raw-sinks-1)..stderr files that carry the help (grep -l "root it is joined under" tests/compiler/tests/*.stderr).No help text joins a variable under a root of the same name; the tests are green.