Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
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 Go to next message
Gary Worsham is currently offline Gary WorshamFriend
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 {}
    	}
    }
}


Re: XtextLinkingDiagnostic: null:39 Couldn't resolve reference to JvmType 'Generator' [message #1853210 is a reply to message #1853209] Thu, 23 June 2022 04:30 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14738
Registered: July 2009
Senior Member
this indicates a missing dependency / incomplete target platform etc
can you give more details e.g. target platform, versions etc.
you seem to use the old generator, so when using xtext 2.27 you need to explicitely pull old generator from newly introduced feature https://github.com/eclipse/xtext-umbrella/pull/302/files https://www.eclipse.org/Xtext/releasenotes.html#/releasenotes/2022/05/30/version-2-27-0
also the asm version seems old/insufficient


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Day Job: https://www.everest-systems.com

[Updated on: Thu, 23 June 2022 05:06]

Report message to a moderator

Re: XtextLinkingDiagnostic: null:39 Couldn't resolve reference to JvmType 'Generator' [message #1853238 is a reply to message #1853210] Thu, 23 June 2022 20:10 Go to previous messageGo to next message
Gary Worsham is currently offline Gary WorshamFriend
Messages: 14
Registered: June 2022
Junior Member
Hi, thanks for the response.

I'm on Windows 10.
I downloaded and unzipped the file eclipse-dsl-2022-06-R-win32-x86_64.zip
My intention is to build this along with the Xtend generator code and then launch another instance of Eclipse which is where I do my Java project development.
In the event you are interested, the project is here. https://github.com/HolyCityAudio/SpinCAD-Builder
The Java project is here: https://github.com/HolyCityAudio/SpinCAD-Designer

Eclipse DSL Tools (includes Incubating components)
Version: 2022-06 (4.24.0)
Build id: 20220609-1112

Eclipse.org - m2e M2E Maven Integration for Eclipse Core 1.20.1.20220227-1319 org.eclipse.m2e.feature
Eclipse Xtext Xtext 2.27.0.v20220530-0508 org.eclipse.xtext.sdk
Eclipse Xtext Xtend IDE 2.27.0.v20220530-0508 org.eclipse.xtend.sdk

Let me know if I missed something. I didn't see anything on "ASM".

I'll read up at the link and let you know what happens.

Thanks!

DL


Re: XtextLinkingDiagnostic: null:39 Couldn't resolve reference to JvmType 'Generator' [message #1853239 is a reply to message #1853238] Thu, 23 June 2022 22:51 Go to previous messageGo to next message
Gary Worsham is currently offline Gary WorshamFriend
Messages: 14
Registered: June 2022
Junior Member
Update, I read this (and the other link which is a pull request) and to be honest I am not sure how to proceed. I seem to have two options.
a) Do something so the existing code works.
b) Change something so the new workflow will work.

However, I don't know what those things might be.
----
Changes to org.eclipse.xtext.sdk feature.

The org.eclipse.xtext.sdk does no longer package the deprecated org.eclipse.xtext.generator bundle.
Please migrate to the new workflow/generator.
The old and deprecated generator can still be found in the new org.eclipse.xtext.generator feature.
Re: XtextLinkingDiagnostic: null:39 Couldn't resolve reference to JvmType 'Generator' [message #1853240 is a reply to message #1853239] Fri, 24 June 2022 04:42 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14738
Registered: July 2009
Senior Member
you can simply install it (the missing deprecated org.eclipse.xtext.generator) from
https://download.eclipse.org/modeling/tmf/xtext/updates/releases/2.27.0/

i also dont know what you mean by "new workflow not working"


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Day Job: https://www.everest-systems.com

[Updated on: Fri, 24 June 2022 04:43]

Report message to a moderator

Re: XtextLinkingDiagnostic: null:39 Couldn't resolve reference to JvmType 'Generator' [message #1853272 is a reply to message #1853240] Sat, 25 June 2022 05:57 Go to previous messageGo to next message
Gary Worsham is currently offline Gary WorshamFriend
Messages: 14
Registered: June 2022
Junior Member
Here's what I see, I THINK I have the proper generator installed.

https://i.ibb.co/YRv0wT3/Screenshot-2022-06-24-224937.jpg

https://i.ibb.co/HT3c2nq/Screenshot-2022-06-24-225532.jpg

I created a new Xtext project, it seems to be OK, no errors.

https://i.ibb.co/SxpKMQY/Screenshot-2022-06-24-225039.jpg

Here's my project.

https://i.ibb.co/ts3XYFx/Screenshot-2022-06-24-225316.jpg

Primary error is the same as before.

XtextLinkingDiagnostic: null:39 Couldn't resolve reference to JvmType 'Generator'


Regarding "the new workflow doesn't work" comment:

What I meant was that I copied the contents of the mwe2 file generated for a new project over to my project and just changed the module declaration at the top. That also generated a bunch of errors. However I just tried it again and am not getting those errors. Rather it looks like I have to "migrate" my existing mwe2 file to this new layout or whatever it is. I don't remember having written it to begin with, I think it was mostly auto generated. So, I will try to "migrate" this but installing the deprecated generator doesn't seem to be working with my existing code.




[Updated on: Sat, 25 June 2022 16:26]

Report message to a moderator

Re: XtextLinkingDiagnostic: null:39 Couldn't resolve reference to JvmType 'Generator' [message #1853275 is a reply to message #1853272] Sat, 25 June 2022 16:32 Go to previous messageGo to next message
Gary Worsham is currently offline Gary WorshamFriend
Messages: 14
Registered: June 2022
Junior Member
Here's something even more baffling. My project actually has two separate DSLs in it, and the second one works, without modification. It does warn me about certain things being deprecated.

https://i.ibb.co/dQPM2R4/Screenshot-2022-06-25-092936.jpg
Re: XtextLinkingDiagnostic: null:39 Couldn't resolve reference to JvmType 'Generator' [message #1853276 is a reply to message #1853275] Sat, 25 June 2022 16:39 Go to previous messageGo to next message
Gary Worsham is currently offline Gary WorshamFriend
Messages: 14
Registered: June 2022
Junior Member
Update - I think I have it working now, checked the "import" statements in the non-working project, made them match the ones that worked. Fingers crossed here....
Re: XtextLinkingDiagnostic: null:39 Couldn't resolve reference to JvmType 'Generator' [message #1853282 is a reply to message #1853240] Sun, 26 June 2022 01:07 Go to previous message
Gary Worsham is currently offline Gary WorshamFriend
Messages: 14
Registered: June 2022
Junior Member
Christian Dietrich wrote on Fri, 24 June 2022 04:42
you can simply install it (the missing deprecated org.eclipse.xtext.generator) from
https://download.eclipse.org/modeling/tmf/xtext/updates/releases/2.27.0/

OK happy days, I'm working with the deprecated generator package installed. If I had done the above before starting to mess with the code I would have been fine.

Thanks Christian!
Previous Topic:Limitations of Xtext in a Web environment
Next Topic:Adding elements
Goto Forum:
  


Current Time: Sat Dec 14 23:57:33 GMT 2024

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

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

Back to the top