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
Caused by: java.lang.IllegalArgumentException: Count 'n' must be non-negative, but was -4.
at kotlin.text.StringsKt__StringsJVMKt.repeat(StringsJVM.kt:737)
at com.pinterest.ktlint.ruleset.standard.IndentationRule.visitWhiteSpace(IndentationRule.kt:1085)
at com.pinterest.ktlint.ruleset.standard.IndentationRule.access$visitWhiteSpace(IndentationRule.kt:103)
at com.pinterest.ktlint.ruleset.standard.IndentationRule$indent$2.invoke(IndentationRule.kt:600)
at com.pinterest.ktlint.ruleset.standard.IndentationRule$indent$2.invoke(IndentationRule.kt:463)
at com.pinterest.ktlint.core.ast.PackageKt.visit(package.kt:230)
at com.pinterest.ktlint.core.ast.PackageKt.visit(package.kt:231)
at com.pinterest.ktlint.core.ast.PackageKt.visit(package.kt:231)
at com.pinterest.ktlint.core.ast.PackageKt.visit(package.kt:231)
at com.pinterest.ktlint.ruleset.standard.IndentationRule.indent(IndentationRule.kt:462)
at com.pinterest.ktlint.ruleset.standard.IndentationRule.visit(IndentationRule.kt:162)
at com.pinterest.ktlint.core.KtLint$format$1.invoke(KtLint.kt:391)
Steps to Reproduce
With ktlint 0.42.0, the following fails when formatting:
Name and version (or code for custom task) of integration used (Gradle plugin, Maven plugin, command line, custom Gradle task): id("org.jlleitschuh.gradle.ktlint") version "10.1.0"
Version of Gradle used (if applicable): 7.1
Operating System and version: macOS 10.15
Link to your project (if it's a public repository):
The text was updated successfully, but these errors were encountered:
Expected Behavior
No exception
Observed Behavior
Stacktrace:
Steps to Reproduce
With ktlint 0.42.0, the following fails when formatting:
Your Environment
The text was updated successfully, but these errors were encountered: