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

Bug 362461

Summary: [xtend] Find references doesn't work well with unsaved state
Product: [Tools] Xtend Reporter: Sebastian Zarnekow <sebastian.zarnekow>
Component: CoreAssignee: Project Inbox <xtend-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3 CC: christian.dietrich.opensource, moritz.eysholdt, sven.efftinge
Version: 2.2.0   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Sebastian Zarnekow CLA 2011-10-31 06:26:24 EDT
Find references on an unnamed extension does not yield any results. It would be great if the called methods would be revealed.
Comment 1 Sven Efftinge CLA 2012-11-08 03:58:37 EST
This has been fixed in the meantime.
Comment 2 Sebastian Zarnekow CLA 2012-11-08 04:01:57 EST
class Z {
	
	extension String

		
	def Integer dummy() {
		42.substring.length
	} 
		
}

J

Just tried to fined references on the keyword extension and got an error dialog with: 'Element '_string' does not exist anymore'
Comment 3 Sebastian Zarnekow CLA 2012-11-08 04:03:57 EST
Steps to reproduce:

1) Create a new class
2) Paste the extension field and the method (don't save)
3) Find references on the keyword 'extension'
Comment 4 Sven Efftinge CLA 2012-11-08 04:20:19 EST
The problem is the unsaved state. An error dialog pops up with regular fields as well. We should at least catch the error and tell the user to save the editor for now.
Comment 5 Sebastian Zarnekow CLA 2014-07-16 04:53:24 EDT
see also bug 433398
Comment 6 Christian Dietrich CLA 2017-09-07 13:50:35 EDT

*** This bug has been marked as a duplicate of bug 433398 ***