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
Environment (please complete the following information)
Extension version: 3.0.11
IBM i OS version: V7R5
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
Environment (please complete the following information)
Extension version: 3.0.11
IBM i OS version: V7R5