classScope on an undefined variable

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

classScope on an undefined variable

abergel
Hi!

We produced a test that shows a bug related to the classScope.

In Moose-Tests-SmalltalkImporter-LAN-AlexandreBergel.10 we added testClassVariable. This test fails. We need to make the appropriate change to make it pass. This bug prevents us from using MooseChef

In our local image we check the belongsTo in the method classScope. This makes mooseChef happy.

Anyone can have a look at it please?

Cheers,
Alexandre

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.





_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: classScope on an undefined variable

Stéphane Ducasse


> Hi!
>
> We produced a test that shows a bug related to the classScope.
>
> In Moose-Tests-SmalltalkImporter-LAN-AlexandreBergel.10 we added testClassVariable. This test fails. We need to make the appropriate change to make it pass. This bug prevents us from using MooseChef

What is it?
Because normally classVar are imported well. With class and metaclass merging or not.
I spent a lot of time on that in the past.

Did you check the other tests?

Stef


>
> In our local image we check the belongsTo in the method classScope. This makes mooseChef happy.
>
> Anyone can have a look at it please?
>
> Cheers,
> Alexandre
>
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: classScope on an undefined variable

abergel
>> We produced a test that shows a bug related to the classScope.
>>
>> In Moose-Tests-SmalltalkImporter-LAN-AlexandreBergel.10 we added testClassVariable. This test fails. We need to make the appropriate change to make it pass. This bug prevents us from using MooseChef
>
> What is it?
> Because normally classVar are imported well. With class and metaclass merging or not.
> I spent a lot of time on that in the past.
>
> Did you check the other tests?

The problem appears when we formulate a moose chef query with #withoutSelfLoops
The message classScope is sent to an unknown variable, which raise an DNU on nil.
I can find the mooseChef if necessary, but the tests I added crystalize the situation well.

Cheers,
Alexandre


>
>
>>
>> In our local image we check the belongsTo in the method classScope. This makes mooseChef happy.
>>
>> Anyone can have a look at it please?
>>
>> Cheers,
>> Alexandre
>>
>> --
>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>> Alexandre Bergel  http://www.bergel.eu
>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>
>>
>>
>>
>>
>> _______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.





_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: classScope on an undefined variable

Stéphane Ducasse


>>> We produced a test that shows a bug related to the classScope.
>>>
>>> In Moose-Tests-SmalltalkImporter-LAN-AlexandreBergel.10 we added testClassVariable. This test fails. We need to make the appropriate change to make it pass. This bug prevents us from using MooseChef
>>
>> What is it?
>> Because normally classVar are imported well. With class and metaclass merging or not.
>> I spent a lot of time on that in the past.
>>
>> Did you check the other tests?
>
> The problem appears when we formulate a moose chef query with #withoutSelfLoops
> The message classScope is sent to an unknown variable, which raise an DNU on nil.

Strange.
To me this is not clear.

> I can find the mooseChef if necessary, but the tests I added crystalize the situation well.
>
> Cheers,
> Alexandre
>
>
>>
>>
>>>
>>> In our local image we check the belongsTo in the method classScope. This makes mooseChef happy.
>>>
>>> Anyone can have a look at it please?
>>>
>>> Cheers,
>>> Alexandre
>>>
>>> --
>>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>>> Alexandre Bergel  http://www.bergel.eu
>>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Moose-dev mailing list
>>> [hidden email]
>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>
>>
>> _______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: classScope on an undefined variable

Nicolas Anquetil

Alexandre, I think I stumbled over the same bug back in July/August when I was working on replacing MooseCook with MooseChef.
We should dig up the message I exchanged with Doru and Simon at that time.

but basically, If I remmebr well, the problem was that some queries do an implicit withoutSelfLoop and other not.
The solution I proposed was to remove this implicit withoutSelfLoop everywhere and always force the user to put it when he wants it.
I believe I tried it and it seemed to work, but I am not sure anymore ...

nicolas

----- Mail original -----

