0

Infinite loop during the generation phase

In whatever I could find from other Google searches, it appears that there is an infinite loop while generating model -> generated code cycle. I am trying a very simple example, as shown in the following links:

https://code.google.com/p/mps-lwc11/wiki/lwc11step1At01
https://code.google.com/p/mps-lwc11/wiki/lwc11step2At02

My model looks like:

module Company {
  entity Employee {
    firstName : string
    lastName : string
  }
  entity Department {
    name : string
    manager : Employee
  }
}

I am making my root mapping concept to be of type, Entity here. As you can see, I can have an attribute of Entity type inside of an another Entity as a reference.

When I run the generator, I get the following error:

"failed to generate output after 10 repeated mappings".

When I see the transient models, this is what I see:


Screen Shot 2014-08-04 at 6.11.24 PM.png


Any pointers would be greatly helpful.

Regards

Amarjeet

0 comments

Please sign in to leave a comment.