Repository navigation
Turn the IntelliJ plugin's searchable options off with the platform plugin's own switch - #776
Merged
Merged
Conversation
…lugin's own switch The build turned searchable options off by disabling the buildSearchableOptions task. Since IntelliJ Platform Gradle Plugin 2.20.0 (master has 2.20.1 since #770), prepareJarSearchableOptions reads a directory under build/ that only buildSearchableOptions creates; before, it read that task's temporaryDir, which Gradle creates when it is asked for. With the task disabled, every build of the plugin failed: A problem was found with the configuration of task ':lang:intellij-plugin:prepareJarSearchableOptions' (type 'PrepareJarSearchableOptionsTask'). Input file does not exist: property 'inputDirectory' specifies directory '.../lang/intellij-plugin/build/tmp/buildSearchableOptions' which doesn't exist Master's CI builds without the lang build (includeBuildLang=false), so it did not see this. intellijPlatform.buildSearchableOptions, set from the same -Plsp.buildSearchableOptions property, makes the platform plugin skip buildSearchableOptions, prepareJarSearchableOptions and jarSearchableOptions together. The property's declaration moves above the intellijPlatform block that now reads it. Validated: :lang:intellij-plugin:buildPlugin with those three tasks SKIPPED, and :lang:intellij-plugin:test, 261 tests, 0 failures, 0 skipped.
ggleyzer
approved these changes
Nov 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Since #770 bumped the IntelliJ Platform Gradle Plugin from 2.19.0 to 2.20.1, the XTC IntelliJ plugin no longer builds when the
langbuild is included:lang/intellij-plugin/build.gradle.ktsturns searchable options off by disabling thebuildSearchableOptionstask. 2.20.0 "route[s] task outputs to dedicatedbuildDirectorylocations in ...BuildSearchableOptionsTask,PrepareJarSearchableOptionsTask... eliminating dependencies on tasktemporaryDir" (changelog). Gradle created a task'stemporaryDirwhenever it was asked for, so before 2.20 the directory existed even with the task disabled. Now onlybuildSearchableOptionscreates it.Master's CI builds with
includeBuildLang=false, so it did not catch this. #693's CI, which includeslang, did.Fix
Set the platform plugin's own switch,
intellijPlatform { buildSearchableOptions = ... }, from the same-Plsp.buildSearchableOptionsproperty. It makes the plugin skipbuildSearchableOptions,prepareJarSearchableOptionsandjarSearchableOptionstogether. The property's declaration moves above theintellijPlatformblock that now reads it.-Plsp.buildSearchableOptions=truestill turns them on.Validation
./gradlew :lang:intellij-plugin:buildPlugin :lang:intellij-plugin:test -PincludeBuildLang=true -PincludeBuildAttachLang=true: the three searchable-options tasks are SKIPPED,buildPluginsucceeds, and the plugin's 29 tests pass with 0 skipped. The same change on #693 passes its 261 IntelliJ plugin tests.