PyCharm 2016.3 Help

Add/Edit Filter Dialog

From the Output Filters dialog: /help/img/idea/new.png or /help/img/idea/editFlexLibraryNew.png


Specify the filter for transferring absolute file paths and line numbers in the tool output into hyperlinks.

ItemDescription
Name The name of the filter.
Description The filter description (optional).
Regular expression to match output The text pattern to be matched against the tool output to identify linkable references. The pattern can include text and the following placeholder variables:
  • $FILE_PATH$ - the portion of the output that corresponds to an absolute path to a source file. Required.
  • $LINE$ - a line number reference.
  • $COLUMN$ - a column reference.
  • $MESSAGE$ - a message to display in the log.

The variables are inserted by right-clicking the field and then selecting the necessary item from the list that is shown.

Example

If your tool outputs the lines similar to

Error parsing C:\Demos\src\converter\MetersToInches.xml:103 Missing Closing Tag

the pattern $FILE_PATH$:$LINE$ will turn C:\Demos\src\converter\MetersToInches.xml:103 into a hyperlink to the line number 103 in the file MetersToInches.xml.

See Also

Last modified: 23 November 2016