|
|
Re: [Acceleo] Set type as parameter [message #524274 is a reply to message #523797] |
Wed, 31 March 2010 11:32 |
|
This is a multi-part message in MIME format.
--------------010005040507050103050809
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Hi,
Didn't even spot the typo before reading Sebastien's answer :). That
could indeed be the source of this issue.
If it isn't ... well I know we add problems with typed collections as
arguments of our templates and queries at one time ; but I don't
remember when we solved it, but I believe that was even before 0.8 went
live. Updating Acceleo should do the trick.
Laurent Goubet
Obeo
Sebastien Roy wrote:
> Hello,
> did you tried without the trailing 's' on 'Lifelines' ?:
>
> [template private getXYZ(lifelines:Set(Lifeline))]
>
> regards
>
> Sebastien
>
--------------010005040507050103050809
Content-Type: text/x-vcard; charset=utf-8;
name="laurent_goubet.vcf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="laurent_goubet.vcf"
YmVnaW46dmNhcmQNCmZuOkxhdXJlbnQgR291YmV0DQpuOkdvdWJldDtMYXVy ZW50DQpvcmc6
PGEgaHJlZj0iaHR0cDovL3d3dy5vYmVvLmZyIj5PYmVvPC9hPg0KZW1haWw7 aW50ZXJuZXQ6
bGF1cmVudC5nb3ViZXRAb2Jlby5mcg0KdXJsOmh0dHA6Ly93d3cub2Jlby5m cg0KdmVyc2lv
bjoyLjENCmVuZDp2Y2FyZA0KDQo=
--------------010005040507050103050809--
|
|
|
Re: [Acceleo] Set type as parameter [message #525247 is a reply to message #524274] |
Mon, 05 April 2010 20:03 |
Timothy Marc Messages: 547 Registered: July 2009 |
Senior Member |
|
|
Hi,
well, it would be wonderful, if this would have been the error, but the
typo wasn't the problem. I actually have acceleo 0.8.1 installed, but
the set types doesn't work. Just for the sake of clarity, the
declaration of the below query is correct, isn't it? The compiler
alwalys says that Set(Message) is an invalid type.
[query public connectedLifelinesPort (i : Set(Message)) : Set(Lifeline)
= i->...)/]
Thanks again
Timothy
Laurent Goubet schrieb:
> Hi,
>
> Didn't even spot the typo before reading Sebastien's answer :). That
> could indeed be the source of this issue.
>
> If it isn't ... well I know we add problems with typed collections as
> arguments of our templates and queries at one time ; but I don't
> remember when we solved it, but I believe that was even before 0.8 went
> live. Updating Acceleo should do the trick.
>
> Laurent Goubet
> Obeo
>
>
> Sebastien Roy wrote:
>> Hello,
>> did you tried without the trailing 's' on 'Lifelines' ?:
>>
>> [template private getXYZ(lifelines:Set(Lifeline))]
>>
>> regards
>>
>> Sebastien
>>
>
|
|
|
Re: [Acceleo] Set type as parameter [message #525318 is a reply to message #525247] |
Tue, 06 April 2010 03:46 |
|
This is a multi-part message in MIME format.
--------------050204010907050807090505
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Hi Timothy,
Yes, your query is correct. It would seem the 0.8.1 version still
sported this failure :/. With that version, the only way you can
workaround the compilation failure is by using "Set(T)" instead of
"Set(Message)" ... and of course this will cause further issues with the
compiler as you'll be missing the typing information for all calls to
this query.
If possible, you should upgrade to the latest version of Acceleo
(3.0.0M6) as tremendous efforts have been made on both bug resolution
and feature enhancements since 0.8 went live. This issue in particular
is known to have been fixed.
Laurent Goubet
Obeo
Timothy Marc wrote:
> Hi,
>
> well, it would be wonderful, if this would have been the error, but the
> typo wasn't the problem. I actually have acceleo 0.8.1 installed, but
> the set types doesn't work. Just for the sake of clarity, the
> declaration of the below query is correct, isn't it? The compiler
> alwalys says that Set(Message) is an invalid type.
>
> [query public connectedLifelinesPort (i : Set(Message)) : Set(Lifeline)
> = i->...)/]
>
> Thanks again
> Timothy
>
> Laurent Goubet schrieb:
>> Hi,
>>
>> Didn't even spot the typo before reading Sebastien's answer :). That
>> could indeed be the source of this issue.
>>
>> If it isn't ... well I know we add problems with typed collections as
>> arguments of our templates and queries at one time ; but I don't
>> remember when we solved it, but I believe that was even before 0.8
>> went live. Updating Acceleo should do the trick.
>>
>> Laurent Goubet
>> Obeo
>>
>>
>> Sebastien Roy wrote:
>>> Hello,
>>> did you tried without the trailing 's' on 'Lifelines' ?:
>>>
>>> [template private getXYZ(lifelines:Set(Lifeline))]
>>>
>>> regards
>>>
>>> Sebastien
>>>
>>
--------------050204010907050807090505
Content-Type: text/x-vcard; charset=utf-8;
name="laurent_goubet.vcf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="laurent_goubet.vcf"
YmVnaW46dmNhcmQNCmZuOkxhdXJlbnQgR291YmV0DQpuOkdvdWJldDtMYXVy ZW50DQpvcmc6
PGEgaHJlZj0iaHR0cDovL3d3dy5vYmVvLmZyIj5PYmVvPC9hPg0KZW1haWw7 aW50ZXJuZXQ6
bGF1cmVudC5nb3ViZXRAb2Jlby5mcg0KdXJsOmh0dHA6Ly93d3cub2Jlby5m cg0KdmVyc2lv
bjoyLjENCmVuZDp2Y2FyZA0KDQo=
--------------050204010907050807090505--
|
|
|
Powered by
FUDForum. Page generated in 0.03543 seconds