Can you suppress a single php file that will not parse / compile, showing as an error in Eclipse?

We are currently using Aptana for PHP and Eclipse for Java. Although Aptana is built on Ecplise, it processes PHP files differently when they will not parse / compile. I would like to use Eclipse for both, but I cannot figure out how to suppress errors that should be ignored.

We use simpletest for all of our projects, so we included it in our "main" project and we will check it in SVN. Simpletest includes "test_with_parse_error.php", which is an invalid php file. In Aptana, the project does not appear as an error (and the php file) until you open it. At this moment you can see that the file has an error, but the project as a whole does not change (there is no "red X" in the directories where the file is located).

Aptana seems to treat folders as regular folders, while Eclipse (galileo) treats all folders in a PHP project as “source folders”. Is there a way to indicate which folders should be considered "source" and which should not be looked for when searching for errors?

+4
source share
2 answers

Starting with eclipse PDT 2.0, you can exclude resources from the build process using the PHP Build Path Configuration . it will also suppress warnings from an invalid file.

+3
source

If Aptana is built on Eclipse, could you just tweak it to show a Java view? I could set up my Zend studio (also built on Eclipse and very similar to Aptana) to show and work with Java view / workspace.

0
source

All Articles