Got this error today while trying to build a project with checkstyle. This works for other people in my office but I would rather not reinstall Eclipse yet again. Any idea what this error actually means?
Errors occurred during the build.
Errors running builder 'Checkstyle Builder' on project 'myproject'.
cannot initialize module TreeWalker - Unable to instantiate TabCharacter
cannot initialize module TreeWalker - Unable to instantiate TabCharacter
cannot initialize module TreeWalker - Unable to instantiate TabCharacter
cannot initialize module TreeWalker - Unable to instantiate TabCharacter
I'm gathering that it has something to do with the tab character but not much else.
UPDATE: Version of Eclipse is 3.5, Checkstyle is 5.0.0.200906281855-final.
(Java is jdk 1.6.0_10)
As mentioned in this bug, Checkstyle Plugin version 5.0.0.200906281855:
Release notes of Checkstyle 5 state that some of the modules and checks we are using are not backwards compatible.
E.g. the moduleTabCharacter
does not occur in v5 any more (was replaced byFileTabCharacter
), hence can't work.
The checkFileLength
does not require a syntax tree, hence is not any longer under parentTreeWalker
.
That means your issue could be with an automatic update of the Checkstyle plugin in your eclipse configuration.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With