Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

copybook resolution breaks the analysis (corner case scenario) #1961

Closed
ap891843 opened this issue Jul 3, 2023 · 0 comments
Closed

copybook resolution breaks the analysis (corner case scenario) #1961

ap891843 opened this issue Jul 3, 2023 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@ap891843
Copy link
Contributor

ap891843 commented Jul 3, 2023

Description

Please check the below corner case scenario where copybook resolution breaks the analysis.

Steps to reproduce

  1. Below code compiles but COBOL LS issues an error.
    Notice: a space after copy statement.
    failing syntax --> copy <copybook-Name>.<space>.
    copybook content is not appended by "."

PRGM.cbl

       IDENTIFICATION DIVISION.
       PROGRAM-ID. TEST12.
       ENVIRONMENT DIVISION.
       DATA DIVISION.
        WORKING-STORAGE SECTION.
        01 test1 pic x(9).
       PROCEDURE DIVISION.
       bug-test.
           move 0 to test1.
       copy bug0. .
       bug-test2.
           move 0 to test1.

BUG0

           PERFORM BUG-TEST

Expected behavior

The code should not throw any error in the problem view.

Screenshots

image

@ap891843 ap891843 added the bug Something isn't working label Jul 3, 2023
@zimlu02 zimlu02 added this to the 2.1.0 milestone Jul 13, 2023
ap891843 added a commit to ap891843/che-che4z-lsp-for-cobol that referenced this issue Jul 13, 2023
Signed-off-by: Aman Prashant <aman.prashant@broadcom.com>
ap891843 added a commit to ap891843/che-che4z-lsp-for-cobol that referenced this issue Jul 13, 2023
Signed-off-by: Aman Prashant <aman.prashant@broadcom.com>
ap891843 added a commit to ap891843/che-che4z-lsp-for-cobol that referenced this issue Jul 13, 2023
Signed-off-by: Aman Prashant <aman.prashant@broadcom.com>
ap891843 added a commit that referenced this issue Jul 17, 2023
Signed-off-by: Aman Prashant <aman.prashant@broadcom.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants