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 jarSearchableOptions task is exhibiting a cache miss caused by its sandboxDir input property being set to an absolute path. Since sandboxDir is a String property, the path it is set to should either be relative, or, if changes to the contents of the directory affect the outcome of the task, sandboxDir should be converted to a DirectoryProperty with relative path normalization, so that its contents can be properly tracked by Gradle.
Custom value comparison showing the sandboxDir input difference is caused by an absolute path
Steps to reproduce
In a project using gradle-intellij-plugin, run a clean build executing the jarSearchableOptions task. Clone or copy the project into another file system location, and run the same build again. The jarSearchableOptions task in the second build should come from cache, but it does not.
Gradle IntelliJ Plugin version
1.17.3
Gradle version
8.7-rc-1
Operating System
None
Link to build, i.e. failing GitHub Action job
No response
The text was updated successfully, but these errors were encountered:
I noticed that on the main branch, the JarSearchableOptionsTask has been restructured to be SandboxAware, and that the sandboxDir property no longer exists - looks like it has been split into multiple @Internal DirectoryPropertys. In that case, not sure if you will want to fix the existing implementation, but based upon the updated implementation, perhaps sandboxDir should just be marked @Internal?
tylerbertrand
changed the title
JarSearchableOptionsTask cache miss
Incorrect JarSearchableOptionsTask Caching Behavior
Apr 1, 2024
What happened?
The
jarSearchableOptions
task is exhibiting a cache miss caused by itssandboxDir
input property being set to an absolute path. SincesandboxDir
is aString
property, the path it is set to should either be relative, or, if changes to the contents of the directory affect the outcome of the task,sandboxDir
should be converted to aDirectoryProperty
with relative path normalization, so that its contents can be properly tracked by Gradle.Relevant log output or stack trace
sandboxDir
input differencesandboxDir
input difference is caused by an absolute pathSteps to reproduce
In a project using
gradle-intellij-plugin
, run a clean build executing thejarSearchableOptions
task. Clone or copy the project into another file system location, and run the same build again. ThejarSearchableOptions
task in the second build should come from cache, but it does not.Gradle IntelliJ Plugin version
1.17.3
Gradle version
8.7-rc-1
Operating System
None
Link to build, i.e. failing GitHub Action job
No response
The text was updated successfully, but these errors were encountered: