viatra / EMF-IncQuery

This repository is only kept for historic reasons. All development happens on eclipse.org
http://eclipse.org/viatra
13 stars 4 forks source link

Import declarations not working after Eclipse start #174

Closed istvanrath closed 12 years ago

istvanrath commented 12 years ago

This is an annoying issue that I have demonstrated on the 2012.06.04 meeting live: after my Eclipse has started, it cannot build the school example, stating that the http://school.ecore import cannot be resolved.

I can only fix this issue by entering a "fake" import, then pressing ctrl-space and then deleting everything and saving. Perhaps, adding a generation phase that will force the initialization of the package registry solve this issue?

cmark commented 12 years ago

@istvanrath, can you check whether the issue still holds?

In my Eclipse the dependencies are resolved correctly. I have tried two scenarios: 1. EIQ checked out as projects, runtime Eclipse works correctly. 2. EIQ installed into a new Eclipse (used the ci update site), resolving imports still works correctly (school was installed into host as well).

ujhelyiz commented 12 years ago

I reproduced the issue, and possibly also fixed it. A similar problem is solved in the Xtext editor for grammar files similarly, but their code had to be adapted.

ujhelyiz commented 12 years ago

Still reproducible - sorry for the spamming.

istvanrath commented 12 years ago

Today, while debugging the testing framework with @abelhegedus, we have realized that this issue is very probably caused by the good old "EMF does not regenerate plugin.xml after ecore has changed" behavior, which has already bitten us a number of times. In here, I have fixed this issue after which I cannot reproduce this problem anymore.

ujhelyiz commented 12 years ago

Nice catch. :D