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
{{ message }}
Repository navigation
build: local test runs can read the templates of an older build, and clean doesn't clear them #2362
Locally, a test can read the bundled templates of an older build of LSP4IJ, and pass or fail against them without any sign of it. ./gradlew clean doesn't help. CI isn't affected: each run starts from a fresh checkout.
What happened
On 2026-11-30, after main (with #2333) was merged into the branch of #2336, in a worktree whose tests had run before:
Run
Result
Installer and template tests
CodeLLDBTemplateTest.testTheTemplateMapsZigFilesAndHasAZigLaunchConfiguration failed with expected:<[Launch Rust file, Launch Zig program]> but was:<[Launch Rust file]>, and BundledDebugAdapterTemplatesTest with "The template gdb is bundled"
The same, after ./gradlew clean
CodeLLDBTemplateTest still failed the same way
The same, after deleting the sandbox's system-test* folders
the 311 tests passed
The JAR in the sandbox's plugins-test had templates/dap/codelldb/launch.zig.json all along.
Cause
The IntelliJ Platform Gradle Plugin keeps the sandboxes in .intellijPlatform/sandbox/<type>-<version>/, outside build/, so that clean leaves them, with the settings of runIde.
The system-test* folders of a sandbox hold the VFS of the test IDE, which keeps what it has read of the plugin JAR from one test run to the next.
Classes aren't affected: they're loaded from the JAR itself.
Proposal
A task that deletes the system-test* folders of the test sandboxes when the plugin's resources change, run before test and testJavaScript. A test run that changes no resource keeps its caches.
clean deletes them too.
Both work with the configuration cache, through an injected FileSystemOperations and declared inputs. It's a build change, for contributors only.
Until then: delete the system-test* folders of the sandbox (not config-test* or plugins-test) when a template test fails in a way that the JAR's content contradicts.
Activity
build: delete the VFS of the test IDEs when the plugin's resources ch…
build: deleteTestSystemDirectories runs again after it left a held sl…
build: delete the VFS of the test IDEs when the plugin's resources ch…
build: deleteTestSystemDirectories runs again after it left a held sl…
build: deleteTestSystemDirectories runs again after it left a held sl…