Error parsing

Each line of output produced by an external program is fed through several successive error patterns. Each error pattern attempts to match the line against a regular expression. If the line matches the regular expression, the file name, line number and error message is extracted from it; the line is then optionally matched against another regular expression to determine if it is a warning or error message.

If the error pattern specifies a filename of "$f", the current buffer's path is used; otherwise, the filename is resolved relative to the current directory.

It is also possible to specify an "extra" regular expression, against which lines subsequent to an error are checked and added to the error message if they match. This can be used to handle compilers which produce compiler errors and warnings that span several lines.

Parsed error and warning messages are shown in the Plugins>Error List>Error List window; this window is used to display errors from several other plugins as well.

The Console plugin includes error patterns that match errors produced by the following tools:

Error patterns can be customized in the Console>Error Patterns pane of the Global Options dialog box; you should familiarize yourself with regular expressions first, the syntax of which is documented in the jEdit user's guide.