ktlint-gradle icon indicating copy to clipboard operation
ktlint-gradle copied to clipboard

Too many element types registered

Open shmish111 opened this issue 2 years ago • 1 comments

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...

shmish111 avatar May 18 '22 10:05 shmish111

Can you provide the full stack trace?

JLLeitschuh avatar May 18 '22 12:05 JLLeitschuh