Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 399357

Summary: IncQuery gives confusing error message when an EPackage is resolvable through both EIQGEN and Registry
Product: [Modeling] Viatra Reporter: Istvan Rath <istvanrath>
Component: QueryAssignee: Zoltan Ujhelyi <zoltan.ujhelyi>
Status: RESOLVED WONTFIX QA Contact: Istvan Rath <istvanrath>
Severity: normal    
Priority: P3    
Version: oldinquery   
Target Milestone: 1.0 M3   
Hardware: All   
OS: All   
Whiteboard:

Description Istvan Rath CLA 2013-01-29 02:37:06 EST
If an EPackage is resolved through both the EIQGEN file as well as the EPackage Registry (which is a valid case when e.g. Xtext is used, which requires a manual registration of workspace EPackages through a context menu, see Joost van Pinxten's quoted remark below), the IncQuery tooling shows a confusing error message. Even though the error is shown, the system functions correctly.

Joost van Pinxten's remark:
"I remember now that the Xtext MWE2 workflow also requires me to explicitly locate the locations of the genmodels. In order to develop my Xtext grammar and my models in the same workspace I need to use both (i.e. explicit registration of the genmodel and runtime registration of the DSL EPackages)."
Comment 1 Abel Hegedus CLA 2013-01-29 03:18:09 EST
I have added this issue as blocked by https://bugs.eclipse.org/bugs/show_bug.cgi?id=398821

Furthermore, IF we can decide that an EPackage in the registry was registered by hand, we can be smarter about what errors/warnings to show.
Comment 2 Istvan Rath CLA 2013-02-13 02:59:50 EST
This is really annoying. The error should be reduced to a warning.
Comment 3 Istvan Rath CLA 2013-02-13 03:02:44 EST
I have committed a modification to reduce the error to a warning.
Comment 4 Istvan Rath CLA 2013-05-21 09:56:38 EDT
As per http://wiki.eclipse.org/EMFIncQuery/DeveloperMeetingMinutes/Meeting20130521, we agreed on the following action plan:

- EIQGEN will not be modified significantly for 0.7
- Zoli will adjust the tooling to direct the users away from using EIQGEN (by default)
- Zoli will document the proper way of using EIQGEN
Comment 5 Zoltan Ujhelyi CLA 2013-06-18 09:13:36 EDT
Quick links removed to genmodel wizard/genmodel page removed from new project wizard. Postponing documentation to RC.
Comment 6 Zoltan Ujhelyi CLA 2013-06-25 08:51:13 EDT
Added documentation to new wiki page about various resolution mechanisms: http://wiki.eclipse.org/EMFIncQuery/UserDocumentation/QueryLanguage#References_to_Ecore_metamodels

Postponing remaining tasks to the future.
Comment 7 Istvan Rath CLA 2014-04-03 10:50:58 EDT
Assigning more complex issues to 0.8-M4. Please discuss if feasible or needs to be pushed to post-0.8.
Comment 8 Zoltan Ujhelyi CLA 2014-04-08 05:26:20 EDT
It would be nice, but I have no time for proper adjustments in the next months. Postponing.
Comment 9 Istvan Rath CLA 2014-04-24 04:32:16 EDT
I'm expecting this to be addressed for 0.9.
Comment 10 Istvan Rath CLA 2015-02-23 11:44:35 EST
Identifying long term goals for 1.0.
Comment 11 Zoltan Ujhelyi CLA 2015-06-01 08:45:15 EDT
Remaning tasks are only relevant if metamodel is (1) installed and (2) the plugin.xml-based registration does not work.