Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Eclipse be configured to prevent certain warnings from showing up in the Problems view pane?

Tags:

html

php

eclipse

I am using the Eclipse for PHP Helios build and developing extensions and templates for Joomla with it. I really want to find a way to prevent certain warnings from showing up so that the problems pane is more intuitive. For example I get a Warning for every saying:

Unknown tag (jdoc:include) - HTML Warning

These warnings are not causing any problems I'm just a little picky I guess... and I'm tired of my site saying there is like 1,300+ Warnings when most are not actual problems.

like image 947
Cleanshooter Avatar asked Jan 05 '12 19:01

Cleanshooter


People also ask

How can I see warnings in eclipse?

Click on the small triangle in the upper right corner of the problems view and select "Configure Contents". In that dialog check "Show all items" and uncheck "Use item limits" to show all warnings.


1 Answers

You can do one of several different things:

  1. You can set up a filter in the Problems view. This is the least usable solution (IMHO), as it might be too imprecise to select. To do this, open the view menu in the problems view (the small triangle in the upper right corner, select Configure contents..., and setup a filter that might remove some elements.
  2. You can define editor validation settings. E.g. for HTML files look at the Eclipse Preferences, and there look for the page Web/HTML Files/Editor/Validation - there you can configure a lot of warnings. For PHP and CSS files I did not find such options. I have not checked, but it is possible, that you can make this setting in a project-specific way by opening the project properties, and checking there for the corresponding preference page.

I believe, the second option would allow you to remove those unnecessary warnings.

like image 192
Zoltán Ujhelyi Avatar answered Oct 04 '22 16:10

Zoltán Ujhelyi