Closed jakhog closed 7 years ago
Seems like dependent models (e.g. datatypes.thingml) using import and not properly put in the Resource Set when saving, breaking some references (e.g. property cannot resolve their types). We should make sure we add all dependent resource when saving.
I don't know if it's relevant, but I don't want to save the import "..."
statement. I would like it to save the full ThingML model so that it can be loaded again from this single file.
Is the import "..."
statement part of the ThingML model, or is it simply a keyword for the parser to also include other files while parsing the file?
I guess this is solved now? If not, re-open
Well, yes, kind-of. I was trying to save .thingml-files with imports, which you can now do with flattening.
But saving the original models still doesn't work. But I'm completely fine with that :metal:
After loading a ThingMLModel, saving it to a file (either ThingML or XMI) using
ThingMLCompiler.saveAs...(model, file)
, I get the following error and output: