[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [cdt-dev] templates - endless loop
|
Hi Toni,
I have rebuilt the index and changed to
<template
name="$max"
description="%DollarMax"
context="org.eclipse.cdt.ui.text.templates.c"
id="org.eclipse.cdt.ui.text.templates.c.$max"
enabled="true">$$max(${expr1}, ${expr2})
</template>
while DollarMax = $max
and it seems working now.
If the problem appears again I will open the bug.
Thank you
David
On Mon, Nov 16, 2009 at 10:33 AM, Leherbauer, Anton (Toni)
<Anton.Leherbauer@xxxxxxxxxxxxx> wrote:
> Hi,
> I cannot reproduce with this information.
> Please open a bug and attach a thread dump at the time of the endless
> loop.
> See http://wiki.eclipse.org/How_to_report_a_deadlock for information on
> how to obtain a thread dump.
>
> Thanks,
> Toni
>
>> -----Original Message-----
>> From: cdt-dev-bounces@xxxxxxxxxxx
>> [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of David Sariel
>> Sent: Saturday, November 14, 2009 8:22 AM
>> To: CDT General developers list.
>> Subject: [cdt-dev] templates - endless loop
>>
>> Hi,
>> I need to add the following template $max(expr1, expr2).
>>
>> Adding to default-templates.xml
>> <template name="$$max" description="%$$max"
>> context="org.eclipse.cdt.ui.text.templates.c"
>> id="org.eclipse.cdt.ui.text.templates.c.$$max"
>> enabled="true">$$max(${expr1}, ${expr2})</template>
>>
>> and to default-templates.properties
>> $$max = $$max
>>
>> Code completion during the first time works fine completing to
>> $max(expr1, expr2).
>> But trying once again $CTRL-Space, on the second time causes
>> to endless loop.
>>
>> Is it something wrong in the definition of template?
>> Thank you
>> David
>> _______________________________________________
>> cdt-dev mailing list
>> cdt-dev@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/cdt-dev
>>
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-dev
>