Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 311323 - [Builder] wrong error marker due to invalid builderstate
Summary: [Builder] wrong error marker due to invalid builderstate
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 1.0.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: M7   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 311324
  Show dependency tree
 
Reported: 2010-05-02 17:19 EDT by Michael Clay CLA
Modified: 2017-09-19 16:02 EDT (History)
1 user (show)

See Also:
sebastian.zarnekow: helios+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.