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 208871 - No Color Difference and no Text Qualifier between Compiler Warnings and Errors
Summary: No Color Difference and no Text Qualifier between Compiler Warnings and Errors
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal with 2 votes (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-27 07:53 UTC by bht
Modified: 2016-07-07 08:38 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Experimental patch (4.50 KB, patch)
2012-03-02 23:35 UTC, Jesse Glick
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description bht 2012-02-27 07:53:20 UTC
Red error text in both cases: R 164, G 0, B 0
Blue underlined links in both cases: R 0, G, 0, B 178

We get "warning: [unchecked] unchecked conversion ..."
but we get "unreported exception ..."

Note the lack of an error qualifier so there is nothing to search for errors in the log.

So if there are more than a handful of warnings then an error in between them cannot be found.
Comment 1 Jesse Glick 2012-03-02 23:34:07 UTC
The IDE follows how Ant's <javac> reports these, which is at MSG_WARN even for errors. I am not sure whether it is possible for that task to use MSG_ERR for compiler errors in the case of the internal compiler; definitely not possible for a forked compiler. Would be possible if updated to use JSR 199 (internally).

The Ant runner module could perhaps search for well-known strings in output such as "warning: " or "error: " and differentiate this way. Not sure how reliable this will be.

Anyway the lack of a color distinction may be a red herring here (sorry) since the main problem is that javac even reports warnings when there are hard errors (and intermixes them), which is already reported as #6764649.
Comment 2 Jesse Glick 2012-03-02 23:35:39 UTC
Created attachment 116312 [details]
Experimental patch

Shows at least message after hyperlink in a warning color when starts with "warning: ". But lots of other output is sent at MSG_WARN, i.e. red, and the result is confused.
Comment 3 bht 2012-03-03 00:21:10 UTC
I agree that color is not the main issue because even the label of an error message is missing (the label of a warning message is "warning:"). So that is a red herring.

My primary concern is that there is absolutely no reliable way to find an error message in the output although it is reported in the count. Quite unbelievable and irritating. How can we be asked to be patient with a situation where we cannot tell what the reason is for a compilation process failure. Fix hunders of warnings first? That is what I had to do.

I hope that this will be fixed some time cleanly - via JDK bug #6764649 or otherwise.

Meanwhile thanks for the experimental colour fix - I appreciate this. But I am not sure whether this is the long term solution especially if it somehow disguises or blurs the fundamental problem.
Comment 4 Martin Balin 2016-07-07 08:38:23 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss