You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Locate selective import and namespace binding errors at the import site #978
Module binding failures bypass preserved AST import spans. A missing/private selected symbol or conflicting namespace is reported at line 1, column 1 with a null span, even when the import appears later in the file.
Reproduction
Audited canonical master 42b65e426ad45bf896623b5bce814312b694a0c7 on Linux amd64 with Rust 1.89 and LLVM 21.1.8. Reproductions use the checkout-built target/debug/wavec and matching checkout std. The local head d2f58962 has an identical file tree to that canonical merge. Commands below assume WAVEC names that binary.
Create helper.wave:
pub fun exposed() -> i32 { return 1; }
Create main.wave:
import("./helper")::{absent};
fun main() {}
"$WAVEC" --error-format=json check main.wave
Observed: module './helper' has no symbol 'absent', line 1, column 1, span null. The import is on line 3. Qualified-use errors already retain expression spans; this failure occurs in bind_import before expression rewriting.
Scope
Carry existing import node/token provenance into binding diagnostics for missing/private selections and namespace conflicts/re-exports. Preserve module visibility, namespace rules and resolution order. Do not change #731's already fixed import grammar.
Activity
Improve source diagnostics and reject recursive inline storage (wavef…