Repository navigation
feat(native): report reference extraction errors natively - #1037
Merged
Merged
Conversation
kvlonge
force-pushed
the
feat/native-reference-errors
branch
from
October 8, 2026 17:54
6eafe48 to
435f67d
Compare
kvlonge
force-pushed
the
feat/native-reference-errors
branch
from
October 8, 2026 19:43
435f67d to
a1361e0
Compare
kvlonge
enabled auto-merge (squash)
October 8, 2026 20:55
…-errors # Conflicts: # tests/e2e/src/sqlbuild/cli/commands/main/compile/_test_types.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Under the preview engine, native reference extraction sent rejected calls (P012) back to Python and re-scanned to confirm P001 scan errors, which had no location.
Changes
path:line:col:. The fault offset comes from the scan of the SQL that failed and is mapped back to the file through the body start and the declaration and macro expansion spans; nothing is searched. It is located, and raised withbridge_independent=True, only if it lies in authored text and the scan fails identically with every expansion output blanked. Otherwise, and for tests, audits, functions and@@varbodies (no map yet), the error names the file alone and keeps the bridge re-run. The type staysCompileInputError.error_typeCompileInputError.Verification
cargo test --workspace --all-features, clippy and fmt with Rust 1.99.0make compiler-differentialwith CI flags,make compiler-differential-shipped,tests/e2e/scripts/compiler_differentialmake check-ci,make test, public-repository scan