Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 369189

Summary: the Terminals ID does not seem to be working
Product: [Modeling] TMF Reporter: rahul kumar <rahul.official>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED INVALID QA Contact:
Severity: major    
Priority: P3 CC: rahul.official
Version: 2.2.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description rahul kumar CLA 2012-01-20 04:21:20 EST
Build Identifier: M20110909-1335

Earlier I was using xtext 1.2 and the below problem was not there.

I downloaded my version directly from the itemis-xtext site:
  http://xtext.itemis.com/xtext/language=en/36553/downloads
  eclipse-SDK-3.7.1-Xtext-2.2.1-win32.zip

I am facing a very weird problem. The Terminals ID does not seem to be working. I created new XText project and did not change the grammar(mydsl). i.e. my grammar is:

Model:
      greetings+=Greeting*;
      
Greeting:
      'Hello' name=ID '!';


Then I executed MWE2 workflow and generated the codes Then I ran a new eclipse application with including all the plugins. Then in the 1.mydsl editor I can have
                
Hello Name !
Hello Name !
Hello Name !


It does not show any error, even  if same ID is used at more than one places. This was not happening earlier and IDs were having unique values.


Reproducible: Always