problem to start code generation

556 views
Skip to first unread message

fritze foppel

unread,
Oct 18, 2013, 11:04:21 AM10/18/13
to yakind...@googlegroups.com

Hi,
I have some trouble to start the code generation (c code).
Everytime I try to trigger the code generation I get the following Error:

An internal error occurred during: "Execute SCT Genmodel default.sgen".
org.eclipse.emf.ecore.impl.EObjectImpl cannot be cast to org.yakindu.sct.model.sgraph.Statechart

default.sgen is automatically generated and looks like this ("HMI" is highlighted with an error):

GeneratorModel for yakindu::c {

    statechart HMI {                  --> "
Couldn't resolve reference to EObject 'HMI'."
        feature Outlet {
            targetProject = "libHMI"
            targetFolder = "src-gen"
        }
    }
}


The project structure is shown in the snapshot (see attachment). The according statemachine contains no errors or warnings.

The following Software is installed:
  Xtext Examples    2.4.3.v201309030823    org.eclipse.xtext.examples.feature.group    Eclipse Modeling Project
  Xtext GMF Integration (XGI)    2.1.1.201307251000    de.itemis.xtext.utils.gmf.feature.group    itemis AG
  Xtext JFace Integration (XJI)    2.1.1.201307251000    de.itemis.xtext.utils.jface.feature.group    itemis AG
  Xtext Redistributable    2.4.3.v201309030823    org.eclipse.xtext.redist.feature.group    Eclipse Modeling Project
  YAKINDU Base    2.1.1.201307251000    org.yakindu.base.feature.group    yakindu.org
  YAKINDU SCT Generator C    2.1.1.201307251303    org.yakindu.sct.generator.c.feature.group    yakindu.org
  YAKINDU SCT Generator Java    2.1.1.201307251303    org.yakindu.sct.generator.java.feature.group    YAKINDU
  Yakindu Statechart Tools (SCT) 2    2.1.1.201307251303    org.yakindu.sct.feature.group    yakindu.org
  Yakindu Statechart Tools (SCT) 2 SDK    2.1.1.201307251303    org.yakindu.sct.sdk.feature.group    yakindu.org

Any help would be appreciated.
Fritze




snap2.png
Message has been deleted

andreas

unread,
Oct 18, 2013, 11:30:38 AM10/18/13
to yakind...@googlegroups.com
Hi Fritze,

it seems that no Xtext nature is attached to your project. This project nature is required to get the linking stuff done.
Select your project in the project explorer and choose "Configure - Add Xtext Nature" from the context menu. After that, you should
do a clean build to the project to update the xtext index. Maybe this solves your problem...

Best regards,

Andreas


2013/10/18 fritze foppel <j...@schaddo.de>

For some reason the attachment is corrupted ...


--
You received this message because you are subscribed to the Google Groups "YAKINDU User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to yakindu-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Mit freundlichen Grüßen,

            Andreas Mülder

fritze foppel

unread,
Oct 19, 2013, 8:14:41 AM10/19/13
to yakind...@googlegroups.com, a.mu...@googlemail.com
This solved the problem.

Many Thanks.
Fritze
Reply all
Reply to author
Forward
0 new messages