MPS beta XML files generation

Hello,

At first, I want to congratulate MPS team with MPS beta version. But what's happened with XML files generation? I'm using jetbrains.mps.xml (with jetbrains.mps.xmlInternal and jetbrains.mps.xmlSchema) in generator. When "Generate text" context menu item clicked in solution model, text "Can't generate text from XXX.xml" displayed for each model concept.

0
3 comments
Avatar
Permanently deleted user

Hello Dmitry. Thank you for congratulating us with beta.

Could you send me a project in which you are unable to generate text? (my email is kostik@jetbrains.com) I will take a look and try to fix it.

0
Avatar
Permanently deleted user

I've taken a look at your project. In order to make generation of text possible, you need to add:

  • jetbrains.mps.gtext/<no name> generator to depend on generators section of your generator properties
  • main . *    <    [ jetbrains.mps.gtext/<no name> : * ] mapping constraint to mapping constraints section of your generator properties

You need to do it since you use jetbrains.mps.xml. This language generates to jetbrains.mps.gtext which in turn generates to plain text.



Attachment(s):
genprops.png
0
Avatar
Permanently deleted user

hi


Thank you for your assistance!

regards,

surya

0

Please sign in to leave a comment.