Skip to content

feat(analyser): give a call one error per message, with a note at each place 📌 - #570

Merged
timfennis merged 1 commit into
masterfrom
feature/merge-errors-at-one-call
Nov 29, 2026
Merged

timfennis merged 1 commit into
masterfrom
feature/merge-errors-at-one-call

Conversation

@timfennis

Copy link
Copy Markdown
Owner

An error found in a generic function's body is reported at the call that needed it, with a note pointing into the body. When the body failed the same way in several places, the call got one error per place, all with the same message at the same span. In an editor they show as copies of one diagnostic on the call's line. In fn next(robs) { for rob in robs { let pos = (rob[0], rob[1]); let vel = (rob[2], rob[3]); … } }, a bad call of next got four identical [] errors.

What changes:

  • An error a call already got, with the same message, label and help, gains a note at the new place instead of being reported again. The call above gets one error with a note at each of rob[0]…rob[3].
  • This applies only to errors reported through calls. Other errors are still dropped only when they're exact copies.

Related: #569, which removes the cascade that produced these errors in the first place.

Written with AI (Claude Code), all of it.

🤖 Generated with Claude Code

Co-authored-by: Claude Opus 5.5 noreply@anthropic.com

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-29T13:13:15.414320Z cf04a96 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

…h place 📌

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@timfennis
timfennis force-pushed the feature/merge-errors-at-one-call branch from cf04a96 to e723fc3 Compare November 29, 2026 13:17
@timfennis
timfennis enabled auto-merge (squash) November 29, 2026 13:17
@timfennis
timfennis merged commit 9c1c6fa into master Nov 29, 2026
1 check passed
@timfennis
timfennis deleted the feature/merge-errors-at-one-call branch November 29, 2026 13:19
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.

1 participant