This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 231461 - Enable clang coloured output by default
Summary: Enable clang coloured output by default
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.3.1
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-18 15:29 UTC by wells
Modified: 2014-11-21 14:34 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot of clang coloured output. (39.51 KB, image/png)
2013-06-18 15:29 UTC, wells
Details

Note You need to log in before you can comment on or make changes to this bug.
Description wells 2013-06-18 15:29:17 UTC
Created attachment 135982 [details]
Screenshot of clang coloured output.

Clang is able to produce nicely coloured output when errors occur. This is enabled by default when executing on the command line, but does not appear when building inside Netbeans (tested on a new C++ project).

You can explicitly enable this using the "-fcolor-diagnostics" command line flag. This will generate some nice-looking output in the "Output" window. See the attached screenshot.

It would be nice if Netbeans could enable this by default for C++ projects using clang.
Comment 1 wells 2013-06-18 15:31:39 UTC
The only problem is that Netbeans is unable to turn paths into links in the coloured output. I guess this should be another bug report?
Comment 2 soldatov 2013-06-21 08:06:50 UTC
First bug is issue 223210
Comment 3 Alexander Simon 2013-07-01 14:53:27 UTC
(In reply to comment #1)
> The only problem is that Netbeans is unable to turn paths into links in the
> coloured output. I guess this should be another bug report?
Yes, please file new bug.
Comment 4 Quality Engineering 2013-07-03 02:30:58 UTC
Integrated into 'main-silver', will be available in build *201307022300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/89a9bb51fd5e
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixing Bug #231461 Enable clang coloured output by default:
Partly fixed second comment "Netbeans is unable to turn paths into links in the coloured output".
A colored message is recognized and avaliable in action items.
Still not working: there is no hyperlink in output window (probably because OutWriter ignore listener in colored line).
Comment 5 Maria Tishkova 2014-11-21 14:34:08 UTC
fixed by Alexander Simon.
The separate bug for the problem "Netbeans is unable to turn paths into links in the coloured output" had to be filed separately