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

Bug 334890

Summary: Dangling cross-references do not get fixed
Product: [Modeling] TMF Reporter: Mark Christiaens <mark.g.j.christiaens>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: mark.g.j.christiaens, sebastian.zarnekow
Version: 2.0.0Flags: sebastian.zarnekow: indigo+
Target Milestone: M5   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Mark Christiaens CLA 2011-01-20 09:43:42 EST
Build Identifier: 20100917-0705

I have a cross reference that points to the correct declaration.
Then I change the declaration thereby breaking the cross reference. 
Then I change back.  
The cross reference stays broken. 

Reproducible: Always
Comment 1 Mark Christiaens CLA 2011-01-20 09:44:40 EST
I'm using nightly build 2.0.0.v201101191503
Comment 2 Sebastian Zarnekow CLA 2011-01-20 09:45:49 EST
Please provide some more information.
Is the referenced element in the same resource? If not, does #isAffected return true after the resource has been changed?
Comment 3 Mark Christiaens CLA 2011-01-20 09:54:23 EST
(In reply to comment #2)
> Please provide some more information.
> Is the referenced element in the same resource? If not, does #isAffected return
> true after the resource has been changed?

It's on the next line.
Comment 4 Mark Christiaens CLA 2011-01-20 10:01:37 EST
(In reply to comment #3)
> (In reply to comment #2)
> > Please provide some more information.
> > Is the referenced element in the same resource? If not, does #isAffected return
> > true after the resource has been changed?
> 
> It's on the next line.

BTW I tried to reproduce using the Domain Model example project but that contains errors.  If I remember correctly, I was using a NodeUtil.xxx that didn't exist or something.
Comment 5 Mark Christiaens CLA 2011-01-20 15:32:00 EST
I'm closing this one.  I think I made a mistake.  I was using a cache for the scoping results.  After some thought, I think it results in stale/inconsistent results.  I've removed my cache and the problem seems to have disappeared.  While I'm at it.  I wonder if the formatting problems I'm seeing are also caused by this ...