IBM / zopeneditor-about

IBM Z Open Editor: File issues here!
https://ibm.github.io/zopeneditor-about
Apache License 2.0
50 stars 20 forks source link

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

Open RichardSGFR opened 5 months ago

RichardSGFR commented 5 months ago

Development environment used

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 commented 5 months ago

@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

FALLAI-Denis commented 5 months ago

Hi,

See also:

Thanks.

RichardSGFR commented 5 months ago

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 commented 5 months ago

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