Thank you for taking the time to contribute to DockDockBuild!
The plugin is built using Gradle and uses [gradle-intellij-plugin][gradle-intellij-plugin] to integrate with IntelliJ Platform.
First, make sure gradle is using java 17, and not any other version.
You can run and debug DockDockBuild directly from the IntelliJ. Just go to the Gradle toolbar and select runIde:
(You can right-click on the target to run in debug mode)
This will launch a new IDE with your DockDockBuild installed.
To build the plugin run
$ ./gradlew buildPlugin
Plugin zip file will be created in build/distributions
To build & test the plugin in IDE run ./gradlew runIdea
To create a new PR please do the following:
- Fork the repo
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
The plugin uses Grammar-Kit to generate parser and lexer. Please install Grammar-Kit plugin and refer to the documentation if you want to modify grammar.
To regenerate a parser, open Makefile.bnf and press Ctrl+Shift+G (Cmd+Shift+G on Mac) To regenerate a lexer, open Makefile.flex and press Ctrl+Shift+G (Cmd+Shift+G on Mac)
Please make sure to add test to MakefileParserTest.kt for any parser modifications.
The plugin is written in Kotlin.
GNU head icon licensed under CC-BY-SA 2.0