Issue #2449: nikaia run builds a loose file again whenever it is called by a different…

Open and answer this issue on GitHub.

decision, bugs · opened 2026-11-20 · updated 2026-11-20 · 0 comments

Filed by the driver from the Found: of the run of issue-2038 (#2038) (owner, 2026-11-06).

Found

nikaia run builds a loose file again whenever it is called by a different spelling of its path (nikaia run scripts/slot.nika -- B true, then nikaia run $PWD/scripts/slot.nika -- B true, alternated, traces slot_e610388cf78b9045 lowered + rustc reused on every run, 0.28 s against 0.05 s). Traced cause: the ADR-300 D9 table __NIKAIA_PLACES bakes the entry’s shown spelling (NIKAIA_SHOWN_AS, project_drive_cargo_env in project_drive.nika) into the generated Rust. No decision yet: making the generated Rust independent of the spelling needs one of (a) the table holds the canonical path and nikaia run passes the spelling to the running program, so the panic hook in crates/nikaia-std/src/abort.rs (Rust runtime, new Rust) prints it, which keeps today’s output; (b) the table always holds the canonical path, so a loose file aborts as /abs/path.nika:N, against the relative src/main.nika:2 of ADR-300 D10’s example; (c) by design, one relink per spelling switch. Expected: one build per canonical file (#2038) and the abort line still as given.

Needs

supervisor decision

To build

Done when

The probe or check gives the expected output the first item names from its ADR or Part I-III section, and a tests/compiler/tests/ test (or the named check) that failed on the unfixed tree is green; or the probe already passes on develop and a test pins it, naming the commit that fixed it; or the issue is closed as by design, naming the function or ADR.


Generated by Claude Code

Back to Open Issues