| Summary: | Xtend editor shows an error, but running the transformation works fine | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Modeling] M2T | Reporter: | Matthieu Wipliez <matthieu.wipliez> | ||||
| Component: | Xpand | Assignee: | Project Inbox <m2t.xpand-inbox> | ||||
| Status: | CLOSED WORKSFORME | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | sebastian.zarnekow | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Created attachment 171898 [details]
Simple test case
Which metamodel-constributors did you configure in your IDE? (Project properties -> Xpand)? (In reply to comment #2) > Which metamodel-constributors did you configure in your IDE? (Project > properties -> Xpand)? None, I did not even know that this existed :-) By default only EMF Metamodels are activated, and the problem disappears if I also enable JavaBeans Metamodel. I did took the code from the Xtext FAQ though, so it might be worth mentioning this there. Updated the FAQ. |
Build Identifier: 20100610-0636 The following code: import ecore; EDataType getEcoreDataType(String name) : org::eclipse::emf::ecore::EcorePackage::eINSTANCE.getEClassifier(name) ; is erroneous according to Xtend editor because: Unknown variable, type or enumeration literal 'org::eclipse::emf::ecore::EcorePackage::eINSTANCE' even though the code appears to be valid (the transformation runs fine). Reproducible: Always Steps to Reproduce: 1. open the attachment in Eclipse 3.6 RC4