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

No intellisense and parsing error for a copybook containing cobol code #416

Open
RichardSGFR opened this issue Jun 10, 2024 · 4 comments
Open
Labels
bug Something isn't working

Comments

@RichardSGFR
Copy link

Development environment used

  • Z Open Editor version: 4.1.0
  • Editor Platform
    • Visual Studio Code
  • Editor Platform Version: 1.88.0
  • Operating System : Windows 11
  • Java Version (when using VS Code or Theia, execute java -version and paste the details here): openjdk version "21.0.1" 2023-10-17 LTS

Problem Description

When editing a copybook containing cobol source code (no variable description) like perform, etc. It is impossible to navigate from paragraph to paragraph and nothing is recognised. Also we get the following error on the first line of the copybook :

"ParagraphListMarker" inserted before this token

How to reproduce

Write and cobol program that use a copy in its procedure division. This copy containing the procedural code of the program.
Open the copy with CTRL + click on it.

the problem ""ParagraphListMarker" expected instead of this input" is mentionned on the copy.
There is no outline inside the copy to facilitate navigation inside the program.

@phaumer
Copy link
Member

phaumer commented Jun 11, 2024

@RichardSGFR based on our list here of what should work and does not work, can you provide some code samples for the issues you see? https://ibm.github.io/zopeneditor-about/Docs/knownissues.html#enabled-features-of-cobol-copybook-files

@phaumer phaumer added question Further information is requested labels Jun 11, 2024
@FALLAI-Denis
Copy link

Hi,

See also:

Thanks.

@RichardSGFR
Copy link
Author

Example of cobol procedural code copybook

image

Here you see the problem : ParagraphListMarker.

Syntax errors : 👍
Find all references in file : 👎
Peek references in file 👎
image

Rename symbol in file 👎
Outline view : 👍
Syntax highlighting : 👍
Code completion : 👎 Does not propose paragraph name when typing perform for example
Snippets : 👍
Embedded languages support such as SQL, CICS, and DLI : not tested

Since the outline is parsing the different paragraph I am expecting that a click on the paragraph name from a perform allow to redirect to the paragraph definition as in a standard cobol program.

@phaumer
Copy link
Member

phaumer commented Jun 12, 2024

Thanks. We review these one by one. Filing it as a bug for now.

@phaumer phaumer added bug Something isn't working and removed question Further information is requested labels Jun 12, 2024
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

3 participants