-
Notifications
You must be signed in to change notification settings - Fork 166
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
Changes in .editorconfig file are ignored on subsequent reruns #456
Comments
What is your Would be nice to create some project that reproduces the issue. |
Thats the project where I get this issue: https://github.com/G00fY2/quickie |
@G00fY2 I've just tried your project, and it works fine for me. You probably ran into some internal caching of ktlint, hence were facing the old error, even though the imports_layout has been changed to the correct one. Just to reinforce, this is how it should be defined in the ij_kotlin_imports_layout=*,java.**,javax.**,kotlin.**,^ and then |
Hmm, yeah you are right. Has to be some caching issue. I just updated everything and the CI builds run fine. I also used the correct import regex (copy and pasted it from ktlint readme), not sure why the one in my description is different. Thanks! And sorry for bringing this up. |
Actually it is a bug in the plugin and how it handles KtLint |
Just FYI: as workaround you have to stop Gradle daemon (so it will kill workers) after any |
Thanks @Tapchicoma
|
After updating to ktlint 0.41.0 I get:
I know about the changes made regarding pinterest/ktlint#1018 and tried different configurations in my .editorconfig. But non of these seems to work:
Not sure if this is an incompatibility with the plugin oder a general ktlint issue.
Plugin Version: 10.0.0
Ktlint Version: 0.41.0
Gradle Version: 6.8.3
Android Studio: 4.1.2
The text was updated successfully, but these errors were encountered: