Trying tutorial with EAP - GenerationFailureExceptions

I'm trying EAP MPS with Tutorial (I know, quite crazy idea), and I got stuck early after start with my Generator. After I changed CalculatorImpl into property macro (with node.name in the inspector) class itself seems fine (no red errors), but after hitting Preview Generated Text on my Calculator from the sandbox, following errors occur:

-- was input: [root] Calculator "MyCalc"[3832439670964626400] in sk.naive.mps.test.calculator.sandbox@1_0
-- was template: [root] ClassConcept "CalculatorImpl"[6867500896379691567] in sk.naive.mps.test.calculator.generator.template.main@generator
-- was rule: [_$attribute] PropertyMacro <no name>[6867500896379694018] in sk.naive.mps.test.calculator.generator.template.main@generator


What exactly is wrong here? What should I do otherwise?
3 comments
Comment actions Permalink
(These lines only show the state at the moment of failure. The original error appears just before them in the list)

It may happen if an exception was thrown from a query in your generator, or if your generator was not regenerated in time (after changes).
0
Comment actions Permalink
Thank you for your reply. I thought "Rebuild Project" is enough, but it seems I missed "Make Generator" action too. Actual errors before those I posted already were:

Saving model sk.naive.mps.test.calculator.generator.template.main@generator
Saving model sk.naive.mps.test.calculator.generator.template.main@generator
couldn't find method 'propertyMacro_GetPropertyValue_4318961297517371437' in 'sk.naive.mps.test.calculator.generator.template.main.QueriesGenerated' : TRY TO GENERATE model 'r:92f42d65-d163-4718-9640-32d639494245(sk.naive.mps.test.calculator.generator.template.main@generator)'
cannot evaluate property macro : java.lang.NoSuchMethodException: couldn't find method 'propertyMacro_GetPropertyValue_4318961297517371437' in 'sk.naive.mps.test.calculator.generator.template.main.QueriesGenerated'

(Copy from Messages ignores logger names or whatever it is in the [...], as well as timestamps.)

I was confused what to make when (and wrongly assumed that Project makes generators too), but now I'm good to go on. :-) Thank you very much for your push.
0
Comment actions Permalink
Little note about copy from Messages, I just found that Ctrl+C copies everything and only the menu item from contextual menu copies selectively. Strange duality, but not a real problem now. ;-)
0

Please sign in to leave a comment.