Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » NamesAreUniqueValidator & JvmModelInferrer(Duplicate JvmIdentifiableElement '<unnamed>')
NamesAreUniqueValidator & JvmModelInferrer [message #1067292] Mon, 08 July 2013 08:31 Go to next message
Kevin SERIN is currently offline Kevin SERINFriend
Messages: 19
Registered: May 2013
Junior Member
Hi,

In the mwe2 workflow, I uncomment this line:
composedCheck = "org.eclipse.xtext.validation.NamesAreUniqueValidator"
.

My grammar:
grammar org.xtext.example.mydsl.MyDsl with org.eclipse.xtext.xbase.Xbase

generate myDsl "http://www.xtext.org/example/mydsl/MyDsl"

Model:
	components+=Component*;

Component:
	'component' name=ValidID;



If I don't use the JvmModelInferrer, I don't have any problem.
But when I use one, I have an error at the top od mydsl file: Duplicate JvmIdentifiableElement '<unnamed>'.
def dispatch void infer(Component component, IJvmDeclaredTypeAcceptor acceptor, boolean isPreIndexingPhase) {
acceptor.accept(component.toClass("mypackage."+component.name))
}


I don't really understand why this error occur ??
Re: NamesAreUniqueValidator & JvmModelInferrer [message #1067293 is a reply to message #1067292] Mon, 08 July 2013 08:40 Go to previous message
Kevin SERIN is currently offline Kevin SERINFriend
Messages: 19
Registered: May 2013
Junior Member
I think it's a manifestation of this bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=364910
Previous Topic:XText doesn't generate MyDSLPackage$Literals any longer
Next Topic:xtext replace "scr-gen" directory
Goto Forum:
  


Current Time: Fri Mar 29 00:34:35 GMT 2024

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

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

Back to the top