Find references across languages? [message #1108124] |
Fri, 13 September 2013 07:22  |
Eclipse User |
|
|
|
Hi,
Playing around with Ctrl-Shift-G (Find References) many expected references were missing from the search result. Looking closer it seemed that all references from another DSL into the current file were missing.
Is this supposed to work?
Is there s.t. I need to configure for this to work?
Some of these references are directly resolved via imports, others are handled by custom code in my scope provider. Should search find all these?
thanks,
Stephan
PS: This is in Xtext 2.4.3
|
|
|
|
Re: Find references across languages? [message #1110417 is a reply to message #1110010] |
Mon, 16 September 2013 17:45  |
Eclipse User |
|
|
|
Hi Jan,
Quote:Are you using Xbase? ...
References are collected during indexing. Did you have any build problems? Did you disable the automatic build? ...
I've also seen people deactivating the BuilderIntegrationFragment in their languages' workflows. That also disables indexing.
no to all.
Quote:Maybe a clean build solves the problem.
the good news: right now I see all expected search results, the bad news: I can only guess that some intermediate clean build fixed this.
Knowing that it should work, I'll keep an eye on it, and if the problem comes back, I'll try a clean build to fix.
Thanks,
Stephan
PS: on a mildly related note: trying to associate icons to search results, I tried all steps mentioned in the help document, but only this approach helped for the cross-language scenario:
@Override
public Object image(IReferenceDescription referenceDescription) {
EReference ref = referenceDescription.getEReference();
if (ref == MyPackage.eINSTANCE.getMyElem_SomeFeature())
return "TgtElem.gif";
// more like this ...
return super.image(referenceDescription);
}
Is that indicating some malfunctioning, or could the help document be outdated in this respect?
Also the label text is constantly "<unnamed>" where the help document mentions that the indexed name be used by default.
Within one of the involved languages things appear to work, mh..
|
|
|
Powered by
FUDForum. Page generated in 0.42954 seconds