orcc/ci-server-scripts

orcc_build error whilst generating Cal Xtext architecture

Closed this issue · 1 comments

I have followed the wiki page Orcc command line scripts. I have successfully completed step 1, and I am experiencing an error org.eclipse.emf.common.util.WrappedException: org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Value '2.10' is not legal. (platform:/resource/net.sf.orcc.cal/model/generated/Cal.genmodel, 7, 67) during step two:

$ $SCRIPTS_DIR/orcc_build $WORK_DIR ~/code/orcc-fork/orcc/eclipse/features ~/code/orcc-fork/orcc/eclipse/plugins
***START*** Fri, 01 Aug 2014 20:55:53 +0100 Build type: nightly

****************************************************************
*             Generates Cal Xtext architecture                 *
****************************************************************

~/tmp/working-dir/build.dir.nightly/plugins/net.sf.orcc.cal ~/code/ci-server-scripts
0    INFO  StandaloneSetup    - Registering platform uri '/home/rob/tmp/working-dir/build.dir.nightly/plugins'
1488 INFO  DirectoryCleaner   - Cleaning /home/rob/tmp/working-dir/build.dir.nightly/plugins/net.sf.orcc.cal/../net.sf.orcc.cal/src-gen
1489 INFO  DirectoryCleaner   - Cleaning /home/rob/tmp/working-dir/build.dir.nightly/plugins/net.sf.orcc.cal/../net.sf.orcc.cal.ui/src-gen
1490 INFO  DirectoryCleaner   - Cleaning /home/rob/tmp/working-dir/build.dir.nightly/plugins/net.sf.orcc.cal/../net.sf.orcc.cal.tests/src-gen
1603 INFO  LanguageConfig     - generating infrastructure for net.sf.orcc.cal.Cal with fragments : ImplicitRuntimeFragment, ImplicitUiFragment, GrammarAccessFragment, EMFGeneratorFragment, ParseTreeConstructorFragment, ResourceFactoryFragment, XtextAntlrGeneratorFragment, JavaValidatorFragment, ImportNamespacesScopingFragment, QualifiedNamesFragment, BuilderIntegrationFragment, GeneratorFragment, FormatterFragment, LabelProviderFragment, OutlineTreeProviderFragment, QuickOutlineFragment, JavaBasedContentAssistFragment, XtextAntlrUiGeneratorFragment, Junit4Fragment, QuickfixProviderFragment, RefactorElementNameFragment, CompareFragment
org.eclipse.emf.common.util.WrappedException: org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Value '2.10' is not legal. (platform:/resource/net.sf.orcc.cal/model/generated/Cal.genmodel, 7, 67)
    at org.eclipse.xtext.generator.ecore.EMFGeneratorFragment.getGenModel(EMFGeneratorFragment.java:606)
    at org.eclipse.xtext.generator.ecore.EMFGeneratorFragment.getSaveAndReconcileGenModel(EMFGeneratorFragment.java:712)
    at org.eclipse.xtext.generator.ecore.EMFGeneratorFragment.generate(EMFGeneratorFragment.java:234)
    at org.eclipse.xtext.generator.CompositeGeneratorFragment.generate(CompositeGeneratorFragment.java:92)
    at org.eclipse.xtext.generator.LanguageConfig.generate(LanguageConfig.java:113)
    at org.eclipse.xtext.generator.Generator.generate(Generator.java:366)
    at org.eclipse.xtext.generator.Generator.invokeInternal(Generator.java:132)
    at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invoke(AbstractWorkflowComponent.java:126)
    at org.eclipse.emf.mwe.core.lib.Mwe2Bridge.invoke(Mwe2Bridge.java:34)
    at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invoke(AbstractWorkflowComponent.java:201)
    at org.eclipse.emf.mwe2.runtime.workflow.AbstractCompositeWorkflowComponent.invoke(AbstractCompositeWorkflowComponent.java:35)
    at org.eclipse.emf.mwe2.runtime.workflow.Workflow.run(Workflow.java:19)
    at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:102)
    at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:62)
    at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:52)
    at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.run(Mwe2Launcher.java:74)
    at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.main(Mwe2Launcher.java:35)
