Skip to content

Fixed errors being stacked when reported on multiple files#3347

Merged
buzzia2001 merged 1 commit into
masterfrom
duplicatedDiagnostics
Jul 5, 2026
Merged

Fixed errors being stacked when reported on multiple files#3347
buzzia2001 merged 1 commit into
masterfrom
duplicatedDiagnostics

Conversation

@sebjulliand

Copy link
Copy Markdown
Member

Changes

Fixes #3345

This PR fixes a bug in the loop gathering the errors for each files from EVFEVENT. The diagnostics array was not cleared after each iteration, so the errors would be stacked and reported for each subsequent member being processed.

Now the array is cleared and errors are only reported on the member they belong to.

How to test this PR

  1. Create the example described by @SJLennon here: RPGLE compile diagnostics are duplicated in Problems view for included copybooks #3345 (comment) (or compile a member, with an error, that includes another member)
  2. Compile
  3. Errors must be reported only in the main member

Checklist

  • have tested my change

Signed-off-by: Seb Julliand <sebjulliand@gmail.com>
@sebjulliand sebjulliand requested a review from a team July 4, 2026 14:51
@sebjulliand sebjulliand self-assigned this Jul 4, 2026
@sebjulliand sebjulliand added the bug A confirmed issue when something isn't working as intended label Jul 4, 2026
@github-actions

github-actions Bot commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

👋 A new build is available for this PR based on 8090f57.

@buzzia2001

Copy link
Copy Markdown
Member

It works fine, thank you @sebjulliand for the resolution and many thanks to @SJLennon that create an easy test case

@buzzia2001 buzzia2001 merged commit 2ee639d into master Jul 5, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug A confirmed issue when something isn't working as intended

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RPGLE compile diagnostics are duplicated in Problems view for included copybooks

2 participants