Bug 38718 - [Tasks] Problem markers should be sorted in the order in which they were generated
Summary: [Tasks] Problem markers should be sorted in the order in which they were gene...
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: usability
Depends on:
Blocks: 38988
  Show dependency tree
 
Reported: 2003-06-10 12:14 EDT by Randy Hudson CLA
Modified: 2006-06-26 09:59 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Randy Hudson CLA 2003-06-10 12:14:19 EDT
Compilation errors are sorted according to line number. But, this is not 
necessarily the order in which the Java compiler generated the errors.  For 
example:

class Blah {

void bar() {
  foo();
}

Vectro foo() {
  return null;
}

}

In this case, the type Vectro is not found, which creates a secondary compile 
error in the method bar().  Since the secondary error has a lower line number, 
it will appear before the more important compile error.

To solve this, perhaps another attribute similar to line number could be 
generated.  Maybe a "rank" or something.  Then, errors could be sorted by the 
order in which they are generated, not the order in which they appear.
Comment 1 Philipe Mulet CLA 2003-06-11 04:54:41 EDT
Better sorting problems is something we want to consider. In particular, 
certain kind of problems generate some ripple effects, and cause lots of 
distracting secondary problems.

Type errors are usually more significant than others. And fixing these first is 
likeky addressing lots of issues at once. This is the kind of criteria we want 
to add, and this should pretty much give you the behavior you expected.
Comment 2 Philipe Mulet CLA 2003-06-16 18:19:59 EDT
For quite a long time, we were willing to investigating improving our sorting 
order for Java problems. Since we had to fit inside the task list, there was no 
such criteria we could tag our problems with so as to achieve this (only 
sorting per fixed columns).

Could we improve this for 3.0 ? I am thinking of having more granularity in 
severities which would allow smarter heuristics.
I would imagine having 4 or 5 severities per category (Warning, Error).
Comment 3 Philipe Mulet CLA 2003-06-16 18:20:40 EDT
From Nick:
There was also the idea of tagging problems as being primary or secondary, 
which would allow further filtering.
Comment 4 Philipe Mulet CLA 2003-06-16 18:22:34 EDT
Primary/secondary is also something worth considering. We investigated this 
quite a while ago, and could resurrect some code to take advantage of this.

Still certain errors are far more important than others, and I think we would 
need a combination of both enhancements.

Moving to platform/ui for adding support, then we can provide better problem 
sorting strategies.
Comment 5 Randy Hudson CLA 2003-06-16 18:29:02 EDT
I don't think the solution should be limited to an attribute that the user 
wants to look at.  For example, some kind of severity attribute that is 
numbered 1-5. Maybe the new attribute could be any String, and it would be used 
as the secondary sorting criterium after Error, Warning, etc.  As a used, I 
don't think I need to see this column, only its effects.
Comment 6 Philipe Mulet CLA 2003-11-27 05:29:09 EST
As mentionned in related bug 47340, we could use PRIORITY as a way to better 
prioritize problems. This goes along the line of comment #5.
Comment 7 Tod Creasey CLA 2006-06-26 09:59:12 EDT
We have added sorting by proirity and categorization