Caused by: org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Value '2.10' is not legal. (platform:/resource/net.sf.orcc.cal/model/generated/Cal.genmodel, 7, 67)
    at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.handleErrors(XMLLoadImpl.java:77)
    at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:185)
    at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLResourceImpl.java:253)
    at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1518)
    at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1297)
    at org.eclipse.xtext.generator.ecore.EMFGeneratorFragment.getGenModel(EMFGeneratorFragment.java:604)
    ... 16 more
Caused by: org.eclipse.emf.ecore.xmi.IllegalValueException: Value '2.10' is not legal. (platform:/resource/net.sf.orcc.cal/model/generated/Cal.genmodel, 7, 67)
    at org.eclipse.emf.ecore.xmi.impl.XMLHandler.setFeatureValue(XMLHandler.java:2671)
    at org.eclipse.emf.ecore.xmi.impl.XMLHandler.setAttribValue(XMLHandler.java:2725)
    at org.eclipse.emf.ecore.xmi.impl.SAXXMIHandler.handleObjectAttribs(SAXXMIHandler.java:79)
    at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectFromFactory(XMLHandler.java:2200)
    at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectByType(XMLHandler.java:1337)
    at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createTopObject(XMLHandler.java:1475)
    at org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(XMLHandler.java:1026)
    at org.eclipse.emf.ecore.xmi.impl.XMIHandler.processElement(XMIHandler.java:77)
    at org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHandler.java:1008)
    at org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHandler.java:719)
    at org.eclipse.emf.ecore.xmi.impl.XMIHandler.startElement(XMIHandler.java:163)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:509)
    at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:745)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1363)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$ContentDriver.scanRootElementHook(XMLDocumentScannerImpl.java:1292)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3138)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:880)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:648)
    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:332)
    at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:175)
    ... 20 more
Caused by: java.lang.IllegalArgumentException: The value '2.10' is not a valid enumerator of 'GenRuntimeVersion'
    at org.eclipse.emf.codegen.ecore.genmodel.impl.GenModelFactoryImpl.createGenRuntimeVersionFromString(GenModelFactoryImpl.java:394)
    at org.eclipse.emf.codegen.ecore.genmodel.impl.GenModelFactoryImpl.createFromString(GenModelFactoryImpl.java:114)
    at org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.createFromString(XMLHelperImpl.java:1615)
    at org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.setValue(XMLHelperImpl.java:1156)
    at org.eclipse.emf.ecore.xmi.impl.XMLHandler.setFeatureValue(XMLHandler.java:2666)
    ... 45 more
17205 INFO  JavaValidatorFragment - generating Java-based EValidator API
21794 INFO  Junit4Fragment     - generating Junit4 Test support classes
21859 INFO  CompareFragment    - generating Compare Framework infrastructure
22061 INFO  Workflow           - Done.
~/code/ci-server-scripts

****************************************************************
*             Generates Java sources from Xtend                *
****************************************************************

~/tmp/working-dir/build.dir.nightly/plugins ~/code/ci-server-scripts
0    INFO  XtendBatchCompiler - No sources to compile in ''
0 [main] INFO org.eclipse.xtend.core.compiler.batch.XtendBatchCompiler  - No sources to compile in ''
mv: cannot stat ‘xtend-output/net/sf/orcc/cal/generator/CalGenerator.java’: No such file or director

This appears to happen because I am attempting to build the same orcc clone both within eclipse and also with orcc_build. I found that by running:

$ rm -rf orcc/eclipse/plugins/net.sf.orcc.cal/model/generated/
$ rm -rf orcc/eclipse/plugins/net.sf.orcc.cal/src-gen/net/

I can succesfully build orcc in headless mode. I'm closing this issue, which I put down to user error.