Please consider editing your post and mark it as obsolete instead. Do you want to delete post?
Hey, i tried around with plaintextgen and saw this article <a href='https://blog.jetbrains.com/mps/2017/06/plugin-spotlight-generate-python-or-ruby-with-mps-plaintextgen/#remark42'>on the blog</a> and...
This is an auto-generated question from the MPS Slack community: Hey, i tried around with plaintextgen and saw this article on the blog and thought i could try that. i have a root concept, which contains content. I added a interface for the content and implemented that interface to every concept that i want to be the content of the root concept.
The root concept is called Contract as you can see in the first screenshot, which basically contains 0..n contents. the contents can be f.e. a participant, i have concepts for every 'content' being participant, action etc.
I added a plaintext gen for the Contract concept where i add the file name based on the name of the contract from the concept etc. that worked fine, but now i want to add the content to my file that i generate. when i type node.contents for the content of the contract concept there is not much i can do since the contents are coming from an interface where i havent even implemented INamedConcept since i've done so for every concept that implements the interface. I then tried the method from the blogpost, where i create a template called reduce_NAME as seen on the blogpost for reduce_Entity. However when i try that for my participant concept i get the message 'attributed cell not found'. what am i missing and/or doing wrong here and how can i simply generate text for every concept i have and add that to the generated text from my root node?