regex help

Get help with the installation and running of the Zeus IDE. Please do not post bug reports or feature requests here. When in doubt post your question here.
Post Reply
ncobug
Posts: 2
Joined: Thu Feb 05, 2015 7:39 pm

regex help

Post by ncobug »

hello
need help

i am using GnuCOBOL 2.2. How would i set up the compiler regex to read the following eror line. I have tried all i know and it will not work. please help have no more hair to pull....lol

C:/Zeus/test.cob: 8: Error: Invalid indicator 'P' at column 7

Thanks
Gator :roll: :shock: :? :x
ncobug
Posts: 2
Joined: Thu Feb 05, 2015 7:39 pm

Re: regex help

Post by ncobug »

just go it to work
Settings for GnuCOBOL (OpenCOBOL) is the following

compiler settings commmand line: cobc.exe "$fn"
Lines Regex : '\([0-9]+\)'
filename Regex : '^"([^"]+)"'
Errors Regex :: [0-9]+:

Works like a charm.

also there is a windows install program for GnuCOBOL 2.2 ont heir sourceforge site in the forum

file name is GNU-Cobol-2.0-test-setup exe
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Re: regex help

Post by jussij »

I'm glad to read you sorted this out :)

While I suspect you may already have figured most of this out, for the others I will describe how Zeus organizes it's settings.

Zeus settings can be broken down into four distinct sections as follows:

1: General Settings
These are the settings that are specific to the editor itself.

These settings are accessed using the Options, Editor Options menu.

2: Document Type Settings
These are the settings specific to a particular document type.

A document type defines a group of files identified by file extension.

Any given file extension can only belong to one document type.

These settings are accessed using the Options, Document Types menu.

As an example, in your case you needed to specify how COBOL error messages were identified, so you made a change to the COBOL Document Type.

3: Default Document Type Settings
These are the settings specific to any other file extension, not already been defined in one of the other document types.

They are accessed using the Options, Default Document Types menu.

The default document types can also be used to specify settings that apply to all document types, things like tools, macros, templates etc.

4: Workspace Settings
These are the settings specific to currently open workspace.

They are accessed using the Workspace, Options menu.
Post Reply