Skip to content

RPGLE compile diagnostics are duplicated in Problems view for included copybooks #3345

Description

@schweigerAle-strabag

When compiling RPGLE programs, diagnostics are shown not only in the compiled source member, but also in every copybook that the program includes. This causes the same errors to be duplicated or multiplied in the Problems view and makes it much harder to identify the actual source of the problem. In the current scenario, a single compile issue is reported against the main program and also against all included copybooks, which creates a lot of noise.

To Reproduce

Open an RPGLE program that includes one or more copybooks.
Compile the program.
Open the Problems view.
Notice that diagnostics are shown for the compiled source member and also for the included copybooks, even though the problem originates from the compile of the main program.
Expected behavior

Compile diagnostics should be reported only at the relevant source member(s) that actually caused the error. Copybooks should not receive duplicate diagnostics just because they were included by the program being compiled.

Screenshots

Image

Environment (please complete the following information)

Extension version: 3.0.11
IBM i OS version: V7R5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions