{"action":"created","issue":{"url":"https://api.github.com/repos/mondo-project/mondo-hawk/issues/24","labels_url":"https://api.github.com/repos/mondo-project/mondo-hawk/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/mondo-project/mondo-hawk/issues/24/comments","events_url":"https://api.github.com/repos/mondo-project/mondo-hawk/issues/24/events","html_url":"https://github.com/mondo-project/mondo-hawk/issues/24","id":121258248,"number":24,"title":"Cannot start Hawk after adding Capella metamodels and stopping Hawk","user":{"login":"bluezio","id":46504,"avatar_url":"https://avatars.githubusercontent.com/u/46504?v=3","gravatar_id":"","url":"https://api.github.com/users/bluezio","html_url":"https://github.com/bluezio","followers_url":"https://api.github.com/users/bluezio/followers","following_url":"https://api.github.com/users/bluezio/following{/other_user}","gists_url":"https://api.github.com/users/bluezio/gists{/gist_id}","starred_url":"https://api.github.com/users/bluezio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bluezio/subscriptions","organizations_url":"https://api.github.com/users/bluezio/orgs","repos_url":"https://api.github.com/users/bluezio/repos","events_url":"https://api.github.com/users/bluezio/events{/privacy}","received_events_url":"https://api.github.com/users/bluezio/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mondo-project/mondo-hawk/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"kb634","id":9589109,"avatar_url":"https://avatars.githubusercontent.com/u/9589109?v=3","gravatar_id":"","url":"https://api.github.com/users/kb634","html_url":"https://github.com/kb634","followers_url":"https://api.github.com/users/kb634/followers","following_url":"https://api.github.com/users/kb634/following{/other_user}","gists_url":"https://api.github.com/users/kb634/gists{/gist_id}","starred_url":"https://api.github.com/users/kb634/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kb634/subscriptions","organizations_url":"https://api.github.com/users/kb634/orgs","repos_url":"https://api.github.com/users/kb634/repos","events_url":"https://api.github.com/users/kb634/events{/privacy}","received_events_url":"https://api.github.com/users/kb634/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2015-12-09T14:47:09Z","updated_at":"2015-12-17T18:14:19Z","closed_at":"2015-12-14T18:36:38Z","body":"@szarnyasg is trying to use Hawk with models conforming to the [Capella] metamodels, and is having issues when registering the metamodels. I tried registering them manually using the Eclipse UI for local and remote indexes, by adding all the .ecore files at once: most of them are registered fine, but Hawk complains about inter-metamodel dependencies a few times. (We later noticed that the Capella metamodels depend on the [KitAlpha] metamodels as well). I told him to sort all .ecore files according to their mutual dependencies: this is tedious but otherwise should work.\r\n\r\nWhat is strange, however, is that if I register the Capella .ecore files and stop Hawk, I can't start Hawk again: it will get stuck with a \"Registering metamodels\" state. @kb634, could you look into this?\r\n\r\nWe should also think about how to simplify the registration of these complex metamodels: if we select a collection of .ecore files at once, shouldn't Hawk at least retry registration after it's done a first pass through the list of .ecore files? If could essentially work like this:\r\n\r\n1. pending = selected\r\n2. Go through pending and remove entries that are registered successfully, tracking their number.\r\n3. If pending is not empty and we registered at least one metamodel last time we were in 2, go back to 2.\r\n4. Otherwise, we're done.\r\n\r\n[Capella]: http://git.polarsys.org/c/capella/capella.git/tree/core/plugins/org.polarsys.capella.core.data.gen/model\r\n[KitAlpha]: https://www.polarsys.org/projects/polarsys.kitalpha"},"comment":{"url":"https://api.github.com/repos/mondo-project/mondo-hawk/issues/comments/165535802","html_url":"https://github.com/mondo-project/mondo-hawk/issues/24#issuecomment-165535802","issue_url":"https://api.github.com/repos/mondo-project/mondo-hawk/issues/24","id":165535802,"user":{"login":"bluezio","id":46504,"avatar_url":"https://avatars.githubusercontent.com/u/46504?v=3","gravatar_id":"","url":"https://api.github.com/users/bluezio","html_url":"https://github.com/bluezio","followers_url":"https://api.github.com/users/bluezio/followers","following_url":"https://api.github.com/users/bluezio/following{/other_user}","gists_url":"https://api.github.com/users/bluezio/gists{/gist_id}","starred_url":"https://api.github.com/users/bluezio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bluezio/subscriptions","organizations_url":"https://api.github.com/users/bluezio/orgs","repos_url":"https://api.github.com/users/bluezio/repos","events_url":"https://api.github.com/users/bluezio/events{/privacy}","received_events_url":"https://api.github.com/users/bluezio/received_events","type":"User","site_admin":false},"created_at":"2015-12-17T18:14:19Z","updated_at":"2015-12-17T18:14:19Z","body":"Could you open another ticket for this cyclic dependency issue, by the way? Just to keep things tidy :-)."}}