Problems generating standalone IDE in MPS 2024.1.1
Hello,
I have JetBrains MPS 2024.1.1 and have gone through the “Shapes” tutorial. I wanted to try to generate a standalone IDE for that language and have followed the instructions in https://www.jetbrains.com/help/mps/build-language.html.
I have got to the point where I am running the ShapesDistribution build script and I get the following error:
Sure enough, that directory does not exist, although it does exist in D:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2024.3\lib\jna
I even tried editing the buildDistribution.xml to remove the “tar” task, since I'm only interested in Windows, but I get:
BUILD FAILED
C:\Users\ctb\MPSProjects\Shapes\buildDistribution.xml:74: D:\Program Files\JetBrains\MPS 2024.1\bin\win does not exist.
Can anyone suggest how to get this working?
Thanks,
Carl
Please sign in to leave a comment.
You need to download the generic distribution of MPS (it contains native libraries for all supported platforms), unzip it and point the mps_home variable to its location. By default, when running generated Ant scripts MPS will set mps_home to point to the running (platform-specific) instance but this doesn't work when building a standalone IDE.
Hello.
Thanks for the reply. Using the generic distribution I did manage to generate a standalone IDE, which I was able to use to create a solution using the Shape language. However, when I try to build the solution, I get the following error:
The exception for this is:
Thanks,
Carl
I believe this indicates some kind of misconfiguration that's causing MPS to try to build modules that it has loaded from JARs. I don't know specifically what the problem could be though.
For example, you may have added the
build/artifacts
directory as a library to the project.Hello,
I didn't think I had done anything like that. However, I have created a new project in the “Shapes” IDE and it now appears to compile the Java.
But, I can't run the application within the IDE. Under the “Run” menu, the “Run” item (Shift+F10) is greyed out. The other “Run” item (Alt-Shift-F10) allows me to open the configuration window, but I can't seem to add anything
I don't know if there is an issue with how I have created the “Shapes” IDE or if there is a different problem.
Thanks,
Carl