-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.lang.IllegalArgumentException: Count 'n' must be non-negative, but was -1. #613
Comments
I had the same error message. It was caused by a Composable function parameter order warning, after fixing the warning in Android Studio ktLintFormat ran successfully. |
thanks @marcbaldwin but I don't use Compose |
The issue can be reproduced by writing something like this: MyInterface<XXX.YYY>
by MyImplementation() But writing it like this work: MyInterface<XXX.YYY> by
MyImplementation() |
Can you re-run with the Gradle stack trace flag set? |
Here's the full stack-trace:
|
So, looking specifically at this stack trace, this is a bug not in this plugin, but in
|
Bonjour @JLLeitschuh Maybe you just need to upgrade ktlint? |
Update: I don't really understand whether it's released or not |
I have the same problem. Is there any update? |
Hello @JLLeitschuh I'm blocked again by this issue |
ktlint 0.47.1 is now the default and up to 0.48.2 is supported |
Hello!
When I run
./gradlew ktlintFormat
I have the errorMy config
The text was updated successfully, but these errors were encountered: