-
Clone this repo
-
Download the latest IntelliJ Community Edition snapshot, so we can compile using sbt:
sbt updateIdea
-
Open the project in IntelliJ, importing it as an SBT project.
-
OK, this is where it gets nasty... Open
.idea/modules/intellij-idris.iml
in an editor and make the following changes.- In the top-level
<module>
element, change thetype
toPLUGIN_MODULE
- On the next line insert this
<component>
element:<component name="DevKit.ModuleBuildProperties" url="file://$MODULE_DIR$/../../resources/META-INF/plugin.xml" />
- In the top-level
-
Open File > Project Structure.... For the module, change the Module SDK to be IntelliJ IDEA.
-
Go to Run > Edit Configurations... Add a Plugin run configuration.
After all that, you should be able to use the Run and Debug buttons to start an instance of IntelliJ with the plugin installed.
See NOTES.md