How to add web integration to existing project?(Xtext 2.9) [message #1717774] |
Wed, 16 December 2015 16:06 |
Chunbaixue Yang Messages: 20 Registered: April 2015 |
Junior Member |
|
|
Hi All,
I'm trying to add web integration to my DSL created with older version of Xtext.
I tried creating Xtext project from existing ecore models, because I only see the web integration option when creating new project.
The project seemed to be created correctly, but when I try to generate the Xtext Artifacts from my old grammar, i got errors shown like below:
Quote:1 [main] ERROR mf.mwe2.launch.runtime.Mwe2Launcher - [XtextLinkingDiagnostic: null:31 Couldn't resolve reference to JvmIdentifiableElement 'standaloneSetup'., XtextLinkingDiagnostic: null:32 Couldn't resolve reference to JvmIdentifiableElement 'loadedResource'., XtextLinkingDiagnostic: null:37 Couldn't resolve reference to JvmType 'adapter.FragmentAdapter'., XtextLinkingDiagnostic: null:38 Couldn't resolve reference to JvmIdentifiableElement 'fragment'., XtextLinkingDiagnostic: null:38 Couldn't resolve reference to JvmType 'ecore2xtext.FormatterFragment'.]
java.lang.IllegalStateException: [XtextLinkingDiagnostic: null:31 Couldn't resolve reference to JvmIdentifiableElement 'standaloneSetup'., XtextLinkingDiagnostic: null:32 Couldn't resolve reference to JvmIdentifiableElement 'loadedResource'., XtextLinkingDiagnostic: null:37 Couldn't resolve reference to JvmType 'adapter.FragmentAdapter'., XtextLinkingDiagnostic: null:38 Couldn't resolve reference to JvmIdentifiableElement 'fragment'., XtextLinkingDiagnostic: null:38 Couldn't resolve reference to JvmType 'ecore2xtext.FormatterFragment'.]
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:88)
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:78)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.main(Mwe2Launcher.java:36)
In my build.gradle, org.eclipse.emf:org.eclipse.emf.mwe2.launch is added to the dependencies, and I've done Gradle->Refresh gradle project so I don't understand why the error happened.
Anyone knows anything about this error?
Or is there a standard way to add web integration to existing project?
Thanks in advance for all your help!
Regards,
Yang
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: How to add web integration to existing project?(Xtext 2.9) [message #1719047 is a reply to message #1719041] |
Mon, 04 January 2016 17:08 |
|
as i said: you miss the dependency
.../mydslb/meta-inf/manifest.mf
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: org.xtext.example.mydslB
Bundle-Vendor: My Company
Bundle-Version: 1.0.0.qualifier
Bundle-SymbolicName: org.xtext.example.mydslB; singleton:=true
Bundle-ActivationPolicy: lazy
Require-Bundle: org.eclipse.xtext,
org.eclipse.xtext.xbase,
org.eclipse.equinox.common;bundle-version="3.5.0",
org.xtext.example.mydslA;bundle-version="1.0.0",
org.eclipse.emf.ecore,
org.eclipse.xtext.xbase.lib,
org.antlr.runtime,
org.eclipse.xtext.util,
org.eclipse.xtend.lib,
org.eclipse.emf.common
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Export-Package: org.xtext.example.mydsl.parser.antlr.internal,
org.xtext.example.mydsl.myDslB,
org.xtext.example.mydsl.scoping,
org.xtext.example.mydsl.services,
org.xtext.example.mydsl.myDslB.util,
org.xtext.example.mydsl.generator,
org.xtext.example.mydsl.validation,
org.xtext.example.mydsl,
org.xtext.example.mydsl.myDslB.impl,
org.xtext.example.mydsl.serializer,
org.xtext.example.mydsl.parser.antlr
Import-Package: org.apache.log4j
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
|
|
|
|
Powered by
FUDForum. Page generated in 0.03416 seconds