Downloading MPS plugin for IDEA
The documentation says that a zip file with plugin code for MPS into IDEA is available on the download page:
but there is only a .dmg download containing MPS there for Macs. Where can one download zip file containing MPS plugins?
Please sign in to leave a comment.
Please update the instructions on how to install the MPS plugin into IDEA.
The documentation on the MPS plugin seems to be over 10 years old and the plugin download is not available.
The plugin can be downloaded at https://plugins.jetbrains.com/search?products=idea_ce&search=MPS or using the plugin manager in IntelliJ IDEA (version up to 2023.2).
Hi Vaclav,
The plugins from the link you sent would not install on my version of the Intellij.
I am running Intellij Idea 2023.2.5. I also tried with version 2023.3.2 with similar failure results.
The web page you mentioned (https://plugins.jetbrains.com/search?products=idea_ce&search=MPS) tells me the plugin cannot be installed on either of my intellij versions.
Using version 2023.2.5, I was able to install the plugins from the plugin manager (Settings > Plugins).
For version 2023.3, the plugins do not show up on the plugin marketplace.
I installed MPS Core, MPS Build Language, MPS Testing, MPS Version Control Support., MPS BaseLanguage Support plugins into 2023.2 using the plugin manager (settings > plugins)
They seemed to install fine. But they do not seem to get loaded when Intellij restarts.
After the restart, I cannot create an MPS project in Intellij Idea like I can from MPS 2023.2 (using File > New Project … > <no MPS project option> )
When I look at the Intellij Idea logs, I see some error related to loading the MPS plugins.
2024-01-16 14:58:17,777 [ 4789] WARN - jetbrains.mps.classloading.ModulesWatcher - 1 modules are marked as invalid roots for class loading out of 598 modules [totally in the repository]:
2024-01-16 14:58:17,777 [ 4789] WARN - jetbrains.mps.classloading.ModulesWatcher - jetbrains.mps.ide.vcs.platform [solution] was marked invalid for class loading: The dependency in jetbrains.mps.ide.vcs.platform [solution] cannot be resolved {Default} f57286e3-4e19-4d8d-8045-3900761f6530(jetbrains.mps.git4idea.stubs)
2024-01-16 14:58:17,777 [ 4789] INFO - jetbrains.mps.classloading.ModulesWatcher - Totally 1 modules are marked invalid for class loading:
….
2024-01-16 14:58:16,250 [ 3262] INFO - #c.i.s.p.SettingsSyncPluginManager - Plugins jetbrains.mps.ide.java are incompatible with current IDE/version. Won't change their sync status in plugins.json
I also tried with Intellij IDEA version 2023.3.2 using the java components extracted from the MPS 2023.3 EAP distribution. I copied some of the folders from the MPS 2023.3 EAP distribution (MPS Core, MPS Testing, etc) to my local plugins folder for Intellij 2023.3.2. I get the same results: mismatch in version.
I also cloned the MPS source code repo to see if I could build the plugins and install them directly in my Intellij 2023.3 but could not figure out how to build the plugins without the version incompatibilities. I was able to build MPS but could not make the plugins work into my Intellij versions.
Are there any instructions on how to build the plugins from source and install them in whatever version of Intellij we are currently using? It seems the version compatibility constraints between Intellij and MPS are too restrictive considering MPS releases do not follow Intellij releases.
Hello Marcel,
please see my comments inlined.
> The web page you mentioned (https://plugins.jetbrains.com/search?products=idea_ce&search=MPS) tells me the plugin cannot be installed on either of my intellij versions.
That is perhaps because IDEA 2023.3 was detected by the webpage. There is currently no version of the MPS plugins for IDEA 2023.3. You can choose a version for IDEA 2023.2 though.
> After the restart, I cannot create an MPS project in Intellij Idea like I can from MPS 2023.2 (using File > New Project … > <no MPS project option> )
Right, the plugin only allows you to consume MPS language in IDEA, not to create them. Basically, you add an MPS facet to an IDEA module, which allows you to import languages and create root nodes in the module. The details can be found here: https://www.jetbrains.com/help/mps/2023.3/using-mps-inside-intellij-idea.html#trybaselanguageinsideintellijidea
If you are building the plugins from sources, make sure the plugins' plugin.xml file contains "<idea-version since-build="233.1" until-build="241.1"/>" to make it compatible with IDEA 2023.3.
Best regards,
Vaclav