[squeak-dev] loading one mcz depending on another

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

[squeak-dev] loading one mcz depending on another

cedreek
Hi,

I need to load 2 mcz. The first need to be initialized before I load the second.
I did a Package-all but it doesn't work (syntax error). The load order
is ok, but I guess the initialization is done at the end... hence my
problem

Is it possible to use MCM for that ? I just can't use it....

Thanks

Cédrick


Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] loading one mcz depending on another

Damien Cassou-3
On Wed, Jul 2, 2008 at 1:58 PM, cdrick <[hidden email]> wrote:
> I need to load 2 mcz. The first need to be initialized before I load the second.
> I did a Package-all but it doesn't work (syntax error). The load order
> is ok, but I guess the initialization is done at the end... hence my
> problem

I don't see how a syntax error could be related to MC. Have you tried
to load Package-1 alone then Package-2?

> Is it possible to use MCM for that ? I just can't use it....

If you want MCM, install MC1.5.

--
Damien Cassou
Peter von der Ahé: «I'm beginning to see why Gilad wished us good
luck». (http://blogs.sun.com/ahe/entry/override_snafu)

Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] loading one mcz depending on another

cedreek
> On Wed, Jul 2, 2008 at 1:58 PM, cdrick <[hidden email]> wrote:
>> I need to load 2 mcz. The first need to be initialized before I load the second.
>> I did a Package-all but it doesn't work (syntax error). The load order
>> is ok, but I guess the initialization is done at the end... hence my
>> problem
>
> I don't see how a syntax error could be related to MC. Have you tried
> to load Package-1 alone then Package-2?

Yes that way it works.

It for Prolog. In some packages they are examples in Prolog syntax
which need to use a different compiler. If I load all the packages,
I've got a syntax error as it doesn't know how to compile the "prolog"
methods. If I load first the compiler then packages with prolog
syntax, then it's ok.

>
>> Is it possible to use MCM for that ? I just can't use it....
>
> If you want MCM, install MC1.5.
>

is it on 3.10.1  ?

>
>

Thanks ;)

Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] loading one mcz depending on another

Damien Cassou-3
On Wed, Jul 2, 2008 at 2:21 PM, cdrick <[hidden email]> wrote:

>> On Wed, Jul 2, 2008 at 1:58 PM, cdrick <[hidden email]> wrote:
>>> I need to load 2 mcz. The first need to be initialized before I load the second.
>>> I did a Package-all but it doesn't work (syntax error). The load order
>>> is ok, but I guess the initialization is done at the end... hence my
>>> problem
>>
>> I don't see how a syntax error could be related to MC. Have you tried
>> to load Package-1 alone then Package-2?
>
> Yes that way it works.
>
> It for Prolog. In some packages they are examples in Prolog syntax
> which need to use a different compiler. If I load all the packages,
> I've got a syntax error as it doesn't know how to compile the "prolog"
> methods. If I load first the compiler then packages with prolog
> syntax, then it's ok.

You might want to try with MC15, even without MCM. If you still have
the problem, send a mail to Keith and Matthew.


>> If you want MCM, install MC1.5.
>
> is it on 3.10.1  ?

No, I think you have to use Universe.

--
Damien Cassou
Peter von der Ahé: «I'm beginning to see why Gilad wished us good
luck». (http://blogs.sun.com/ahe/entry/override_snafu)

Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] loading one mcz depending on another

Bert Freudenberg

Am 02.07.2008 um 14:35 schrieb Damien Cassou:

