mbeddr.core
mbeddr.core copied to clipboard
Reference from a generated to a hand-written mbeddr module disappears during generation
How to reproduce (an example model for this can be found at https://github.com/DSLFoundry/mps-examples/tree/master/issue-reports/mbeddr-generated-module-reference-MPS-2017.1):
- Create a hand-written mbeddr module MyStandaloneModule in solution StandaloneMbeddrModuleSolution.
- Create some root concept MyRootConcept in language MbeddrModuleGeneration and a reduction rule for that concept with as target an mbeddr ImplementationModule map_MyRootConcept
- In the generator where the G template is contained, put a dependency to solution StandaloneMbeddrModuleSolution and put MyStandaloneModule into the imports of map_MyRootConcept
- Make a new solution MbeddrModuleGenerationTestSolution using language MbeddrModuleGeneration
- Make a new model with a MyRootConcept instance in MbeddrModuleGenerationTestSolution and run make
Now mbeddr will generate map_MyRootConcept, but with an #include "." where it should say #include "MyStandaloneModule.h"
It would be expected that during the transformation from ImplementationModule to GenModuleH+GenModuleC, the link to MyStandaloneModule is maintained.