Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Temporary target model import not resolved after restart #9

Open
enikao opened this issue Oct 22, 2019 · 4 comments
Open

Temporary target model import not resolved after restart #9

enikao opened this issue Oct 22, 2019 · 4 comments

Comments

@enikao
Copy link
Contributor

enikao commented Oct 22, 2019

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).

@WimBast
Copy link
Contributor

WimBast commented Oct 22, 2019

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.

@enikao
Copy link
Contributor Author

enikao commented Oct 22, 2019

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

@WimBast
Copy link
Contributor

WimBast commented Oct 22, 2019

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.

@enikao
Copy link
Contributor Author

enikao commented Oct 22, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants