java - Eclipse 中的 Checkstyle 错误 - 无法实例化 Tab 字符

标签 java eclipse checkstyle

今天在尝试使用 checkstyle 构建项目时遇到此错误。这适用于我办公室的其他人,但我不想再次重新安装 Eclipse。知道这个错误的实际含义吗?

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

我收集到它与制表符有关,但与其他无关。

更新:Eclipse 版本为 3.5,Checkstyle 为 5.0.0.200906281855-final。

(Java是jdk 1.6.0_10)

最佳答案

this bug 中所述, Checkstyle 插件版本 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 module TabCharacter does not occur in v5 any more (was replaced by FileTabCharacter), hence can't work.
The check FileLength does not require a syntax tree, hence is not any longer under parent TreeWalker.

这意味着您的问题可能与 Eclipse 配置中 Checkstyle 插件的自动更新有关。

关于java - Eclipse 中的 Checkstyle 错误 - 无法实例化 Tab 字符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1212109/

相关文章:

eclipse - java.lang.ClassNotFoundException : HttpServletRequest 异常

java - 二维重叠折线图

java - Python - Java 数学运算给出不同的结果

c++ - 无法解析 header 中定义的 Eclipse C++ 函数

java - 无法让 Logback Eclipse 插件显示输出

java - 未将字段声明为最终字段时出现 Checkstyle 错误

java - 捕获原始集合类型的 Sonar 规则

java - 如何在 CheckStyle 中抑制警告?

java - 更新 spring webflow 中的对象未显示在 UI 上

java - 计算机重新启动后 Spring 无法连接到 mysql 数据库我该如何诊断问题所在