Skip to content

Keep source locations in Bend checkup diagnostics - #2317

Draft
oxura wants to merge 3 commits into
bendlang:mainfrom
oxura:fix/checkup-diagnostic-location-20261124
Draft

oxura wants to merge 3 commits into
bendlang:mainfrom
oxura:fix/checkup-diagnostic-location-20261124

Conversation

@oxura

@oxura oxura commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

The import heading still shows which check ran. Errors now also have the same file:line:column as a direct check, including when an import's own dependency fails.

Fixes #2316.

I ran the extended CLI diagnostic fixture, then compared a failing direct run with --checkup. The stderr matched byte for byte; the batch heading and exit code stayed the same. The Linux repo gate passed 56/56. The mini gates weren't run.

- Use the same location formatter as direct checks with a fresh seen map for each import.

Fixes bendlang#2316
Retain the separate regression for tilde parameters added on main.
@oxura

oxura commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

Merged the latest main and kept both test cases: missing nested imports under --checkup and the new regression for ~ parameters. The combined diagnostic fixture passed locally. The mini gates are still unverified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bend --checkup drops the source location from compiler errors

1 participant