You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
com.github.shyiko.ktlint.core.RuleExecutionException: java.lang.ClassCastException: org.jetbrains.kotlin.psi.KtOperationReferenceExpression cannot be cast to org.jetbrains.kotlin.com.intellij.psi.impl.source.tree.LeafPsiElement
at com.github.shyiko.ktlint.core.KtLint$format$1.invoke(KtLint.kt:345)
at com.github.shyiko.ktlint.core.KtLint$format$1.invoke(KtLint.kt:36)
at com.github.shyiko.ktlint.core.KtLint$visitor$2$2.invoke(KtLint.kt:207)
at com.github.shyiko.ktlint.core.KtLint$visitor$2$2.invoke(KtLint.kt:36)
at com.github.shyiko.ktlint.core.KtLint.visit(KtLint.kt:487)
at com.github.shyiko.ktlint.core.KtLint.visit(KtLint.kt:488)
at com.github.shyiko.ktlint.core.KtLint.visit(KtLint.kt:488)
at com.github.shyiko.ktlint.core.KtLint.visit(KtLint.kt:488)
at com.github.shyiko.ktlint.core.KtLint.visit(KtLint.kt:488)
at com.github.shyiko.ktlint.core.KtLint.visit(KtLint.kt:488)
at com.github.shyiko.ktlint.core.KtLint.visit(KtLint.kt:488)
at com.github.shyiko.ktlint.core.KtLint.visit(KtLint.kt:488)
at com.github.shyiko.ktlint.core.KtLint.visit(KtLint.kt:488)
at com.github.shyiko.ktlint.core.KtLint.visit(KtLint.kt:488)
at com.github.shyiko.ktlint.core.KtLint.visit(KtLint.kt:488)
at com.github.shyiko.ktlint.core.KtLint.visit(KtLint.kt:488)
at com.github.shyiko.ktlint.core.KtLint.access$visit(KtLint.kt:36)
at com.github.shyiko.ktlint.core.KtLint$visitor$2.invoke(KtLint.kt:206)
at com.github.shyiko.ktlint.core.KtLint$visitor$2.invoke(KtLint.kt:36)
at com.github.shyiko.ktlint.core.KtLint.format(KtLint.kt:328)
at com.github.shyiko.ktlint.core.KtLint.format(KtLint.kt:279)
at com.github.shyiko.ktlint.Main.format(Main.kt:639)
at com.github.shyiko.ktlint.Main.access$format(Main.kt:84)
at com.github.shyiko.ktlint.Main$main$2.invoke(Main.kt:286)
at com.github.shyiko.ktlint.Main$main$5$1.call(Main.kt:334)
at com.github.shyiko.ktlint.Main$main$5$1.call(Main.kt:84)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.ClassCastException: org.jetbrains.kotlin.psi.KtOperationReferenceExpression cannot be cast to org.jetbrains.kotlin.com.intellij.psi.impl.source.tree.LeafPsiElement
at com.github.shyiko.ktlint.ruleset.standard.PackageKt.nextLeaf(package.kt:14)
at com.github.shyiko.ktlint.ruleset.standard.IndentationRule.previousIndentSize(IndentationRule.kt:67)
at com.github.shyiko.ktlint.ruleset.standard.IndentationRule.visit(IndentationRule.kt:34)
at com.github.shyiko.ktlint.core.KtLint$format$1.invoke(KtLint.kt:333)
... 29 more
Unfortunately I can't share the source code and can't break it down to a minimal example.
The text was updated successfully, but these errors were encountered:
This is the stacktrace I'm getting with 0.23.0:
Unfortunately I can't share the source code and can't break it down to a minimal example.
The text was updated successfully, but these errors were encountered: