typhon-project / typhondl

http://www.typhon-project.org
Eclipse Public License 2.0
1 stars 0 forks source link

[BUG] Not possible to have two TyphonDL models in one project #75

Closed MarieSaphira closed 3 years ago

MarieSaphira commented 3 years ago

Describe the bug

If I have two folders in my Project each containing a TyphonDL model (with main model file, database files and dbtypes.tdl), the script generation does not use the right references. Instead of e.g.

xsi:type=\"typhonDL:DB\" name=\"RelationalDatabase\" type=\"//@elements.6\">

the reference to a .tdl file in a different folder is used:

xsi:type=\"typhonDL:DB\" name=\"RelationalDatabase\">    <type href=\"../TyphonDL/dbTypes.tdl#//@elements.0\"/>

This leads to an IndexOutOfBounds Exception here

Expected behavior

Either how an error when there is more than one DL model in a project or only use DL resources contained in the same folder.

Reported by @patrickneubauer

patrickneubauer commented 3 years ago

This is (also) the case for generated database files (i.e. generated by TyphonDL if the user does not select existing database files).

MarieSaphira commented 3 years ago

seems to still happen