Xtend editor does not see methods generated from IncQuery patterns until restart [message #1401209] |
Tue, 15 July 2014 05:35  |
Eclipse User |
|
|
|
Hi all,
When trying to use pattern by IncQuery and Xtext together, we have found a strange issue related to accessing the IncQuery-generated code from an Xtend file.
From an EMF-IncQuery pattern, several classes and a method is generated using the model inferrer. When accessing classes/methods already existing when the Xtend editor is opened, everything works as expected.
However, if a new pattern is created, the Xtend editor does not see the new methods until the Xtend editor is restarted; on the other hand, the newly generated classes are available from start.
Does anyone have any idea what might we be doing wrong? I have no idea what to check with regards to our generator...
Thanks,
Zoltán
|
|
|
|
Re: Xtend editor does not see methods generated from IncQuery patterns until restart [message #1402898 is a reply to message #1402891] |
Fri, 18 July 2014 05:33   |
Eclipse User |
|
|
|
Hi Christian,
sorry for not being clear; I am reasonably sure I did something unexpected for Xtext in EMF-IncQuery, but I have no idea what it is. Regardless, I have created an example IncQuery project that shows this issue (it requires the latest EMF-IncQuery 0.8 release, available from http://eclipse.org/incquery).
If you uncomment the second pattern from the eiq file, while the xtend editor is already open, the queryGroup.test2 call cannot be created as it does not see the new method from the queryGroup file. However, the query specification generated from the same new pattern is available (see the second commented out line in the Xtend file).
Again, I am mostly interested in some idea what might be going wrong - I really have no idea what might have I been missing.
Thanks for your help,
Zoltán
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.28039 seconds