checkstyle-idea
checkstyle-idea copied to clipboard
OpLoadConfiguration internal error
Hello,
I was trying to import this checkstyle.xml file https://github.com/confluentinc/common/blob/master/build-tools/src/main/resources/checkstyle/checkstyle.xml on the Settings -> Code Style -> Java -> Import Checkstyle configuration, but when I give the file to the importer, I get this error:

Do you have any idea what is happening?
Thank you!
Very odd, just tried myself with Checkstyle 9.1 active and it imported correctly for me.
What version of Checkstyle do you have selected?
I have the 9.1 but I get an error too.
here my IDE version:

should I test something else ?
thank you! @jshiell
You're on the same version of IntelliJ as myself.
Is there any more information in the event log? Normally a load error would have a root cause from Checkstyle that would explain it.
Do you have the file properties set to anything in particular? I left them blank in my test.
Hello, I also stumbled upon the same error and I see there is a relevant question posted on SO with the same stack trace I get. In my case I tried to import the checkstyle config odl_checks.xml of the odl project located here
Thanks in advance for any help.
Hi @ichantzaras - OpLoadConfiguration wraps a lot of errors during load, so it may not be indentical.
What version of Checkstyle do you have selected? The ODL rules files works fine for me with the latest plugin as long as I have Checkstyle 8.26 selected and Sevntu 1.36.0 in the third-party checks.
Hi @jshiell , I tried also with Checkstyle 8.26 as you mentioned but it doesn't seem to work either. The version of the plugin is 5.69.0. If I change the odl_checks to not include the placeholder in the severity property it is imported successfully, same as described in the SO post. Below you can find the configured settings I have and the related error log.



I also tried to include the sventu checks 1.36.0 but I run into the below error

Am I missing any required settings? Is there any other information I could obtain that might help you reproduce it?
Thanks again.
That looks that the classloader isn't able to see the Sevntu modules, and they're not present in the screenshot above.
You need to ensure they're added into the third-party modules checks, as below, so the classloader can find them.
Closed due to no further updates.