https://kotlinlang.org logo
r

Roland Yeghiazaryan

09/30/2020, 12:54 PM
Anyone else has an issue with formatting 'when' statements after upgrading to kotlin 1.4.0+? There is a setting
Align when branches in columns
which is broken for us after the update. Please see the screenshots for actual and expected behavior.
👀 1
y

yinxiaoyu39999

10/01/2020, 7:50 AM
Yes, we have the same problem. It makes our code style inconsistent, very annoying.
m

Margarita Bobova

10/02/2020, 12:43 PM
@Roland Yeghiazaryan Thank you for pointing it out! There is issue in youtrack, feel free to vote or comment: https://youtrack.jetbrains.com/issue/KT-40701
r

Roland Yeghiazaryan

10/02/2020, 2:48 PM
Thanks!
The issues is marked as fixed, but we still have it in latest Android Studio with Kotlin 1.4.10. @Margarita Bobova
m

Margarita Bobova

11/04/2020, 11:57 AM
@Roland Yeghiazaryan What IDEA build number is installed? You can check it in “About IntelliJ”
r

Roland Yeghiazaryan

11/04/2020, 11:58 AM
Android Studio 4.1 Build #AI-201.8743.12.41.6858069, built on September 23, 2020 Runtime version: 1.8.0_242-release-1644-b3-6222593 x86_64
m

Margarita Bobova

11/05/2020, 8:35 AM
Fix for the issue is released with newer versions started with build number 203-1.4.10-release-IJ4987 🙂
r

Roland Yeghiazaryan

11/05/2020, 1:01 PM
Thanks!
2 Views