[ https://issues.apache.org/jira/browse/HIVE-28499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17879107#comment-17879107 ]
Butao Zhang commented on HIVE-28499: ------------------------------------ After some exploring, i am able to import the hive-iceberg checkstyle file by installing a low version plugin *Checkstyle-IDEA-5.86.0* manually. Idea2024 will install *Checkstyle-IDEA-5.94.1* by default, and {color:#FF0000}it seems that hive-iceberg's checkstyle file has some compatibility issues with 5.94.1 plugin version{color}. !idea2024-with-checkstyle-plugin-5.86.0.jpg! BTW, you need to select the Checkstyle version 8.28 if you want to add hive-iceberg checkstyle file into Checkstyle tool: !idea2024-checkstyle-8.28.jpg! > Intellij Idea2024 can't import iceberg&hive checkstyle files > ------------------------------------------------------------ > > Key: HIVE-28499 > URL: https://issues.apache.org/jira/browse/HIVE-28499 > Project: Hive > Issue Type: Improvement > Reporter: Butao Zhang > Priority: Major > Attachments: idea2024-checkstyle-8.28.jpg, > idea2024-checkstyle-tool-error.jpg, idea2024-import-iceberg-checkstyle_1.jpg, > idea2024-import-iceberg-checkstyle_2.jpg, > idea2024-import-iceberg-checkstyle_error_3.jpg, > idea2024-with-checkstyle-plugin-5.86.0.jpg, install_checkstyle_plugin.jpg > > > I upgraded my Intellij from 2022 to 2024 version, and i found that i can't > import iceberg&hive checkstyle files. > {code:java} > IntelliJ IDEA 2024.2.1 (Ultimate Edition) > Build #IU-242.21829.142, built on August 28, 2024{code} > Here are some screen shot & steps of my Intellij 2024: > 1. Install CheckStyle-IDEA plugin > !install_checkstyle_plugin.jpg! > 2. import hive-iceberg checkstyle files using Code Style setting > !idea2024-import-iceberg-checkstyle_1.jpg! > > import this file > [https://github.com/apache/hive/blob/master/iceberg/checkstyle/checkstyle.xml] > !idea2024-import-iceberg-checkstyle_2.jpg! > > 3. import checkstyle failed > !idea2024-import-iceberg-checkstyle_error_3.jpg! > > 4. Checkstyle tool also failed > {code:java} > com.puppycrawl.tools.checkstyle.api.CheckstyleException: > SuppressWithNearbyCommentFilter is not allowed as a child in Checker > at com.puppycrawl.tools.checkstyle.Checker.setupChild(Checker.java:501) > at > com.puppycrawl.tools.checkstyle.api.AutomaticBean.configure(AutomaticBean.java:201) > at > org.infernus.idea.checkstyle.service.cmd.OpCreateChecker.execute(OpCreateChecker.java:61) > at > org.infernus.idea.checkstyle.service.cmd.OpCreateChecker.execute(OpCreateChecker.java:26) > at > org.infernus.idea.checkstyle.service.CheckstyleActionsImpl.executeCommand(CheckstyleActionsImpl.java:116) > at > org.infernus.idea.checkstyle.service.CheckstyleActionsImpl.createChecker(CheckstyleActionsImpl.java:60) > at > org.infernus.idea.checkstyle.service.CheckstyleActionsImpl.createChecker(CheckstyleActionsImpl.java:51) > at > org.infernus.idea.checkstyle.checker.CheckerFactoryWorker.run(CheckerFactoryWorker.java:42) > {code} > !idea2024-checkstyle-tool-error.jpg! > > -- This message was sent by Atlassian Jira (v8.20.10#820010)