Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Which type of problem is this?(I want to translate PLC to C++. i use the 4 diac ST xtext file. but here come some problem)
Which type of problem is this? [message #1862297] Thu, 23 November 2023 02:49 Go to next message
xinyuan rao is currently offline xinyuan raoFriend
Messages: 2
Registered: November 2023
Junior Member
Caused by: java.lang.IllegalStateException: Problem parsing 'file:/D:/学习资料/毕设/PLC/org.xtext.ST/../org.xtext.ST/src/org/xtext/ST/Myst.xtext':
XtextLinkingDiagnostic: null:22 Couldn't resolve reference to EPackage 'org.eclipse.fordiac.ide.model.datatype'.
XtextLinkingDiagnostic: null:23 Couldn't resolve reference to EPackage 'org.eclipse.fordiac.ide.model.libraryElement'.
XtextLinkingDiagnostic: null:34 Couldn't resolve reference to EClassifier 'VarDeclaration'.
XtextLinkingDiagnostic: null:40 Couldn't resolve reference to EClassifier 'DataType'.
XtextLinkingDiagnostic: null:47 Couldn't resolve reference to EClassifier 'DataType'.
XtextLinkingDiagnostic: null:221 Couldn't resolve reference to EClassifier 'AdapterDeclaration'.
XtextLinkingDiagnostic: null:221 Couldn't resolve reference to EClassifier 'VarDeclaration'.
XtextLinkingDiagnostic: null:237 Couldn't resolve reference to EClassifier 'VarDeclaration'.
TransformationDiagnostic: null:34 Cannot create type without declared package. (ErrorCode: UnknownMetaModelAlias)
at org.eclipse.xtext.xtext.generator.XtextGeneratorLanguage.initialize(XtextGeneratorLanguage.java:229)
at org.eclipse.xtext.xtext.generator.StandardLanguage.initialize(StandardLanguage.java:167)
at org.eclipse.xtext.xtext.generator.XtextGenerator.initialize(XtextGenerator.java:189)
at org.eclipse.xtext.xtext.generator.XtextGenerator.checkConfigurationInternal(XtextGenerator.java:157)
at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent2.checkConfiguration(AbstractWorkflowComponent2.java:23)
at org.eclipse.emf.mwe.core.lib.Mwe2Bridge.preInvoke(Mwe2Bridge.java:69)
at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.preInvoke(AbstractWorkflowComponent.java:208)
at org.eclipse.emf.mwe2.runtime.workflow.AbstractCompositeWorkflowComponent.preInvoke(AbstractCompositeWorkflowComponent.java:31)
at org.eclipse.emf.mwe2.runtime.workflow.Workflow.run(Workflow.java:20)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:103)
... 4 more
Re: Which type of problem is this? [message #1862298 is a reply to message #1862297] Thu, 23 November 2023 04:30 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14699
Registered: July 2009
Senior Member
Hi what do you do in your grammar and workflow regarding that package respectively it's genmodel

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Which type of problem is this? [message #1862302 is a reply to message #1862298] Thu, 23 November 2023 10:31 Go to previous messageGo to next message
xinyuan rao is currently offline xinyuan raoFriend
Messages: 2
Registered: November 2023
Junior Member
I just import the package org.eclipse.fordiac.ide.model
it shows Couldn't resolve reference to EPackage
Re: Which type of problem is this? [message #1862305 is a reply to message #1862302] Thu, 23 November 2023 13:24 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14699
Registered: July 2009
Senior Member
but what is your intention there? what is the ns of the package?
do you use something like

language = StandardLanguage {
referencedresource="platform:/resource/<metamodelplugin>/model/<metamodel>.genmodel"

in the workflow


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Xtext 2.33.0 is available
Next Topic:Failed to execute goal org.eclipse.xtend:xtend-maven-plugin:2.32.0:compile
Goto Forum:
  


Current Time: Wed Jul 24 23:47:55 GMT 2024

Powered by FUDForum. Page generated in 0.03570 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top