XPAND and XSD adapter [message #498084] |
Sat, 14 November 2009 11:31 |
Marco Messages: 216 Registered: August 2009 |
Senior Member |
|
|
Hi,
To isolate a problem with namespace I created a minimalistic project, and now even without namespace. And it seems that suddenly nothing works anymore.
The template editor shows errors for all types and elements that they are not resolvable. But the Reader can read the xml and the Generator processes the first 2 elements (root and entity) but then fails with TheName of entity.
INFO: Loading XSDSchema from 'ns1.xsd'
Nov 14, 2009 12:09:04 PM org.eclipse.xtend.typesystem.xsd.builder.OawXSDEcoreBuilder initEPackage
INFO: Creating EPackage 'ns1' from XSDSchema 'file:/.../ns1.xsd' (null)
Nov 14, 2009 12:09:05 PM org.eclipse.emf.mwe.core.container.CompositeComponent internalInvoke
INFO: XMLReader: Loading XML file entity.xml
Nov 14, 2009 12:09:05 PM org.eclipse.emf.mwe.core.container.CompositeComponent internalInvoke
INFO: DirectoryCleaner: cleaning directory 'src-gen/mypackage'
Nov 14, 2009 12:09:05 PM org.eclipse.emf.mwe.core.container.CompositeComponent internalInvoke
INFO: Generator: generating 'templates::main::Root FOR model' => src-gen
Nov 14, 2009 12:09:05 PM org.eclipse.xtend.expression.AbstractExpressionsUsingWorkflo wComponent invokeInternal
SEVERE: Error in Component of type org.eclipse.xpand2.Generator:
EvaluationException : Couldn't find type or property 'TheName'
templates::main.xpt[162,7] on line 11 'TheName'
templates::main.xpt[75,28] on line 6 'EXPAND entity FOREACH entity'
[23,38] on line 1 'EXPAND templates::main::Root FOR model'
For easy reproducing I have uploaded the project to http://drop.io/9t38ntm
Most probably I am blind again. This project is so simple and still I can't see what is wrong.
br,
Marco
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04637 seconds