Best Practices for Eclipse's Problems View

Eclipse

Eclipse Problem Overview


I am using Eclipse for quite some time and I still haven't found how to configure the Problems View to display only the Errors and Warnings of interest. Is there an easy way to filter out warnings from a specific resource or from a specific path? For example, when I generate javadoc I get tons of irrelevant html warnings. Also, is there a way to change the maximum number of appearing warnings/errors?

I am aware of the filters concept, but I am looking for some real life examples. What kind of filters or practices do other people use?

Edit: I found the advice to filter on "On selected element and its children" to be the best one. I have one other issue however. If I have "a lot" of warnings or errors, only the first 100 appear. In the rare case I want to see all of them, how do I do it?

Eclipse Solutions


Solution 1 - Eclipse

I feel that filtering "On selected element and its children" is the best mode of Problems view filter, because it allows you to very quickly narrow down the scope of reported problems: click on Working Set (in Package Explorer), and it shows all problems in all projects in the set; click on a project - and only problems in the selected project appear. Click on individual class (or package) - only problems in the selected class (or package) are shown. So you don't get distracted with problems unrelated to your task at hand.

Solution 2 - Eclipse

In the top right hand corner of the problems pane is a filter button (it looks like three arrows pointing to the right), clicking that will let you configure the view. You can filter by element, such as the class you're editing or working set, the type of problem (e.g. java problems, buildfile problems etc..) and by severity. It's actually very configurable.

See http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.platform.doc.user/concepts/cprbview.htm for details and screenshots.

Solution 3 - Eclipse

To view more than 100 warnings, go to the problem view's drop down menu (use the little arrow next to the minimize button on the view), select Preferences, and you will have the option to change this limit from 100 to another number.

This information is for Ganymede; things have changed since Europa and I'm not sure of all the differences.

Solution 4 - Eclipse

An updated link for Ganymede (Eclipse 3.4):

http://help.eclipse.org/ganymede/topic/org.eclipse.platform.doc.user/concepts/cprbview.htm

But I agree with the fundamental problem: the Problems view needs filtering by Resource, not just Description.

In my case, I include generated jsp code in my source path, and there are all kinds of warning that occur in the *_jsp.java files (like unused application, page, out, config, page_context variables). So it would be nice to exclude them by the Resource pattern. (Or for jspc to not write unused code...but that's a different issue altogether).

Solution 5 - Eclipse

Re: your edit

In the drop down button by the filter button, there is a preferences option. Uncheck "Use Marker Limits" and you will be shown all errors + warnings.

Solution 6 - Eclipse

In order to view more than 100 warnings, go to the problem view's drop down menu (use the little arrow next to the minimize button on the view), select Configure Contents. Uncheck the Use item limitsat the bottom left of the Configure Contents window or set a limit in the Number of items visible per group:.

Solution 7 - Eclipse

Open problems view. Click corner triangle. Select preferences

Uncross: [ ] Use marker limits

Solution 8 - Eclipse

Make sure you don't forget to uncheck "Show all items" on top left corner of Filters window. I was applying all these filters such as 'On selected elements and its children' but it doesn't seem to work out. Finally I unchecked the aforementioned checkbox, selected the required 'Configurations' and then it started working.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionkgiannakakisView Question on Stackoverflow
Solution 1 - EclipseValters VingoldsView Answer on Stackoverflow
Solution 2 - EclipseslashnickView Answer on Stackoverflow
Solution 3 - EclipseskiphoppyView Answer on Stackoverflow
Solution 4 - EclipseBenView Answer on Stackoverflow
Solution 5 - EclipseashirleyView Answer on Stackoverflow
Solution 6 - EclipseClaude COULOMBEView Answer on Stackoverflow
Solution 7 - EclipseJoonasView Answer on Stackoverflow
Solution 8 - EclipseBhuvanesh ManiView Answer on Stackoverflow