W0002: Path Import Ignored In Single-File Mode
A .star file that contains import { ... } from "./other.star"; was type-checked in isolation (e.g. by the language server, the browser playground, or starstream check). Path imports require the multi-file driver to resolve the target module, so the imported names were skipped — any reference to them downstream will fail with an "unknown variable" error.
Example
// playground.star
import { add } from "./helpers/math.star"; // W0002 here
fn main() -> i64 {
add(2, 3) // E0001 "unknown variable" because the import was ignored
}
Fix
Compile via the multi-file CLI driver:
starstream wasm -c entry.star
The CLI reads the file and every .star it transitively imports, builds a topologically sorted module graph, and type-checks the whole project at once. Single-file flows (the playground, IDE-per-file checks) cannot resolve path imports today.