Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 353494 - Stronger warning for: The project cannot be built until build path errors are resolved
Summary: Stronger warning for: The project cannot be built until build path errors are...
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.7   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-01 09:07 EDT by Juergen Weber CLA
Modified: 2011-08-03 02:13 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Weber CLA 2011-08-01 09:07:02 EDT
Build Identifier: 20110615-0604

If there is a build path error there is the above error message in the problems view and an exclamation mark on the project. This is very easy to overlook, especially if you compile with eclipse and deploy your artifacts with ant to an app server, so you actually deploy old code.
There should be a stronger warning for this situation, e.g. make the problem view come to front and place the selection onto the error line.

Reproducible: Always
Comment 1 Ayushman Jain CLA 2011-08-01 10:07:19 EDT
Umm...i guess one doesn't deploy as regularly as one makes changes to the code. Atleast once before deploying its always a good idea to check the problems view (even if there is no error, there might be extra compiler warnings). Even if that's not a practice you follow, the exclamation mark is easily spotted.

Markus, what is your opinion on this?
Comment 2 Juergen Weber CLA 2011-08-01 10:44:53 EDT
Problem is, the red exclamation mark is there quite on projects, and quite often harmless, e.g. a compiler error in a currently non-used test class can be ignored for the moment.
But "cannot be built" is fatal and should be treated differently, else you wonder why running your main class yields the same results as last time ;-)
Comment 3 Markus Keller CLA 2011-08-02 14:16:47 EDT
The red exclamation mark is usually *not* harmless, since it only shows up if you have build path errors. For other errors, you get a normal error badge.

To always see whether you have build errors in your workspace, you can e.g. configure a Problems view to only show Java Build Path Problems and then turn this view into a fast view (the icon will still update).