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.orgAny help would be appreciated.
Fritze