-
Notifications
You must be signed in to change notification settings - Fork 503
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
ClassCastException in NoLineBreakBeforeAssignmentRule #693
Comments
I could not reproduce it using command-line ktlint executable. Could you try it as well on this file? Which OS are you using? |
I'm on MacOS Catalina 10.15.2. Just tried running command line ktlint and it worked fine. So this means it's probably a Spotless plugin bug, not ktlint, right? |
It is still could be ktlint issue, as spotless as far as I know does not use command line variant, but Worth investigation - maybe more input checks need to be added to |
Adding in the bottom of the callstack:
|
I am seeing this when running |
…here is no space after assignment Fixes pinterest#693
…here is no space after assignment Fixes pinterest#693
I'm using spotless plugin with ktlint.
Spotless plugin version: 3.26.0
ktlint version: 0.36.0
Kotlin code that reproduces the issue:
The important part is
=f()
. It seems that lack of space after=
causes the issue because it works fine after adding a space.Crash log:
I used following command to run ktlint:
./gradlew spotlessApply
The text was updated successfully, but these errors were encountered: