tools_gradle_intellij_plugin_faq.md: cleanup

This commit is contained in:
Yann Cébron 2022-06-13 18:03:47 +02:00
parent 177f49eaf9
commit 4dd42a7ae8

View File

@ -114,7 +114,7 @@ buildSearchableOptions.enabled = false
</tab> </tab>
</tabs> </tabs>
As a result of disabling building searchable options, the configurables that your plugin provides won't be searchable in the Settings dialog. As a result of disabling building searchable options, the [configurables](settings.md) that your plugin provides won't be searchable in the <menupath>Settings/Preferences</menupath> dialog.
### How to show log file of sandbox instance ### How to show log file of sandbox instance
@ -155,13 +155,13 @@ prepareSandbox {
### Task 'setupDependencies' not found in root project ### Task 'setupDependencies' not found in root project
The [`setupDependencies`](tools_gradle_intellij_plugin.md#setupdependencies-task) task is designed to fetch the target IDE dependency from the IntelliJ Repository in the after-sync Gradle phase, but only when working in the IntelliJ IDEA to make the IntelliJ SDK classes resolved and code completion available. The [`setupDependencies`](tools_gradle_intellij_plugin.md#setupdependencies-task) task is designed to fetch the target IDE dependency from the IntelliJ Repository in the after-sync Gradle phase, but only when working inside IntelliJ IDEA to make the IntelliJ SDK classes resolved and code completion available.
To achieve that, the [`gradle-idea-ext-plugin`](https://github.com/JetBrains/gradle-idea-ext-plugin) is used, which alters the IDEA project's <path>.idea/workspace.xml</path> file making the [`setupDependencies`](tools_gradle_intellij_plugin.md#setupdependencies-task) task activated on `after_sync` event. To achieve that, the [`gradle-idea-ext-plugin`](https://github.com/JetBrains/gradle-idea-ext-plugin) is used, which alters the IDEA project's <path>.idea/workspace.xml</path> file making the [`setupDependencies`](tools_gradle_intellij_plugin.md#setupdependencies-task) task activated on `after_sync` event.
Unfortunately, this entry remains even after you disable the `org.jetbrains.intellij` in the project the [`setupDependencies`](tools_gradle_intellij_plugin.md#setupdependencies-task) task won't be resolved appropriately, which produces the following exception: Unfortunately, this entry remains even after disabling the `org.jetbrains.intellij` plugin in a project the [`setupDependencies`](tools_gradle_intellij_plugin.md#setupdependencies-task) task won't be resolved appropriately, which produces the following exception:
``` ```
Task 'setupDependencies' not found in root project 'projectName'. Task 'setupDependencies' not found in root project 'projectName'.
``` ```
To fix that, manually edit the <path>.idea/workspace.xml</path> file removing mentioned entry, go to the Gradle ToolWindow, select the Task Activation action from the context menu of the root project item, and remove it. To fix that, manually edit the <path>.idea/workspace.xml</path> file removing mentioned entry, go to the <control>Gradle</control> tool window, select the <menupath>Tasks Activation</menupath> action from the context menu of the root project item, and remove it.