Replies: 1 comment
|
It is stable, but maybe you have a clash with some tool that you are using. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I'm migrating an Android app from Java to Kotlin in Android Studio, and I am very glad to have discovered ktfmt! I use it in the "google internal" mode, and have the corresponding .editorconfig created and enabled. Everything but one detail is working perfectly.
The exception is import ordering. Every time I hit ctrl-alt-L, the import order changes unpredictably between the several "standard" ordering -- pure alphabetical, java.* at the bottom, and so forth. I basically have to keep hitting ctrl-alt-L until I randomly get the one I want (pure alphabetical). Sometimes I can see the order change in one way, then a moment later in another, so there may be some sort of race condition between two competing formatters going on.
I have searched Settings for everything that mentions "import", but can't find any setting that seems pertinent to this problem. So I'm hoping someone here might recognize this problem, or provide ideas on how to solve it.
All reactions