MPS 2.5

MPS models in IDEA look great!
A guide how to use IDEA integration will probably be available with the release, but I was impatient to try it.
I was able to create java models (class, interface, etc..), - is it possible to create models in other languages as well? I've added some languages in the MPS facet, but no other root kinds became available..
8 comments
Thanks for the screencast.
A bit fast to follow..

I've got the error message during the build: cannot calculate relative path: No common path element found for 'O:/soft/mps-2.5/plugins/mpsbuild/languages/jetbrains.mps.ide.build.jar!/build' and 'C:/Users/ikar/MPSProjects/SimpleIDEAPlugin'
Fixed by moving project to the same drive as MPS.

Copied the idea plugin to idea.. can see it in the list of plugins.
In Model Properties > Imported Models, I cannot add the language - it's not in the list!

The generated plugin looks ok.. attaching jars from it.

SimpleIDEAPlugin.jar (13KB)
SimpleIDEAPlugin-src.jar (14KB)
0
Is it possible to reference java classes in the java+mps module from mps models? I was not able to..
0
Hi, Igor!
It is not possible with MPS 2.5. In this release you can only add references from MPS models to library classes available in this java module or use generated java code from normal java.

In the next version (MPS 3.0) we are going to support the possibility to reference java source code from MPS model.
0
Hi!

It's hard to say what's going wrong by these jars only. I believe the language was packed properly and the problem you are having now was caused by incorrect plugin.xml content or improper build layout...

To quickly check everything is ok with language package you can copy SimpleIDEAPlugin.jar into IDEA_HOME/plugins/mps-core/languages/ folder (the folder with all the languages distributed with mps plugin) and restart IDEA. If you will be able to use your language in this case this means language was packed properly, is functional and the problem is definitely in packaging logic. In this case you can delete IDEA_HOME/plugins/mps-core/languages/SimpleIDEAPlugin.jar and try rebuilding this plugin to make it working separately.

While correcting build script used to build this plugin I suggest you to check if following elements were specified properly:
1.
plugin.png

2.
build_structure.png
0
I had a few typos (languageLibrary for LanguageLibrary and 'language' for 'languages')
Now I can add the language to the model's languages, and can add new root 'Properties', but it just displays <abstract concept>... (it's ok in mps)
0
I've figured that out. JDK 7 is giving me hard time, again.
Please, add "-source 1.5 -target 1.5" to ant task options, so that generated plugins are understood by IDEA.
0
I've got a serious problem with MPS 2.5. I can't create any model in a language with this version. This behavior is documented in MPS-15123 but it seems not to get much attention.<table width="100%" cellspacing="0" border="0"><tbody><tr><td align="left"><table width="80%" cellspacing="5" cellpadding="0" border="0"><tbody><tr><td><table width="100%" cellspacing="0" cellpadding="0" border="0"><tbody> <tr><td> <a href="http://youtrack.jetbrains.net/issue/MPS-15123">MPS-15123</a> Cant create model - no model root for selected namespace.</td></tr> <tr><td>Need a way to create a new model root in this case right from the dialog. </td></tr> <tr><td>Major | Usability Problem | Open | Mihail.Muhin</td></tr> </tbody></table></td></tr></tbody></table></td></tr></tbody></table>
0

Please sign in to leave a comment.