Open and answer this issue on GitHub.
bug, ready · opened 2026-11-22 · updated 2026-11-22 · 0 comments
Found while building #2516 (the builder’s report, docs/briefs/safety/issue-2516.md.report.md).
app/nikaia.toml: [dependencies] demo = { path = "../demo" }
demo/nikaia.toml (any valid manifest)
demo/nikaia.contracts
demo/ no src/ directory
Running nikaia run in app/ prints a raw Error: cannot read …/demo/src followed by a Rust stack backtrace.
The same refusal an empty src/ already gets (“src has no .nika files, so there’s nothing to build”), as an NK diagnostic that names the dependency. No backtrace.
The package source reader in crates/nikaia/src/modules.rs (modules_package_at) propagates the I/O error of the missing directory instead of treating it as “no sources”.
src/ of a path dependency gets the refusal of an empty src/. Where the code is Rust that cannot be moved, the fix stays in Rust; otherwise it moves into Nikaia (CLAUDE.md).tests/compiler/tests/ with the probe above and its expected .stderr.The probe prints the NK refusal and no backtrace, and the test passes.