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:
- Generate the things, see
./docs/how-to-generate-grammar-things.png
- Fix the generated
MMTLexer
:./docs/how-to-fix-generated-grammar-thing.png
- Generate the things, see
See ./docs/how-to-test-plugin.png
.
-
Change
MMT.requiredVersion
inPlugin.scala
accordingly to required MMT version. -
Change release notes section in
build.gradle
by completely overwriting the old release notesThe old ones are still saved with the previously published plugin on the IntelliJ plugin marketplace.
-
Copy
gradle.properties.template
in the same folder togradle.properties
and configure its contents. -
Run
publishPlugin
Gradle task, e.g. from within the IntelliJ Gradle Plugin GUI.