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

Bug 311323

Summary: [Builder] wrong error marker due to invalid builderstate
Product: [Modeling] TMF Reporter: Michael Clay <clay>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: sebastian.zarnekow
Version: 1.0.0Flags: sebastian.zarnekow: helios+
Target Milestone: M7   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Bug Depends on:    
Bug Blocks: 311324    

Description Michael Clay CLA 2010-05-02 17:19:32 EDT
to reproduce:

prereq: java project with xtext nature and enabled auto build 

1. create a file named bar.dmodel containing

entity Bar {
}

2. close the 'bar.dmodel' editor

3. create a file named foo.dmodel containing

entity Foo {
	attr bar : Bar
}

4. close the 'foo.dmodel' editor

5. within the package explorer select,copy and paste the bar.dmodel file to create a file copy 
i.e. accept the suggested default and name it  'Copy of bar.dmodel' file 

6. the problems view now shows an error marker for foo.dmodel: 'Missing attribute type Bar'

7. delete the previously created 'Copy of bar.dmodel' file 

8. the problem view still shows the meanwhile wrong error marker :  'Missing attribute type Bar'

cause: invalid builderstate due to duplicate names within the same container scope?
Comment 1 Sebastian Zarnekow CLA 2010-05-03 10:08:12 EDT
Fixed in HEAD.
Comment 2 Karsten Thoms CLA 2017-09-19 16:02:26 EDT
Closing bug which were set to RESOLVED before Eclipse Neon.0.