i have some trouble with dependencies between models (within same solution, but i think that doesn't matter here) when generating:
Model1 contains nodes that are being reduced/transformed to j.m.b.s.ClassConcept-instances during generation. The nodes have a Type can be used from within baseLanguage.
Model2 contains direct instances of j.m.b.s.ClassConcept-instances, which reference the nodes in Model1.
When the generator finished, the reference from the j.m.b.s.ClassConcept-instances in Model2 doesn't link to the (generated) j.m.b.s.ClassConcept-instances in Model1 (btw: if i put all into the same model it works perfectly!).
To drag the problem down (or to find a suitable workaround) i created a simpler example:
Created Test-Solution with two models containing an j.m.b.s.ClassConcept-instance each, let's say Test1 (ModelA) and Test2 (ModelB) whereas Test1 references Test2. If i now "Make that Solution" it actually works, but the transient Test1 in ModelA@1_0 still reference the Test2 from the Solutions ModelB! Shouldn't transient Test1 in ModelA@1_0 reference transient Test2 in ModelB@1_0??
I think, that is actually what makes the sample from the beginning NOT WORK: The ClassConcepts from Model2 still reference the unreduced/untransformed nodes from Solutions Model1 which obviously are no ClassConcept-instances (though they are correctly generated into Model1@x_x)!
Is it a bug in MPS or am i doing something wrong? Is there a solution in shipped MPS-languages where something similar is done and i can have a look at it? Do i have to label the transformation