diffplug / diffplug/spotless

Spotless Gradle plugin doesn't respect .editorconfig changes when using daemon

Open
#1,924 9 comments 22 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
5.6k
Forks
559
Avg merge
1d 13h
Merged PRs (30d)
34

Description

- [x] summary of problem
Steps to reproduce:

- enable Gradle daemon
- run `./gradlew spotlessCheck` with some failing rule.
- disable said rule in `.editorconfig`
- run `./gradlew spotlessCheck` again.

Expected: check passes.
Actual: check fails again.

Adding a `--no-daemon` command line parameter to second invocation resolves the issue; which hints that daemon somehow caches file contents, or doesn't treat it as an input to Gradle task.

- [x] Gradle or Maven version
Gradle 8.4, 8.5

- [x] spotless version
Spotless 6.23.1

- [x] operating system and version
macos Sonoma, 14.1.1

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.