Community
Participate
Working Groups
Created attachment 251168 [details] Minimal example metamodel Given an example metamodel (attached), if we create the following query definition: import "http://foo" import "http://www.eclipse.org/emf/2002/Ecore" @Surrogate(feature = "derived") pattern fooDerived(foo: Foo, value: EString) { Foo.notDerived(foo, notDerived); value == eval(notDerived.toUpperCase); } Pattern fooDerived has an error: Error building generic query specification The Error Log contains multiple instances of the following exception for multiple fragments in the query definition resource: org.eclipse.xtext.xbase.resource.BatchLinkableResource - Don't resolve expressions during indexing!
Created attachment 251169 [details] Exception Stack Trace Stack trace attached.
Strangely, the error does not occur on the first save, just afterwards.
IncQuery commit: 622fdd7
Should be fixed in master. I turned off the generic loading support for surrogates entirely; it caused lots of nasty side-effects.
The fix is confirmed to work.
As comment #5 described, this issue is already fixed.