The problem was resolved. Thanks to Stef and Marianno for their effort to
look at the code.
The package was actually loaded in two configurations and I was not calling
requires: in all locations (duplicate code is bad even in configuration
;-). So, a bit of cleanup resolved the problem.

Good thing is that now I know about this directive that helps debugging
package loading.

((ConfigurationOfMantisDemo loadDev)
 record) loadDirective.

usman
On Sun, Oct 14, 2012 at 10:04 PM, Mariano Martinez Peck <
[email protected]> wrote:

>
>
> On Sun, Oct 14, 2012 at 8:25 PM, Usman Bhatti <[email protected]>wrote:
>
>> I have a configuration as follows :
>>
>> spec for: #common do: [
>> "a class in package BBB inherits from a class in package AAA"
>> spec
>> package: 'AAA';
>>         package: 'BBB' with: [spec requires:  'AAA']
>> ].
>>
>>
> As Stef said, it should work. I don't see anything weird.
> Try to PRINT (as Stef said) the result of doing a #record instead of a
> #load and see what is being load and in which order.
>
>
>> Now, when I try to load this configuration, it fails to properly load the
>> package BBB (there are some missing classes) with this msg:
>>
>> *This package depends on the following classes:*
>>
>> *  A class in package AAA*
>>
>> *You must resolve these dependencies before you will be able to load
>> these definitions: A class in package BBB.*
>>
>> It seems that there is a way to load packages in a linear order (
>> http://code.google.com/p/metacello/wiki/FAQ#Controlling_Package_Initialization_Order).
>> However, my project defaults is already set to linear and after reading
>> this post my problem is not resolved.
>>
>> Can anyone help me how I can enforce package AAA to load before BBB?
>>
>> tx,
>>
>> usman
>>
>
>
>
> --
> Mariano
> http://marianopeck.wordpress.com
>
>

Reply via email to