Plugins
The term plugin can refer to different things: A plugin solution is a language aspect that you can use to integrate your code with the MPS IDE functionality. The preferred way is to create a custom plugin solution instead which provides the same functionality. When you export your languages, you can also create plugins that others can install. In this case, the term plugin refers to IntelliJ IDEA plugins. You can install other plugins such as the Java plugin or a Markdown plugin in IntelliJ IDEA the same way you install MPS plugins. They use the same mechanisms from the IntelliJ platform. This page answers only general questions about plugins. You can find more information about plugins in Plugins which deals with the plugin aspect.
Where can you use a created language?
Use them in MPS or a custom IDE based on MPS (a so-called RCP). You need to create a build script, so you can export your plugins as real IntelliJ plugins that others can install. To ship all the plugins together with a custom branding, create an RCP. It has the advance that it can be provided to the end users as a single download or preinstalled on his computer. He doesn't have to install plugins himself through the market place or other storage locations and also doesn't have to deal with dependencies between plugins.
Are MPS languages often used as plugins in IntelliJ IDEs instead of MPS itself? (an IntelliJ IDEA plugin, not custom RCP)
The MPS community uses this functionality only sparingly or not at all. Most of the time, developers create custom RCPs for the end users.
How can you find plugins on the JetBrains marketplace usable in MPS?
Searching for the word MPS ⧉ in all categories should do the trick.
Why do many IntelliJ plugins don't work with MPS?
Many of these plugins operate on the lines in text files. MPS uses a projectional editor, which is incompatible with regular text editors. It doesn't use a document model or PSI ⧉ because MPS models are not text-based. Plugins that don’t officially support MPS can interfere with certain features of MPS (e.g., find usages might not work while using a plugin).
Are there any general-purpose plugins for MPS from the community?
Have a look at the plugin section of mps.rocks ⧉.
Which kinds of plugins are there?
- Two kinds of MPS plugins ⧉ (Specific Languages' blog)
- MPS plugins vs. IDEA plugins ⧉ (Specific Languages' blog)
How do I turn off notifications for fatal errors?
Add idea.fatal.error.notification=disabled
to idea.properties ⧉.
Are there existing projects regarding MPS on the web?
Look at deployment options for MPS, this list, and WebMPS ⧉ by JetBrains.
- Web-based projectional editing is moving forward ⧉ (Specific Languages' blog)
- MPSServer and WebEditKit ⧉ (Specific Languages' blog)
How do you translate every part of MPS?
You can install a language pack ⧉ for IntelliJ-based projects. A complete translation of MPS is not feasible because some parts are hard coded. There are also known bugs with extended characters (MPS-31835) and Unicode ⧉ if you want to use special characters. The article Localizing an IntelliJ Plugin ⧉ contains further information.
Can you get information about an MPS installation via an HTTP request?
Getting information is possible through the IntelliJ Platform REST API ⧉: Send a GET request (or enter it into the browser address bar): http://localhost:63342/api/about?more=true ⧉. Ensure that you don’t have IntelliJ opened simultaneously, as it has the same API. Example output:
How can you compare two nodes?
- Select them in the logical view, right-click → Compare two nodes.
- Use the language com.mbeddr.mpsutil.nodediff:
- Select the first node: Set as First Node in Diff.
- Select the second node: Show Diff with First Node.
How do I access the current project from anywhere?
- How to get the current project from anywhere ⧉ (Specific Languages' blog)
jetbrains.mps.module.ModuleClassLoaderIsNullException: ClassLoader of module XY could not be found.
Make sure to avoid setting the solution kind to none.