> On Wed, Jul 2, 2008 at 2:21 PM, cdrick <[hidden email]> wrote:
>>> On Wed, Jul 2, 2008 at 1:58 PM, cdrick <[hidden email]> wrote:
>>>> I need to load 2 mcz. The first need to be initialized before I  
>>>> load the second.
>>>> I did a Package-all but it doesn't work (syntax error). The load  
>>>> order
>>>> is ok, but I guess the initialization is done at the end... hence  
>>>> my
>>>> problem
>>>
>>> I don't see how a syntax error could be related to MC. Have you  
>>> tried
>>> to load Package-1 alone then Package-2?
>>
>> Yes that way it works.
>>
>> It for Prolog. In some packages they are examples in Prolog syntax
>> which need to use a different compiler. If I load all the packages,
>> I've got a syntax error as it doesn't know how to compile the  
>> "prolog"
>> methods. If I load first the compiler then packages with prolog
>> syntax, then it's ok.
>
> You might want to try with MC15, even without MCM. If you still have
> the problem, send a mail to Keith and Matthew.


IMHO that's a problem we haven't found a solution for in MC, yet.

Sometimes (as in cdrick's case) you must load two packages  
independently, because the first needs to be initialized before the  
second can load.

Sometimes, packages need to be loaded together, for example, when a  
class or method is moved from one package to the other.

Maybe packages that need to be loaded separately need to be marked?

- Bert -



Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] loading one mcz depending on another

stephane ducasse
Bert

I thought that MCM was loading package one after the other. (in fact  
this is for that reason we could not
use MCM for Squeak 3.9).

Now in scriptloader we can chose to load one after the other or  
together.

Stef

Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] loading one mcz depending on another

keith1y
Installer now supports loading packages together using the following idiom.

Installer squeaksource project: 'SomeProject';
    addPackage: 'PackageA';
    addPackage: 'PackageB';
    install.

best regards

Keith

p.s. with atomic loading enabled both should be atomically switched in
together

Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] loading one mcz depending on another

Philippe Marschall
In reply to this post by Bert Freudenberg
2008/7/2 Bert Freudenberg <[hidden email]>:

>
> Am 02.07.2008 um 14:35 schrieb Damien Cassou:
>
>> On Wed, Jul 2, 2008 at 2:21 PM, cdrick <[hidden email]> wrote:
>>>>
>>>> On Wed, Jul 2, 2008 at 1:58 PM, cdrick <[hidden email]> wrote:
>>>>>
>>>>> I need to load 2 mcz. The first need to be initialized before I load
>>>>> the second.
>>>>> I did a Package-all but it doesn't work (syntax error). The load order
>>>>> is ok, but I guess the initialization is done at the end... hence my
>>>>> problem
>>>>
>>>> I don't see how a syntax error could be related to MC. Have you tried
>>>> to load Package-1 alone then Package-2?
>>>
>>> Yes that way it works.
>>>
>>> It for Prolog. In some packages they are examples in Prolog syntax
>>> which need to use a different compiler. If I load all the packages,
>>> I've got a syntax error as it doesn't know how to compile the "prolog"
>>> methods. If I load first the compiler then packages with prolog
>>> syntax, then it's ok.
>>
>> You might want to try with MC15, even without MCM. If you still have
>> the problem, send a mail to Keith and Matthew.
>
>
> IMHO that's a problem we haven't found a solution for in MC, yet.
>
> Sometimes (as in cdrick's case) you must load two packages independently,
> because the first needs to be initialized before the second can load.
>
> Sometimes, packages need to be loaded together, for example, when a class or
> method is moved from one package to the other.
>
> Maybe packages that need to be loaded separately need to be marked?

IMHO loading one package after the other should be the default so that
you can rely on classes in packages you depend on to be initialized.

Cheers
Philippe

Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] loading one mcz depending on another

Bert Freudenberg
In reply to this post by stephane ducasse

Am 02.07.2008 um 15:16 schrieb stephane ducasse:

> Bert
>
> I thought that MCM was loading package one after the other. (in fact  
> this is for that reason we could not
> use MCM for Squeak 3.9).


And IIRC at your request I added the option to load packages together.

Different versions of MCM default to different strategies though.

- Bert -



Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] loading one mcz depending on another

Lukas Renggli
In reply to this post by keith1y
> Installer now supports loading packages together using the following idiom.
>
> [...]
>
>  p.s. with atomic loading enabled both should be atomically switched in
> together

As far as I understand the problem is not the load-, but the
initialization-order.

Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch