Skip to content

Latest commit

 

History

History
71 lines (47 loc) · 2.13 KB

FAQ.md

File metadata and controls

71 lines (47 loc) · 2.13 KB

How to modify JVM arguments of runIde task

runIde task is a Java Exec task and can be modified according to the documentation.

To add some JVM arguments while launching the IDE, configure runIde task as follows:

runIde {
  jvmArgs '-DmyProperty=value'
}

How to modify system properties of runIde task

Using the very same task documentation, configure runIde task:

runIde {
  systemProperty('name', 'value')
}

How to disable automatic reload of dynamic plugins

Configure runIde task as follows:

runIde {
    autoReloadPlugins = false
}

How to disable building searchable options

Building searchable options can be disabled as a task:

buildSearchableOptions.enabled = false

How disabling building searchable options affects the plugin

As a result of disabling building searchable options, the configurables that your plugin provides won't be searchable in the Settings dialog.

How to Debug

Running Gradle tasks from IntelliJ IDEA produces a Gradle run configuration which can be run in debug mode just as any other run configuration:

Debug Gradle run configuration

How do I add my a custom file inside plugin distribution

prepareSandbox task is a Sync task and can be modified accordingly. Something like following should work:

prepareSandbox {
  from('yourFile') { 
    into "${intellij.pluginName}/lib/" 
  }
}

How to configure logging

The most convenient way to see the logs of running IDE is to add a tab to Run tool window displaying the content of idea.log file:

Logs

To do this, you need to add the log file in Gradle run configuration settings:

Gradle run configuration