Search code examples
eclipsedslxtexteclipse-emfecore

Creation of new Xtext Project gives an error out-of-the-box in Eclipse DSL tools


I have downloaded Eclipse DSL Tools, Neon.2 version. And I create new Xtext Project.

New Xtext Project

I click finish and I get bunch of projects in my workspace:

enter image description here

However, I have an error out of the box with GenerateL.mwe2 file:

enter image description here

Error:

A value of type 'org.eclipse.xtext.xtext.generator.XtextGenerator' can not be assigned to the feature org.eclipse.emf.mwe2.runtime.workflow.AbstractCompositeWorkflowComponent.addComponent(org.eclipse.emf.mwe2.runtime.workflow.IWorkflowComponent)

Also there is an error in build.properties files saying this:

Bundle org.eclipse.emf.mwe.utils cannot be resolved

Here is the file:

source.. = src/,\
           src-gen/,\
           xtend-gen/
bin.includes = .,\
               META-INF/,\
               plugin.xml
additional.bundles = org.eclipse.xtext.xbase,\
                     org.eclipse.xtext.common.types,\
                     org.eclipse.xtext.xtext.generator,\
                     org.eclipse.emf.codegen.ecore,\
                     org.eclipse.emf.mwe.utils,\
                     org.eclipse.emf.mwe2.launch,\
                     org.eclipse.emf.mwe2.lib,\
                     org.objectweb.asm,\
                     org.apache.commons.logging,\
                     org.apache.log4j,\
                     com.ibm.icu

How do I solve these errors?


Solution

  • Make sure your target platform is correctly loaded and contains the missing plugins Window -> Preferences -> Search for Target platform. Use Reload and Edit buttons to make sure it's refreshed and to inspect the contents. If it is still missing you may need to reinstall the dependencies