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

Bug 323206

Summary: [Code templates] Pop up error when using code formatter option and ${line_selection}
Product: [Tools] CDT Reporter: Marc-AndrĂ© Laperle <malaperle>
Component: cdt-editorAssignee: Anton Leherbauer <aleherb+eclipse>
Status: RESOLVED FIXED QA Contact: Anton Leherbauer <aleherb+eclipse>
Severity: normal    
Priority: P3    
Version: 7.0   
Target Milestone: 7.0.1   
Hardware: All   
OS: All   
Whiteboard:

Description Marc-André Laperle CLA 2010-08-19 22:59:32 EDT
I am using HEAD but I'm pretty sure it's in 7.0 also.

Steps to reproduce:
1. Create a code template, make sure you have the option "Use code formatter" checked. For example:

std::cout << ${line_selection};

2. Highlight foo; in the following code and use the code template using content assist.

void bar()
{
    foo
}
Comment 1 Anton Leherbauer CLA 2010-08-20 03:08:48 EDT
Interesting.  I have not debugged it yet, but it is reproducible with 7.0.
Comment 2 Anton Leherbauer CLA 2010-08-20 05:00:43 EDT
Fixed in HEAD and 7.0.1.