Fails in a large codebase - java.lang.StringIndexOutOfBoundsException: String index out of range: -1
Hi, I'm trying to use Flex PMD in a large Flex codebase. It seems to work fine with smaller projects but I have one pretty large project and both if I run it from ant or command line it fails with a pretty generic error. I thought I would check if anyone has run into this error before. This is the output from the console window (I ran the ant task from within Flex Builder).
flexPmdWithDefaultRuleset:
[flexPmd] Sep 7, 2009 10:55:55 AM com.adobe.ac.pmd.engines.AbstractFlexPmdEngine loadRuleset
[flexPmd] INFO: Ruleset: C:\Users\Andy\AppData\Local\Temp\all_flex62150.xml
[flexPmd] Sep 7, 2009 10:55:55 AM com.adobe.ac.pmd.engines.AbstractFlexPmdEngine loadRuleset
[flexPmd] INFO: Rules number in the ruleSet: 84
[flexPmd] Sep 7, 2009 10:55:55 AM com.adobe.ac.pmd.FlexPmdViolations computeViolations
[flexPmd] INFO: computing RulesList
[flexPmd] Sep 7, 2009 10:55:55 AM com.adobe.ac.pmd.FlexPmdViolations computeViolations
[flexPmd] INFO: computing FilesList
[flexPmd] Sep 7, 2009 10:56:23 AM com.adobe.ac.pmd.FlexPmdViolations computeViolations
[flexPmd] INFO: computing Asts
BUILD FAILED
C:\Projects\src\MyAppClient\build.xml:345: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
Has anyone seen anything like it?
I figured the error is so generic that I have to try to figure it out myself. Any ideas how to debug the issue? Just set a breakpoint in com.adobe.ac.pmd.FlexPmdViolations?
TIA,
Magnus
