An IntelliJ-Plugin for MMT (under development).
Plugin on IntelliJ Marketplace: https://plugins.jetbrains.com/plugin/11450-mmt/
Documentation for Endusers: https://uniformal.github.io//doc/applications/intellij/index.html#usage-of-the-sidekick
Clone the repository
Open the cloned repository in IntelliJ as an IntelliJ project (just open, do not import!)
Confirm to autoimport the Gradle setup. If not prompted, open build.gradle
and click the appearing import button (screenshot)
If asked, setup the Scala SDK. Preferably to the same version as used in MMT: go to UniFormal/MMT src/build.sbt @ devel, search for "scalaVersion". Currently, it's 2.12.9. You may need to download that first in the dialog IntelliJ shows you.
The plugin uses GrammarKit to specify a grammar. You still need to generate the resulting lexer and parser:
./docs/how-to-generate-grammar-things.png
MMTLexer
: ./docs/how-to-fix-generated-grammar-thing.png
See ./docs/how-to-test-plugin.png
.
Change MMT.requiredVersion
in Plugin.scala
accordingly to required MMT version.
Change release notes section in build.gradle
by completely overwriting the old release notes
The old ones are still saved with the previously published plugin on the IntelliJ plugin marketplace.
Copy gradle.properties.template
in the same folder to gradle.properties
and configure its contents.
Run publishPlugin
Gradle task, e.g. from within the IntelliJ Gradle Plugin GUI.