1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-03 22:35:43 +02:00
cdt/core/org.eclipse.cdt.core
Simon Marchi 1981d5905d Remove ANSI escape sequences from lines before handing them to output parsers
If a build tool (e.g. gcc) outputs colored text, the ANSI escape
sequences will prevent the output parsers from matching the lines.  This
patch makes the ErrorParserManager remove them before handing the
strings to the parsers.

I tested that this works well with the ANSI console plugin [1], which
allows displaying colors in the console window.

Note that I stole the regex from this SO post [2], I hope it's trivial
enough that it doesn't cause any IP problem.

[1] https://marketplace.eclipse.org/content/ansi-escape-console
[2] https://stackoverflow.com/questions/25189651/how-to-remove-ansi-control-chars-vt100-from-a-java-string

Change-Id: I0d6a25723be4008600acecb8595865bcb4f4abc1
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2017-03-27 11:52:09 -04:00
..
.settings Fix API errors with Eclipse 4.7 2017-01-30 14:11:36 -04:00
browser/org/eclipse/cdt Bug 492210 - Remove ChangeLog files from project 2016-04-25 22:53:31 +01:00
META-INF Bug 511229 - RFE: Add quick fixes for some basic gcc errors 2017-02-06 12:33:34 -05:00
model/org/eclipse/cdt Generify ListenerList. 2017-03-23 09:25:24 +02:00
parser/org/eclipse/cdt Bug 513429 - Defer instantiation of variable templates with dependent arguments 2017-03-24 00:52:14 -04:00
schema Modernize Arduino plug-ins. Adjust APIs to suite. 2016-04-28 11:14:07 -04:00
src/org/eclipse/cdt Remove ANSI escape sequences from lines before handing them to output parsers 2017-03-27 11:52:09 -04:00
templateengine/org/eclipse/cdt/core/templateengine Bug 492200 - Replace StringBuffer with StringBuilder 2016-04-21 17:51:12 -05:00
utils/org/eclipse/cdt Generify ListenerList. 2017-03-23 09:25:24 +02:00
.classpath Starting to put Qt onto the new build system and launch. 2015-09-28 13:24:41 -04:00
.options Added tracing to CompositeValue.create. 2017-02-27 20:29:30 -08:00
.project
about.html
build.properties Starting to put Qt onto the new build system and launch. 2015-09-28 13:24:41 -04:00
plugin.properties Bug 303083 - Split out the CDT Spawner into a separate feature 2014-05-26 09:38:09 -04:00
plugin.xml Bug 511229 - RFE: Add quick fixes for some basic gcc errors 2017-02-06 12:33:34 -05:00