Home » Modeling » TMF (Xtext) » XtextLinkingDiagnostic: null:39 Couldn't resolve reference to JvmType 'Generator'(Trouble updating Eclipse Java DSL project from Mars to 2022)
XtextLinkingDiagnostic: null:39 Couldn't resolve reference to JvmType 'Generator' [message #1853209] |
Thu, 23 June 2022 03:30 |
Gary Worsham Messages: 14 Registered: June 2022 |
Junior Member |
|
|
Hi everyone,
I have a Java + Xtext + Xtend project that was last worked on using Eclipse Mars I believe. Looking at Github the last time I checked something in was about 1.5 years ago but it seems a lot longer.
Anyway I'm trying to regenerate the Xtext artifacts again and getting a lot of errors in the mwe2 file.
0 [main] WARN pes.access.impl.DeclaredTypeFactory - --- xtext.common.types ---------------------------------------------------
1 [main] WARN pes.access.impl.DeclaredTypeFactory - ASM library is not available. Falling back to java.lang.reflect API.
1 [main] WARN pes.access.impl.DeclaredTypeFactory - Please note that no information about compile time constants is available.
1 [main] WARN pes.access.impl.DeclaredTypeFactory - It's recommended to use org.objectweb.asm 9.3.0 or better (Maven group id: org.ow2.asm).
1 [main] WARN pes.access.impl.DeclaredTypeFactory - --------------------------------------------------------------------------
481 [main] ERROR mf.mwe2.launch.runtime.Mwe2Launcher - [XtextLinkingDiagnostic: null:39 Couldn't resolve reference to JvmType 'Generator'., XtextLinkingDiagnostic: null:40 Couldn't resolve reference to JvmIdentifiableElement 'pathRtProject'., XtextLinkingDiagnostic: null:41 Couldn't resolve reference to JvmIdentifiableElement 'pathUiProject'., XtextLinkingDiagnostic: null:42 Couldn't resolve reference to JvmIdentifiableElement 'pathTestProject'., XtextLinkingDiagnostic: null:43 Couldn't resolve reference to JvmIdentifiableElement 'projectNameRt'., XtextLinkingDiagnostic: null:44 Couldn't resolve reference to JvmIdentifiableElement 'projectNameUi'., XtextLinkingDiagnostic: null:45 Couldn't resolve reference to JvmIdentifiableElement 'encoding'., XtextLinkingDiagnostic: null:46 Couldn't resolve reference to JvmIdentifiableElement 'language'., XtextLinkingDiagnostic: null:47 Couldn't resolve reference to JvmIdentifiableElement 'uri'., XtextLinkingDiagnostic: null:50 Couldn't resolve reference to JvmIdentifiableElement 'fragment'., XtextLinkingDiagnostic: null:50 Couldn't resolve reference to JvmType 'grammarAccess.GrammarAccessFragment'., XtextLinkingDiagnostic: null:53 Couldn't resolve reference to JvmIdentifiableElement 'fragment'., XtextLinkingDiagnostic: null:53 Couldn't resolve reference to JvmType 'ecore.EMFGeneratorFragment'., XtextLinkingDiagnostic: null:59 Couldn't resolve reference to JvmIdentifiableElement 'fragment'., XtextLinkingDiagnostic: null:59 Couldn't resolve reference to JvmType 'serializer.SerializerFragment'., XtextLinkingDiagnostic: null:60 Couldn't resolve reference to JvmIdentifiableElement 'generateStub'., XtextLinkingDiagnostic: null:64 Couldn't resolve reference to JvmIdentifiableElement 'fragment'., XtextLinkingDiagnostic: null:64 Couldn't resolve reference to JvmType 'resourceFactory.ResourceFactoryFragment'., XtextLinkingDiagnostic: null:67 Couldn't resolve reference to JvmIdentifiableElement 'fragment'., XtextLinkingDiagnostic: null:67 Couldn't resolve reference to JvmType 'parser.antlr.XtextAntlrGeneratorFragment'., XtextLinkingDiagnostic: null:74 Couldn't resolve reference to JvmIdentifiableElement 'fragment'., XtextLinkingDiagnostic: null:74 Couldn't resolve reference to JvmType 'validation.ValidatorFragment'., XtextLinkingDiagnostic: null:84 Couldn't resolve reference to JvmIdentifiableElement 'fragment'., XtextLinkingDiagnostic: null:84 Couldn't resolve reference to JvmType 'scoping.ImportNamespacesScopingFragment'., XtextLinkingDiagnostic: null:85 Couldn't resolve reference to JvmIdentifiableElement 'fragment'., XtextLinkingDiagnostic: null:85 Couldn't resolve reference to JvmType 'exporting.QualifiedNamesFragment'., XtextLinkingDiagnostic: null:86 Couldn't resolve reference to JvmIdentifiableElement 'fragment'., XtextLinkingDiagnostic: null:86 Couldn't resolve reference to JvmType 'builder.BuilderIntegrationFragment'., XtextLinkingDiagnostic: null:89 Couldn't resolve reference to JvmIdentifiableElement 'fragment'., XtextLinkingDiagnostic: null:89 Couldn't resolve reference to JvmType 'generator.GeneratorFragment'., XtextLinkingDiagnostic: null:92 Couldn't resolve reference to JvmIdentifiableElement 'fragment'., XtextLinkingDiagnostic: null:92 Couldn't resolve reference to JvmType 'formatting.FormatterFragment'., XtextLinkingDiagnostic: null:95 Couldn't resolve reference to JvmIdentifiableElement 'fragment'., XtextLinkingDiagnostic: null:95 Couldn't resolve reference to JvmType 'labeling.LabelProviderFragment'., XtextLinkingDiagnostic: null:98 Couldn't resolve reference to JvmIdentifiableElement 'fragment'., XtextLinkingDiagnostic: null:98 Couldn't resolve reference to JvmType 'outline.OutlineTreeProviderFragment'., XtextLinkingDiagnostic: null:99 Couldn't resolve reference to JvmIdentifiableElement 'fragment'., XtextLinkingDiagnostic: null:99 Couldn't resolve reference to JvmType 'outline.QuickOutlineFragment'., XtextLinkingDiagnostic: null:102 Couldn't resolve reference to JvmIdentifiableElement 'fragment'., XtextLinkingDiagnostic: null:102 Couldn't resolve reference to JvmType 'quickfix.QuickfixProviderFragment'., XtextLinkingDiagnostic: null:105 Couldn't resolve reference to JvmIdentifiableElement 'fragment'., XtextLinkingDiagnostic: null:105 Couldn't resolve reference to JvmType 'contentAssist.ContentAssistFragment'., XtextLinkingDiagnostic: null:108 Couldn't resolve reference to JvmIdentifiableElement 'fragment'., XtextLinkingDiagnostic: null:108 Couldn't resolve reference to JvmType 'parser.antlr.XtextAntlrUiGeneratorFragment'., XtextLinkingDiagnostic: null:111 Couldn't resolve reference to JvmIdentifiableElement 'fragment'., XtextLinkingDiagnostic: null:111 Couldn't resolve reference to JvmType 'junit.Junit4Fragment'., XtextLinkingDiagnostic: null:119 Couldn't resolve reference to JvmIdentifiableElement 'fragment'., XtextLinkingDiagnostic: null:119 Couldn't resolve reference to JvmType 'refactoring.RefactorElementNameFragment'., XtextLinkingDiagnostic: null:122 Couldn't resolve reference to JvmIdentifiableElement 'fragment'., XtextLinkingDiagnostic: null:122 Couldn't resolve reference to JvmType 'types.TypesGeneratorFragment'., XtextLinkingDiagnostic: null:125 Couldn't resolve reference to JvmIdentifiableElement 'fragment'., XtextLinkingDiagnostic: null:125 Couldn't resolve reference to JvmType 'xbase.XbaseGeneratorFragment'., XtextLinkingDiagnostic: null:128 Couldn't resolve reference to JvmIdentifiableElement 'fragment'., XtextLinkingDiagnostic: null:128 Couldn't resolve reference to JvmType 'templates.CodetemplatesGeneratorFragment'., XtextLinkingDiagnostic: null:131 Couldn't resolve reference to JvmIdentifiableElement 'fragment'., XtextLinkingDiagnostic: null:131 Couldn't resolve reference to JvmType 'compare.CompareFragment'.]
java.lang.IllegalStateException: [XtextLinkingDiagnostic: null:39 Couldn't resolve reference to JvmType 'Generator'., XtextLinkingDiagnostic: null:40 Couldn't resolve reference to JvmIdentifiableElement 'pathRtProject'., XtextLinkingDiagnostic: null:41 Couldn't resolve reference to JvmIdentifiableElement 'pathUiProject'., XtextLinkingDiagnostic: null:42 Couldn't resolve reference to JvmIdentifiableElement 'pathTestProject'., XtextLinkingDiagnostic: null:43 Couldn't resolve reference to JvmIdentifiableElement 'projectNameRt'., XtextLinkingDiagnostic: null:44 Couldn't resolve reference to JvmIdentifiableElement 'projectNameUi'., XtextLinkingDiagnostic: null:45 Couldn't resolve reference to JvmIdentifiableElement 'encoding'., XtextLinkingDiagnostic: null:46 Couldn't resolve reference to JvmIdentifiableElement 'language'., XtextLinkingDiagnostic: null:47 Couldn't resolve reference to JvmIdentifiableElement 'uri'., XtextLinkingDiagnostic: null:50 Couldn't resolve reference to JvmIdentifiableElement 'fragment'., XtextLinkingDiagnostic: null:50 Couldn't resolve reference to JvmType 'grammarAccess.GrammarAccessFragment'., XtextLinkingDiagnostic: null:53 Couldn't resolve reference to JvmIdentifiableElement 'fragment'., XtextLinkingDiagnostic: null:53 Couldn't resolve reference to JvmType 'ecore.EMFGeneratorFragment'., XtextLinkingDiagnostic: null:59 Couldn't resolve reference to JvmIdentifiableElement 'fragment'., XtextLinkingDiagnostic: null:59 Couldn't resolve reference to JvmType 'serializer.SerializerFragment'., XtextLinkingDiagnostic: null:60 Couldn't resolve reference to JvmIdentifiableElement 'generateStub'., XtextLinkingDiagnostic: null:64 Couldn't resolve reference to JvmIdentifiableElement 'fragment'., XtextLinkingDiagnostic: null:64 Couldn't resolve reference to JvmType 'resourceFactory.ResourceFactoryFragment'., XtextLinkingDiagnostic: null:67 Couldn't resolve reference to JvmIdentifiableElement 'fragment'., XtextLinkingDiagnostic: null:67 Couldn't resolve reference to JvmType 'parser.antlr.XtextAntlrGeneratorFragment'., XtextLinkingDiagnostic: null:74 Couldn't resolve reference to JvmIdentifiableElement 'fragment'., XtextLinkingDiagnostic: null:74 Couldn't resolve reference to JvmType 'validation.ValidatorFragment'., XtextLinkingDiagnostic: null:84 Couldn't resolve reference to JvmIdentifiableElement 'fragment'., XtextLinkingDiagnostic: null:84 Couldn't resolve reference to JvmType 'scoping.ImportNamespacesScopingFragment'., XtextLinkingDiagnostic: null:85 Couldn't resolve reference to JvmIdentifiableElement 'fragment'., XtextLinkingDiagnostic: null:85 Couldn't resolve reference to JvmType 'exporting.QualifiedNamesFragment'., XtextLinkingDiagnostic: null:86 Couldn't resolve reference to JvmIdentifiableElement 'fragment'., XtextLinkingDiagnostic: null:86 Couldn't resolve reference to JvmType 'builder.BuilderIntegrationFragment'., XtextLinkingDiagnostic: null:89 Couldn't resolve reference to JvmIdentifiableElement 'fragment'., XtextLinkingDiagnostic: null:89 Couldn't resolve reference to JvmType 'generator.GeneratorFragment'., XtextLinkingDiagnostic: null:92 Couldn't resolve reference to JvmIdentifiableElement 'fragment'., XtextLinkingDiagnostic: null:92 Couldn't resolve reference to JvmType 'formatting.FormatterFragment'., XtextLinkingDiagnostic: null:95 Couldn't resolve reference to JvmIdentifiableElement 'fragment'., XtextLinkingDiagnostic: null:95 Couldn't resolve reference to JvmType 'labeling.LabelProviderFragment'., XtextLinkingDiagnostic: null:98 Couldn't resolve reference to JvmIdentifiableElement 'fragment'., XtextLinkingDiagnostic: null:98 Couldn't resolve reference to JvmType 'outline.OutlineTreeProviderFragment'., XtextLinkingDiagnostic: null:99 Couldn't resolve reference to JvmIdentifiableElement 'fragment'., XtextLinkingDiagnostic: null:99 Couldn't resolve reference to JvmType 'outline.QuickOutlineFragment'., XtextLinkingDiagnostic: null:102 Couldn't resolve reference to JvmIdentifiableElement 'fragment'., XtextLinkingDiagnostic: null:102 Couldn't resolve reference to JvmType 'quickfix.QuickfixProviderFragment'., XtextLinkingDiagnostic: null:105 Couldn't resolve reference to JvmIdentifiableElement 'fragment'., XtextLinkingDiagnostic: null:105 Couldn't resolve reference to JvmType 'contentAssist.ContentAssistFragment'., XtextLinkingDiagnostic: null:108 Couldn't resolve reference to JvmIdentifiableElement 'fragment'., XtextLinkingDiagnostic: null:108 Couldn't resolve reference to JvmType 'parser.antlr.XtextAntlrUiGeneratorFragment'., XtextLinkingDiagnostic: null:111 Couldn't resolve reference to JvmIdentifiableElement 'fragment'., XtextLinkingDiagnostic: null:111 Couldn't resolve reference to JvmType 'junit.Junit4Fragment'., XtextLinkingDiagnostic: null:119 Couldn't resolve reference to JvmIdentifiableElement 'fragment'., XtextLinkingDiagnostic: null:119 Couldn't resolve reference to JvmType 'refactoring.RefactorElementNameFragment'., XtextLinkingDiagnostic: null:122 Couldn't resolve reference to JvmIdentifiableElement 'fragment'., XtextLinkingDiagnostic: null:122 Couldn't resolve reference to JvmType 'types.TypesGeneratorFragment'., XtextLinkingDiagnostic: null:125 Couldn't resolve reference to JvmIdentifiableElement 'fragment'., XtextLinkingDiagnostic: null:125 Couldn't resolve reference to JvmType 'xbase.XbaseGeneratorFragment'., XtextLinkingDiagnostic: null:128 Couldn't resolve reference to JvmIdentifiableElement 'fragment'., XtextLinkingDiagnostic: null:128 Couldn't resolve reference to JvmType 'templates.CodetemplatesGeneratorFragment'., XtextLinkingDiagnostic: null:131 Couldn't resolve reference to JvmIdentifiableElement 'fragment'., XtextLinkingDiagnostic: null:131 Couldn't resolve reference to JvmType 'compare.CompareFragment'.]
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:89)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:63)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:53)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.run(Mwe2Launcher.java:78)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.main(Mwe2Launcher.java:36)
Here's the file itself. Errors start piling up after
component = Generator {
module com.holycityaudio.spincad.GenerateSpinCAD
import org.eclipse.emf.mwe.utils.*
import org.eclipse.xtext.generator.*
import org.eclipse.xtext.ui.generator.*
var projectName = "com.holycityaudio.spincad"
var grammarURI = "platform:/resource/${projectName}/src/com/holycityaudio/spincad/SpinCAD.xtext"
var fileExtensions = "spincad"
var runtimeProject = "../${projectName}"
var generateXtendStub = true
var encoding = "UTF-8"
Workflow {
bean = StandaloneSetup {
scanClassPath = true
platformUri = "${runtimeProject}/.."
// The following two lines can be removed, if Xbase is not used.
registerGeneratedEPackage = "org.eclipse.xtext.xbase.XbasePackage"
registerGenModelFile = "platform:/resource/org.eclipse.xtext.xbase/model/Xbase.genmodel"
}
component = DirectoryCleaner {
directory = "${runtimeProject}/src-gen"
}
component = DirectoryCleaner {
directory = "${runtimeProject}/model"
}
component = DirectoryCleaner {
directory = "${runtimeProject}.ui/src-gen"
}
component = DirectoryCleaner {
directory = "${runtimeProject}.tests/src-gen"
}
component = Generator {
pathRtProject = runtimeProject
pathUiProject = "${runtimeProject}.ui"
pathTestProject = "${runtimeProject}.tests"
projectNameRt = projectName
projectNameUi = "${projectName}.ui"
encoding = encoding
language = auto-inject {
uri = grammarURI
// Java API to access grammar elements (required by several other fragments)
fragment = grammarAccess.GrammarAccessFragment auto-inject {}
// generates Java API for the generated EPackages
fragment = ecore.EMFGeneratorFragment auto-inject {}
// the old serialization component
// fragment = parseTreeConstructor.ParseTreeConstructorFragment auto-inject {}
// serializer 2.0
fragment = serializer.SerializerFragment auto-inject {
generateStub = false
}
// a custom ResourceFactory for use with EMF
fragment = resourceFactory.ResourceFactoryFragment auto-inject {}
// The antlr parser generator fragment.
fragment = parser.antlr.XtextAntlrGeneratorFragment auto-inject {
// options = {
// backtrack = true
// }
}
// Xtend-based API for validation
fragment = validation.ValidatorFragment auto-inject {
// composedCheck = "org.eclipse.xtext.validation.ImportUriValidator"
// composedCheck = "org.eclipse.xtext.validation.NamesAreUniqueValidator"
}
// old scoping and exporting API
// fragment = scoping.ImportURIScopingFragment auto-inject {}
// fragment = exporting.SimpleNamesFragment auto-inject {}
// scoping and exporting API
fragment = scoping.ImportNamespacesScopingFragment auto-inject {}
fragment = exporting.QualifiedNamesFragment auto-inject {}
fragment = builder.BuilderIntegrationFragment auto-inject {}
// generator API
fragment = generator.GeneratorFragment auto-inject {}
// formatter API
fragment = formatting.FormatterFragment auto-inject {}
// labeling API
fragment = labeling.LabelProviderFragment auto-inject {}
// outline API
fragment = outline.OutlineTreeProviderFragment auto-inject {}
fragment = outline.QuickOutlineFragment auto-inject {}
// quickfix API
fragment = quickfix.QuickfixProviderFragment auto-inject {}
// content assist API
fragment = contentAssist.ContentAssistFragment auto-inject {}
// generates a more lightweight Antlr parser and lexer tailored for content assist
fragment = parser.antlr.XtextAntlrUiGeneratorFragment auto-inject {}
// generates junit test support classes into Generator#pathTestProject
fragment = junit.Junit4Fragment auto-inject {}
// project wizard (optional)
// fragment = projectWizard.SimpleProjectWizardFragment auto-inject {
// generatorProjectName = "${projectName}"
// }
// rename refactoring
fragment = refactoring.RefactorElementNameFragment auto-inject {}
// provides the necessary bindings for java types integration
fragment = types.TypesGeneratorFragment auto-inject {}
// generates the required bindings only if the grammar inherits from Xbase
fragment = xbase.XbaseGeneratorFragment auto-inject {}
// provides a preference page for template proposals
fragment = templates.CodetemplatesGeneratorFragment auto-inject {}
// provides a compare view
fragment = compare.CompareFragment auto-inject {}
}
}
}
|
|
| | | | | | | | |
Goto Forum:
Current Time: Sat Dec 14 23:57:33 GMT 2024
Powered by FUDForum. Page generated in 0.02971 seconds
|