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
Tests that need the JavaScript plugin never run: give them a test task with the plugin enabled #2007
Tests that need IntelliJ's JavaScript plugin never run, neither in CI nor locally:
CI's default test legs run IntelliJ IDEA Community, which has no JavaScript plugin.
On IntelliJ IDEA Ultimate and the unified IntelliJ IDEA (CI's 2026.3 leg), build.gradle.kts disables the JavaScript and CSS plugins in the test sandbox for every test, since ci: test on IntelliJ 2025.3 and 2026.3 too, on Linux #1931:
They would otherwise take over the .js, .ts and .css files that other tests give to LSP4IJ.
So DAPExpressionCodeFragmentJavaScriptTest, added by #2001 for #1998, returns at its first line in every run (Language.findLanguageByID("JavaScript") == null) and passes without testing anything. Its comment says it runs with platformType=IU and the bundled JavaScript plugin; while the sandbox disables the plugin, it doesn't.
What a run with the plugin shows
Before #2001 was merged, I ran it locally with that disabledPlugins line commented out, on IntelliJ IDEA Ultimate 2024.2 with the bundled JavaScript plugin, together with a broader check of 15 Evaluate-style expressions:
when resolving the references of 7 of the 15 expressions, and in the highlighting passes for 2 of them
none
The fragment
DAPExpressionCodeFragment
JSFileImpl
DAPExpressionCodeFragmentJavaScriptTest
passes
So the test does catch #1998 when the plugin is there. #1763 made the fragments physical, which made #1998 frequent.
Suggestion
Give the tests that need the JavaScript plugin a test task of their own, with a sandbox in which JavaScript and CSS stay enabled, for example through the IntelliJ Platform Gradle Plugin's custom testing tasks (intellijPlatformTesting). Then:
run only those tests in it, by a naming convention or a JUnit tag, and leave them out of test;
run it in CI on a leg whose IDE bundles the JavaScript plugin, such as 2026.3;
make such a test fail, not return, when the plugin is missing, so that a sandbox without it shows up as a failure.
Activity
test: run the tests that need the JavaScript plugin in a test task of…