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" stephane.ducasse@inria.fr À: "Moose-related development" moose-dev@iam.unibe.ch 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 Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch 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 Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev