Matching compilation errors in command output

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Dave Haynes

Matching compilation errors in command output

Post by Dave Haynes »

Hi,

I'm using TextPad with a freeware VHDL compiler from http://www.symphonyeda.com/. I have added the command line to my Tools menu, and I'd like to be able to double click on the error in the Command Output to take me to the appropriate line in my source code. This topic is explained in the help under "Regular Expressions to Match Compilation Errors
", but the syntax is not explained.

A typical error message from the compiler looks like this ("Error" is sometimes "Warning"):

Error: CSVHDL0002: C:\Thuswise\IEEE1451_2\test_ieee1451_2_generic_fsm.vhd: (line 79): Syntax error near ';', expecting `'

What do I enter in the "Regular Expression to match Output" field? I am using TextPad 4.2.2.

Cheers,
Dave.
moderator

RE: Matching compilation errors in command output

Post by moderator »

Hi Dave

Please try the following RE:

^\(Error\|Warning\): [A-Z0-9]+: \([A-Z]:[^:]+\): (line \([0-9]+\)

File Register = 2
Line Register = 3

The help files do contain a couple of pages on Regular expressions. In the help menu select the Index tab. Type in Regular Expression and click display then select "Regular Expressions".

I hope that helps.

Best Wishes

Heidi-Marie
Post Reply