Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 323206 - [Code templates] Pop up error when using code formatter option and ${line_selection}
Summary: [Code templates] Pop up error when using code formatter option and ${line_sel...
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-editor (show other bugs)
Version: 7.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 7.0.1   Edit
Assignee: Anton Leherbauer CLA
QA Contact: Anton Leherbauer CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-19 22:59 EDT by Marc-André Laperle CLA
Modified: 2010-08-20 05:23 EDT (History)
0 users

See Also:


Attachments

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