-
Notifications
You must be signed in to change notification settings - Fork 50
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
Lint task sometimes does not re-run when editorconfig changes #327
Comments
This problem happens to me all of the time. I don't know where the editorconfig file is cached but |
I stumbled across this problem too upgrading to kotlinter-gradle 3.15.0 -> Ktlint 0.49.1.
Unfortunately this doesnt do the trick for me. Really strange. |
I also accidentally stumbled upon this trying out different configurations (i.e. changing Anyways, for me it helped stopping the Gradle daemon in between runs or start |
|
Yeah, this is clearly a bug, but I need to find time to track it down and fix it. PRs welcome if someone else sees the solution. |
I'm unable to create a PR, but I can link the root cause: kotlinter-gradle/src/main/kotlin/org/jmailen/gradle/kotlinter/tasks/ConfigurableKtLintTask.kt Lines 31 to 35 in 2023cbb
if should be dropped. The exact failing scenario (with a bit of explanation) can be found on kotlinlang slack
|
Thanks @mateuszkwiecinski I can definitely make a PR when I get back home from the holidays. |
Although we are supposed to consider the editorconfig file contents a build input and re-run lint tasks when it changes, somehow this isn't happening sometimes. It often leads users to perceive that one of their editorconfig settings is not working.
Reference #324 and #321
The text was updated successfully, but these errors were encountered: