当前位置: 首页 > 知识库问答 >
问题:

CheckStyle的问题:创建格式化程序配置文件

周峻
2023-03-14

我为大学下载了checkstyle插件,以便按照教授的要求检查代码。我们得到了一个xml配置文件,我用另一个checkstyle配置(Preferences->checkstyle->New...)我也将其设置为默认设置。现在我们必须创建一个类似“右键单击project->CheckStyle->create Formatter-Profile”的自动格式化程序。现在,我从eclipse弹出一个问题,消息是:“Aninternal error currence during:”transformCheckStyle“.org/eclipse/jdt/internal/ui/preferences/preferencesaccess

!ENTRY org.eclipse.core.jobs 4 2 2018-12-02 16:42:24.496
!MESSAGE An internal error occurred during: "transformCheckstyle".
!STACK 0
java.lang.NoClassDefFoundError: org/eclipse/jdt/internal/ui/preferences/PreferencesAccess
    at net.sf.eclipsecs.core.transformer.FormatterConfigWriter.writeCleanupSettings(FormatterConfigWriter.java:95)
    at net.sf.eclipsecs.core.transformer.FormatterConfigWriter.writeSettings(FormatterConfigWriter.java:89)
    at net.sf.eclipsecs.core.transformer.FormatterConfigWriter.<init>(FormatterConfigWriter.java:81)
    at net.sf.eclipsecs.core.transformer.CheckstyleTransformer.transformRules(CheckstyleTransformer.java:124)
    at net.sf.eclipsecs.core.jobs.TransformCheckstyleRulesJob.runInWorkspace(TransformCheckstyleRulesJob.java:117)
    at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:42)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
!SESSION 2018-12-02 16:44:15.808 -----------------------------------------------
eclipse.buildId=4.9.0.I20180906-0745
java.version=1.8.0_191
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
Framework arguments:  -product org.eclipse.epp.package.java.product
Command-line arguments:  -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.java.product

共有1个答案

史默
2023-03-14

CheckStyle报告了此错误:https://github.com/CheckStyle/eclipse-cs/issues/107

它已经修复,因此升级到Eclipse的最新CheckStyle版本。

 类似资料: