nbadal / ktlint-intellij-plugin

Ktlint plugin for IntelliJ IDEA + Android Studio
MIT License
150 stars 22 forks source link

ServiceConfigurationError on startup (dev version only) #510

Closed paul-dingemans closed 2 months ago

paul-dingemans commented 2 months ago

On startup of Intellij the error below is displayed by the dev-version of the plugin whenever the rulesets are loaded:

One or more of the external rule set JAR's defined in the ktlint settings, can not be loaded. Error: java.util.ServiceConfigurationError: org.slf4j.spi.SLF4JServiceProvider: org.slf4j.jul.JULServiceProvider not a subtype
paul-dingemans commented 2 months ago

The problem is caused by inclusion of the 0.50.0 ruleset of ktlint which has a transitive dependency on slf4j version 2.0.3.