checkstyle-idea icon indicating copy to clipboard operation
checkstyle-idea copied to clipboard

OpLoadConfiguration internal error

Open irux opened this issue 4 years ago • 7 comments

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:

image

Do you have any idea what is happening?

Thank you!

irux avatar Nov 24 '21 08:11 irux

Very odd, just tried myself with Checkstyle 9.1 active and it imported correctly for me.

What version of Checkstyle do you have selected?

jshiell avatar Nov 29 '21 11:11 jshiell

image I have the 9.1 but I get an error too. here my IDE version: image

should I test something else ?

thank you! @jshiell

irux avatar Nov 29 '21 12:11 irux

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.

jshiell avatar Nov 29 '21 14:11 jshiell

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.

ichantzaras avatar Jul 25 '22 12:07 ichantzaras

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.

jshiell avatar Jul 28 '22 18:07 jshiell

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.

image

image

image

idea_20220731.log

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

image

Am I missing any required settings? Is there any other information I could obtain that might help you reproduce it?

Thanks again.

ichantzaras avatar Jul 31 '22 09:07 ichantzaras

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.

Screenshot 2022-08-06 at 09 57 52

jshiell avatar Aug 06 '22 08:08 jshiell

Closed due to no further updates.

jshiell avatar Mar 29 '24 15:03 jshiell