> De: "Stéphane Ducasse" <[hidden email]>
> À: "Moose-related development" <[hidden email]>
> Envoyé: Mercredi 23 Novembre 2011 22:26:09
> Objet: [Moose-dev] Re: classScope on an undefined variable
> >>> We produced a test that shows a bug related to the classScope.
> >>>
> >>> In Moose-Tests-SmalltalkImporter-LAN-AlexandreBergel.10 we added
> >>> testClassVariable. This test fails. We need to make the
> >>> appropriate change to make it pass. This bug prevents us from
> >>> using MooseChef
> >>
> >> What is it?
> >> Because normally classVar are imported well. With class and
> >> metaclass merging or not.
> >> I spent a lot of time on that in the past.
> >>
> >> Did you check the other tests?
> >
> > The problem appears when we formulate a moose chef query with
> > #withoutSelfLoops
> > The message classScope is sent to an unknown variable, which raise
> > an DNU on nil.
>
> Strange.
> To me this is not clear.
>
> > I can find the mooseChef if necessary, but the tests I added
> > crystalize the situation well.
> >
> > Cheers,
> > Alexandre
> >
> >
> >>
> >>
> >>>
> >>> In our local image we check the belongsTo in the method
> >>> classScope. This makes mooseChef happy.
> >>>
> >>> Anyone can have a look at it please?
> >>>
> >>> Cheers,
> >>> Alexandre
> >>>
> >>> --
> >>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> >>> Alexandre Bergel http://www.bergel.eu
> >>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> _______________________________________________
> >>> Moose-dev mailing list
> >>> [hidden email]
> >>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> >>
> >>
> >> _______________________________________________
> >> Moose-dev mailing list
> >> [hidden email]
> >> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> >
> > --
> > _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> > Alexandre Bergel http://www.bergel.eu
> > ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
> >
> >
> >
> >
> >
> > _______________________________________________
> > Moose-dev mailing list
> > [hidden email]
> > https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: classScope on an undefined variable

Tudor Girba-2
Hi,

The two do not seem to be related.

Alex has a problem with belongsTo being nil, while as far as I remember, Nicolas had a problem with the semantics of withoutSelfLoops.

Cheers,
Doru


On 23 Nov 2011, at 22:54, Nicolas Anquetil wrote:

>
> Alexandre, I think I stumbled over the same bug back in July/August when I was working on replacing MooseCook with MooseChef.
> We should dig up the message I exchanged with Doru and Simon at that time.
>
> but basically, If I remmebr well, the problem was that some queries do an implicit withoutSelfLoop and other not.
> The solution I proposed was to remove this implicit withoutSelfLoop everywhere and always force the user to put it when he wants it.
> I believe I tried it and it seemed to work, but I am not sure anymore ...
>
> nicolas
>
> ----- Mail original -----
>> De: "Stéphane Ducasse" <[hidden email]>
>> À: "Moose-related development" <[hidden email]>
>> Envoyé: Mercredi 23 Novembre 2011 22:26:09
>> Objet: [Moose-dev] Re: classScope on an undefined variable
>>>>> We produced a test that shows a bug related to the classScope.
>>>>>
>>>>> In Moose-Tests-SmalltalkImporter-LAN-AlexandreBergel.10 we added
>>>>> testClassVariable. This test fails. We need to make the
>>>>> appropriate change to make it pass. This bug prevents us from
>>>>> using MooseChef
>>>>
>>>> What is it?
>>>> Because normally classVar are imported well. With class and
>>>> metaclass merging or not.
>>>> I spent a lot of time on that in the past.
>>>>
>>>> Did you check the other tests?
>>>
>>> The problem appears when we formulate a moose chef query with
>>> #withoutSelfLoops
>>> The message classScope is sent to an unknown variable, which raise
>>> an DNU on nil.
>>
>> Strange.
>> To me this is not clear.
>>
>>> I can find the mooseChef if necessary, but the tests I added
>>> crystalize the situation well.
>>>
>>> Cheers,
>>> Alexandre
>>>
>>>
>>>>
>>>>
>>>>>
>>>>> In our local image we check the belongsTo in the method
>>>>> classScope. This makes mooseChef happy.
>>>>>
>>>>> Anyone can have a look at it please?
>>>>>
>>>>> Cheers,
>>>>> Alexandre
>>>>>
>>>>> --
>>>>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>>>>> Alexandre Bergel http://www.bergel.eu
>>>>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Moose-dev mailing list
>>>>> [hidden email]
>>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>>
>>>>
>>>> _______________________________________________
>>>> Moose-dev mailing list
>>>> [hidden email]
>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>
>>> --
>>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>>> Alexandre Bergel http://www.bergel.eu
>>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Moose-dev mailing list
>>> [hidden email]
>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>
>>
>> _______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
www.tudorgirba.com

