How to trigger "Preview Generated Text" using MPS Plugin?

Currently, I'm generating a XML file out of my DSL in MPS. This XML file is then consumed by a python script which then generates C# code.

My goal is to automate this pipeline using MPS plugin. So ideally would be an extra button in MPS that triggers the whole pipeline (XML generation -> Python -> Final C# code)

Any ideas how this can be achieved? I'm aware of plugin development in MPS, but I'm missing docs on how to trigger my pipeline...

0
5 comments

Hello. Could you please explain what do you mean by "MPS Plugin"? I seems I don't get all details of the question clearly.

0

Hello Maria,

by the "MPS Plugin" I mean the IntelliJ's possibility to build own plugin using "MPS Plugin language". I hope this makes it more clear.

0

Well, not yet. Let me then share an info around the topic and you can tell me if it works for your or not.

In MPS you can create your dsl (that is generated into text xml). You can distribute your dsl as a plugin to MPS (or a standalone application on top of MPS) or as a plugin to IntelliJ IDEA. On the latter case you can use your dsl in an IDEA project together with other text languages.

Besides dsl creation you can also create extenstion to MPS IDE using jetbrains.mps.lang.plugin and jetbrains.mps.lang.plugin.standalone languages.

And I can suggest you one community meeting where you also can try to look for a help https://specificlanguages.com/services/mps-office-hours/.

0

Ok, let be try simplify this further...

MPS or any other Intellij IDE contains the "Run" button, right? 

https://www.google.com/imgres?imgurl=https://i.stack.imgur.com/wqMOa.png&imgrefurl=https://stackoverflow.com/questions/71108845/intellij-does-not-have-run-button-when-running-springboot-applications&h=1860&w=3840&tbnid=C8bRTUink7MAnM&tbnh=156&tbnw=323&usg=AI4_-kReA3qFDcAdIx296y0sgWPwrOTn0w&vet=1&docid=rJYhBl037No9fM 

So, basically I need another Run button, which is mapped to my requirement "triggers the whole pipeline (XML generation -> Python -> Final C# code)"

 

 

 

 

0

Hi. I tried to look for an answer a bit. I was offered to use MPS plugin language + Make facets or to call generators from java code. I didn't find documentation for the latter option and was offered to look into javadoc for GenerationFacade. And this is seems some documentation about Make facets https://www.jetbrains.com/help/mps/2022.2/howto-integrating-into-the-mps-make-framework.html.

And you seems to be already aware of MPS plugin language.

0

Please sign in to leave a comment.