You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The spotless IDE hook is incompatible with the configuration cache, see ragurney/spotless-intellij-gradle#18 for an example and stacktrace. Workaround for now is to specify --no-configuration-cache when using spotlessIdeHook.
The VSCode plugin is trying to fix this by parsing and detecting the version, another way is to test it on first run, detect the error, then try again without that flag.
Would #1274 resolve this issue, if the configuration cache is natively supported and the current workaround with JvmLocalCache is removed?
We have several large projects which require a few minutes in the configuration phase. A fast IDE hook which makes use of the cache and doesn't invalidate it would be nice.
With 7.0.0.BETA2 I get following error (running spotlessIdeHook with configuration cache enabled):
spotlessApply` of type `org.gradle.api.DefaultTask`: cannot serialize object of type 'com.diffplug.gradle.spotless.SpotlessTaskImpl', a subtype of 'org.gradle.api.Task', as these are not supported with the configuration cache.
Activity
nedtwigg commentedon Jan 18, 2022
Initially, both the vscode and intelliJ plugins fixed this by adding
--no-configuration-cacheto their command lines:org.gradle.unsafe.configuration-cache=truein agradle.propertiessomewhereUnfortunately, for Gradle < 6.6, this flag is unrecognized and throws an exception
The VSCode plugin is trying to fix this by parsing and detecting the version, another way is to test it on first run, detect the error, then try again without that flag.
lehmanju commentedon May 6, 2024
Would #1274 resolve this issue, if the configuration cache is natively supported and the current workaround with
JvmLocalCacheis removed?We have several large projects which require a few minutes in the configuration phase. A fast IDE hook which makes use of the cache and doesn't invalidate it would be nice.
nedtwigg commentedon May 23, 2024
Yes, #1274 will fix this.
lehmanju commentedon Sep 19, 2024
With 7.0.0.BETA2 I get following error (running spotlessIdeHook with configuration cache enabled):
Make IDE hook work with configuration cache, take 2 (#2308, revises #…
nedtwigg commentedon Oct 24, 2024
Should be fixed in
7.0.0.BETA4, let me know if you have any issues.