dclareForMPS icon indicating copy to clipboard operation
dclareForMPS copied to clipboard

Temporary target model import not resolved after restart

Open enikao opened this issue 5 years ago • 4 comments

In my "DetailsBack" example, I create the temporary model details with Declare. Then, we have a new dependency: coarse depends on details.

After a restart, this dependency cannot be resolved (I presume because details model id changed).

enikao avatar Oct 22 '19 09:10 enikao

I noticed that your details model is not under VC. Hence, it is created again if you start from the state without local changes. When I restart after the details model is created I do not see the error anymore.

WimBast avatar Oct 22 '19 10:10 WimBast

details model is temporary, so it should not under VC, right?

enikao avatar Oct 22 '19 10:10 enikao

A, I overlooked that. Dependencies from persistent to non-persistent models does not work. Do you think that is necessary? The example works fine without it.

WimBast avatar Oct 22 '19 11:10 WimBast

I think it automatically adds the dependency as soon as we create the Override inside coarse, because we refer to a StringDetail in details.

We could argue that in this case you should persist details, but then we don't really need to keep track of the Overrides in a different place.

enikao avatar Oct 22 '19 11:10 enikao