Hi,
I'm trying to use Xtend in a Maven Plugin-Project with additional dependencies. I.e. I'm writing a maven plugin myself.
For example I added Ecore to the dependencies and want to process Ecore objects in Xtend.
However, the Xtend editor correctly compiles the Xtend file, while it seems to have problems
resolving methods of the external dependencies in the editor only (see attached screenshot). See the example below: Methods from EMF Resource
or EObject cannot be resolved. At least that are messages displayed in the Eclipse editor; I
added the respective texts as comments.
However, the Xtend builder seems to correctly build the file. The Problems view is empty. Even worse,
if I add real compile-errors like change the type of
var EList<EObject> references = e.eCrossReferences()
EList<EReference>
I get no compilation error shown in the editor but in the problems view. Respectively the generated Java
file contains an error message:
throw new Error("Unresolved compilation problems:"
+ "\nType mismatch: cannot convert from EList<EObject> to EList<EReference>");
Like this it's almost impossible to work. Is there a problem of the Editor? Strangely the external
classes are correctly resolved in general and content assist shows some methods, but not all.
Any hint? I'm using Eclipse Oxygen official release.
Added Maven Dependencies:
Am I missing smth I have to setup for Xtend? The project has the Xtext nature.