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
On Wed, Jul 2, 2008 at 1:58 PM, cdrick cdrick65@gmail.com 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.
On Wed, Jul 2, 2008 at 1:58 PM, cdrick cdrick65@gmail.com 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 ;)
On Wed, Jul 2, 2008 at 2:21 PM, cdrick cdrick65@gmail.com wrote:
On Wed, Jul 2, 2008 at 1:58 PM, cdrick cdrick65@gmail.com 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.
Am 02.07.2008 um 14:35 schrieb Damien Cassou:
On Wed, Jul 2, 2008 at 2:21 PM, cdrick cdrick65@gmail.com wrote:
On Wed, Jul 2, 2008 at 1:58 PM, cdrick cdrick65@gmail.com 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 -
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
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
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
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 -
2008/7/2 Bert Freudenberg bert@freudenbergs.de:
Am 02.07.2008 um 14:35 schrieb Damien Cassou:
On Wed, Jul 2, 2008 at 2:21 PM, cdrick cdrick65@gmail.com wrote:
On Wed, Jul 2, 2008 at 1:58 PM, cdrick cdrick65@gmail.com 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
squeak-dev@lists.squeakfoundation.org