ktlint-gradle
ktlint-gradle copied to clipboard
Too many element types registered
I created a custom rule and RuleSetProvider
which works if I use the ktlint
binary with the jar file however when I try to run the ktlintCheck
task on any of my subprojects I get the following error:
> A failure occurred while executing org.jlleitschuh.gradle.ktlint.worker.KtLintWorkAction
> Too many element types registered. Out of (short) range. Most of element types (14991) were registered for 'Language: kotlin': kotlin.FILE, CLASS, FUN, PROPERTY, PROPERTY_ACCESSOR, TYPEALIAS, ENUM_ENTRY, OBJECT_DECLARATION, CLASS_INITIALIZER, SECONDARY_CONSTRUCTOR, PRIMARY_CONSTRUCTOR, VALUE_PARAMETER, VALUE_PARAMETER_LIST, TYPE_PARAMETER, TYPE_PARAMETER_LIST, ANNOTATION_ENTRY, ANNOTATION, ANNOTATION_TARGET, CLASS_BODY, IMP...
Can you provide the full stack trace?