Commit eeab1bd
committed
test(build): load Java plugin companion plugins in 262 test sandbox
On 262 the plugin-java tests failed with the Java plugin's services
missing: JavaDirectoryService.getInstance() returned null,
ProjectJdkTable could not be cast to JavaAwareProjectJdkTableImpl, and
JarApplicationConfigurationType was not a registered run-config type.
Root cause: the whole 'Java' plugin was excluded from the test sandbox
because several bundled plugins it depends on (structure view, bookmarks,
test runner, todo, structural search, misc libraries, copyright, terminal,
XPath) were not present, and the Gradle plugin no longer resolves the
transitive bundled-plugin dependencies of a bundledPlugin() automatically
since 2.4.0 (JetBrains/intellij-platform-gradle-plugin#1930). Once a
required content module cannot resolve, the entire Java plugin — including
its impl/execution/backend modules that register those services — is
dropped.
There is no catch-all or "full IDE" test mode, so declare the companion
plugins explicitly. Kept as a single documented list (javaTestCompanionPlugins)
and guarded to platformVersion >= 262 so 251 is untouched.
Verified: full :plugin-java:test passes on both 251 and 262.
Assisted-by: Claude:claude-opus-4-81 parent ea64cf1 commit eeab1bd
1 file changed
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
48 | 66 | | |
49 | 67 | | |
50 | 68 | | |
| |||
479 | 497 | | |
480 | 498 | | |
481 | 499 | | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
482 | 504 | | |
483 | 505 | | |
484 | 506 | | |
| |||
0 commit comments