"The coherence of a trip is given by the clearness of the goal."





_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: classScope on an undefined variable

abergel
> The two do not seem to be related.
>
> Alex has a problem with belongsTo being nil, while as far as I remember, Nicolas had a problem with the semantics of withoutSelfLoops.

I bump into the problem by having withoutSelfLoops in a Chef query.

Alexandre


>
>
> On 23 Nov 2011, at 22:54, Nicolas Anquetil wrote:
>
>>
>> Alexandre, I think I stumbled over the same bug back in July/August when I was working on replacing MooseCook with MooseChef.
>> We should dig up the message I exchanged with Doru and Simon at that time.
>>
>> but basically, If I remmebr well, the problem was that some queries do an implicit withoutSelfLoop and other not.
>> The solution I proposed was to remove this implicit withoutSelfLoop everywhere and always force the user to put it when he wants it.
>> I believe I tried it and it seemed to work, but I am not sure anymore ...
>>
>> nicolas
>>
>> ----- Mail original -----
>>> De: "Stéphane Ducasse" <[hidden email]>
>>> À: "Moose-related development" <[hidden email]>
>>> Envoyé: Mercredi 23 Novembre 2011 22:26:09
>>> Objet: [Moose-dev] Re: classScope on an undefined variable
>>>>>> We produced a test that shows a bug related to the classScope.
>>>>>>
>>>>>> In Moose-Tests-SmalltalkImporter-LAN-AlexandreBergel.10 we added
>>>>>> testClassVariable. This test fails. We need to make the
>>>>>> appropriate change to make it pass. This bug prevents us from
>>>>>> using MooseChef
>>>>>
>>>>> What is it?
>>>>> Because normally classVar are imported well. With class and
>>>>> metaclass merging or not.
>>>>> I spent a lot of time on that in the past.
>>>>>
>>>>> Did you check the other tests?
>>>>
>>>> The problem appears when we formulate a moose chef query with
>>>> #withoutSelfLoops
>>>> The message classScope is sent to an unknown variable, which raise
>>>> an DNU on nil.
>>>
>>> Strange.
>>> To me this is not clear.
>>>
>>>> I can find the mooseChef if necessary, but the tests I added
>>>> crystalize the situation well.
>>>>
>>>> Cheers,
>>>> Alexandre
>>>>
>>>>
>>>>>
>>>>>
>>>>>>
>>>>>> In our local image we check the belongsTo in the method
>>>>>> classScope. This makes mooseChef happy.
>>>>>>
>>>>>> Anyone can have a look at it please?
>>>>>>
>>>>>> Cheers,
>>>>>> Alexandre
>>>>>>
>>>>>> --
>>>>>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>>>>>> Alexandre Bergel http://www.bergel.eu
>>>>>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Moose-dev mailing list
>>>>>> [hidden email]
>>>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Moose-dev mailing list
>>>>> [hidden email]
>>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>>
>>>> --
>>>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>>>> Alexandre Bergel http://www.bergel.eu
>>>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Moose-dev mailing list
>>>> [hidden email]
>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>
>>>
>>> _______________________________________________
>>> Moose-dev mailing list
>>> [hidden email]
>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>
>> _______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
> --
> www.tudorgirba.com
>
> "The coherence of a trip is given by the clearness of the goal."
>
>
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev