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.

3 comments
Comment actions Permalink

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
Comment actions Permalink

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
Comment actions Permalink

hi


Thank you for your assistance!

regards,

surya

0

Please sign in to leave a comment.