typhon-project / typhondl

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

Cannot generate compose file #8

Closed nemo-js closed 5 years ago

nemo-js commented 5 years ago

I am trying to generate the compose file for the following TML models: tml-models.zip Only the .xmi file is generated

All the .tdl files are generated successfully (by clicking TyphonDL > Create TyphonDL model)

Here is a picture of my workspace in case it gives you a clue worksapce

Thanks

MarieSaphira commented 5 years ago

Did eclipse ask you to convert the existing project to an Xtext-Project? I think the linking between files only works in Xtext-Projects.

nemo-js commented 5 years ago

Yes it did, but I denied because I think ML requires a modeling project. I will try to convert it and see if everything works and I will come back to you. Thanks

MarieSaphira commented 5 years ago

You can add project natures in the project properties. Maybe adding Xtext nature by hand also works? I had projects with both natures at the same time.

nemo-js commented 5 years ago

That would be perfect, I will try it. Thanks a lot

gobertm commented 5 years ago

Hi, @nemo-js How did you solve this problem? I have exactly the same one. Except that the unresolved dependencies wewre solved with adding xtext in the project properties. But still no generation of .yaml .

Thanks

nemo-js commented 5 years ago

Hello, Back then it worked by adding the xText nature, but now it stopped working for me too. I will come back as soon as I have a solution

nemo-js commented 5 years ago

Hello @MarieSaphira,

Can you think of a way we can debug why the yaml file is not generated? The folder and the model.xmi is generated successfully but the yaml not. The success dialog is also shown. I cannot find any related error in the log file.

succes_msg

I should also mention that when I test the same .xmi running the code as an Eclipse Application it works as expected.

Any help would be appreciated

davidediruscio commented 5 years ago

Maybe it's too trivial. Have you tried to refresh the workspace immediately after the generation is complete?

nemo-js commented 5 years ago

The problem is that acceleo files (.mtl) are not compiled to .emtl with Maven. Does anybody know how we can do that? Everything related I find on the Internet seems out-dated

nemo-js commented 5 years ago

I finally used ant to compile the .mtl files and copy the generated .emtl files into the maven generated jar. If you download the latest distribution, Yaml generation should work again.

MarieSaphira commented 5 years ago

Hi, sorry for not responding, I was on vaccation. Glad that you could fix the problem :)