We are currently using Aptana for PHP and Eclipse for Java. While Aptana is built on Ecplise, it treats PHP files differently when they won't parse/compile. I'd love to use Eclipse for both, but I can't figure out how to suppress errors that should be ignored.

We use simpletest for all of our projects so we have it included in our "core" project and check it into SVN. Simpletest includes "test_with_parse_error.php", which is an invalid php file. In Aptana, the project does not show as having an error (nor does any php file) until you open it. At that point, you can see that the file has an error, but the project as a whole doesn't change (there is no "red X" on the directories where the file is located).

It almost appears as if Aptana treats folders as regular folders while Eclipse (galileo) treats all folders in a PHP project as "source folders". Is there a way to specify which folders should be considered "source" and which should not when looking for errors?

Accepted Answer

starting with eclipse PDT 2.0, you can exclude resources from the build process using the PHP Build Path configuration. this will also suppress warnings from the invalid file.

Written by ax
This page was build to provide you fast access to the question and the direct accepted answer.
The content is written by members of the stackoverflow.com community.
It is licensed under cc-wiki