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
After upgrading the ktfmt IDEA plugin to 1.1.0.51, configured to use the Kotlinlang style, the Reformat code action behaves differently than when running ktfmt v0.51 directly. Specifically, it moves the closing parenthesis of multiline function calls to the previous line:
Expected:
foo(
1,
2
)
Actual:
foo(
1,
2)
Is this expected, or is there a bug in the IDEA plugin?
The text was updated successfully, but these errors were encountered:
I can't fully reproduce what you describe, @akheron. I get your "Actual" output both when running ktfmt v0.51 directly (well, in my case via the Spotless Gradle plugin) and via the IDEA plugin, so at least both outputs are consistent.
However, I would like to reiterate your question to the ktfmt developers, is this new output expected? I see no mentions of the change in the changelog, and it seems to go against Kotlinlang conventions.
I'm running ktfmt via the Gradle plugin com.ncorti.ktfmt.gradle, and it indeed seems to still use an older version of ktfmt. Sorry for the confusion! I opened a new issue #490 about the formatting change.
After upgrading the ktfmt IDEA plugin to 1.1.0.51, configured to use the Kotlinlang style, the Reformat code action behaves differently than when running ktfmt v0.51 directly. Specifically, it moves the closing parenthesis of multiline function calls to the previous line:
Expected:
Actual:
Is this expected, or is there a bug in the IDEA plugin?
The text was updated successfully, but these errors were encountered: