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

Bug 147223

Summary: Rename Refactoring: missleading error message
Product: [Tools] CDT Reporter: Janees Elamkulam <janees.ek>
Component: cdt-coreAssignee: Markus Schorn <mschorn.eclipse>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: recoskie, troy.benohanian
Version: 3.1   
Target Milestone: 4.0 M5   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Janees Elamkulam CLA 2006-06-15 01:50:55 EDT
Some time the refactor rename does not work from the C/C++ projects window.
It shows invalid selection dialog.

To reproduce:
1) Right click on a class in Project browser.
2) Context menu -> refactor -> rename.

Sometime a dialog popup with message "Invalid text selection"
Comment 1 Markus Schorn CLA 2006-06-19 04:38:52 EDT
The error message is missleading in this case. What it means is that the AST-parser cannot find an appropriate symbol at the point where the CModel-Parser did come up with the class-definition. I suggest to change the error message. 
I hijack this bugreport for tracking this part of the problem.

To figure out the parser problem(s) it will be best to find minimal code with which this can be reproduced. Please do so and create a separate bugzilla entry.
Comment 2 Markus Schorn CLA 2006-11-10 07:41:16 EST
Fixed in 4.0 > 20061110.