In some Eclipse setups (Indigo / pdt 3.0) this error message appears after the code is validated:
An internal error occurred during: "PHP CodeSniffer".

The error shows as soon as there are coding standard violations in the code. I guess the parsing of the reported errors leads to an invalid call in DLTK which breaks the display of error/warnings.
If you enable the console output for the code validator you can see the sniffer results as xml.

Related log entry:

!ENTRY org.eclipse.core.jobs 4 2 2011-08-29 22:26:55.639
!MESSAGE An internal error occurred during: "PHP CodeSniffer".
!STACK 0
java.lang.NoSuchMethodError: org.eclipse.dltk.compiler.problem.DefaultProblem.<init>(Ljava/lang/String;Ljava/lang/String;I[Ljava/lang/String;IIIII)V
at org.phpsrc.eclipse.pti.tools.codesniffer.core.problem.CodeSnifferProblem.<init>(CodeSnifferProblem.java:11)
at org.phpsrc.eclipse.pti.tools.codesniffer.core.PHPCodeSniffer.createProblemMarker(PHPCodeSniffer.java:214)
at org.phpsrc.eclipse.pti.tools.codesniffer.core.PHPCodeSniffer.parseOutput(PHPCodeSniffer.java:166)
at org.phpsrc.eclipse.pti.tools.codesniffer.core.PHPCodeSniffer.parse(PHPCodeSniffer.java:84)
at org.phpsrc.eclipse.pti.tools.codesniffer.validator.PHPCodeSnifferValidator.validateFile(PHPCodeSnifferValidator.java:90)
at org.phpsrc.eclipse.pti.tools.codesniffer.validator.PHPCodeSnifferValidator.validate(PHPCodeSnifferValidator.java:75)
at org.phpsrc.eclipse.pti.tools.codesniffer.core.jobs.ValidationJob.validateFile(ValidationJob.java:102)
at org.phpsrc.eclipse.pti.tools.codesniffer.core.jobs.ValidationJob.run(ValidationJob.java:71)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

(maybe) related links:

Comments

das-peter’s picture

Title:An internal error occurred during: "PHP CodeSniffer"» Eclipse integration: An internal error occurred during: "PHP CodeSniffer"
Project:Drupal coding standards validator for Eclipse» Drupal Code Sniffer

Moved to new project.
Months ago I sent a mail to the PTI maintainer but unfortunately there's still no feedback.

das-peter’s picture

Version:» 7.x-1.x-dev
Status:Active» Fixed

Awesome, Sven Kiera just released a PHP Tools Integration update that fixes this issue.
Please update your Eclipse via the PTI update page: http://www.phpsrc.org/eclipse/pti/

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.