Magma in Pharo 1.1

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

Magma in Pharo 1.1

Mariano Martinez Peck
Hi. I was trying the welcome workspace of Pharo 1.1 in order to install Magma but it fails. I am evaluating:

    Gofer new
        squeaksource: 'MetacelloRepository';
        package: 'ConfigurationOfMagma';
        load.
        
    ((Smalltalk at: #ConfigurationOfMagma) project latestVersion) load


The error was a Sintax Error in

lazyX
    ^ x ifNil: [x _ Period or right bracket expected ->42]


I attach screenshot. It seems the problem with the underscore as they are not allowed anymore as asiggment in Pharo 1.1. In order to appear in Pharo welcome workpsace this should be working.

If someone makes the changes and updates de configuration please let me know (sorry but I don't have time to do it myself). Otherwise, I will have to remove it from Pharo 1.1 workspace as it doesn't work and makes confusion.

Thanks

Mariano


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Magma in Pharo 1.1

Mariano Martinez Peck
Sorry, I forgot the screenshot

On Sun, Jun 13, 2010 at 9:52 PM, Mariano Martinez Peck <[hidden email]> wrote:
Hi. I was trying the welcome workspace of Pharo 1.1 in order to install Magma but it fails. I am evaluating:

    Gofer new
        squeaksource: 'MetacelloRepository';
        package: 'ConfigurationOfMagma';
        load.
        
    ((Smalltalk at: #ConfigurationOfMagma) project latestVersion) load


The error was a Sintax Error in

lazyX
    ^ x ifNil: [x _ Period or right bracket expected ->42]


I attach screenshot. It seems the problem with the underscore as they are not allowed anymore as asiggment in Pharo 1.1. In order to appear in Pharo welcome workpsace this should be working.

If someone makes the changes and updates de configuration please let me know (sorry but I don't have time to do it myself). Otherwise, I will have to remove it from Pharo 1.1 workspace as it doesn't work and makes confusion.

Thanks

Mariano



_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Screen shot 2010-06-13 at 9.36.01 PM.png (44K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Magma in Pharo 1.1

Chris Muller-3
The next release of Magma will have all of the underscore assignments
removed.  Until then, you may invoke the preference that allows
underscore assignment.

2010/6/13 Mariano Martinez Peck <[hidden email]>:

> Sorry, I forgot the screenshot
>
> On Sun, Jun 13, 2010 at 9:52 PM, Mariano Martinez Peck
> <[hidden email]> wrote:
>>
>> Hi. I was trying the welcome workspace of Pharo 1.1 in order to install
>> Magma but it fails. I am evaluating:
>>
>>     Gofer new
>>         squeaksource: 'MetacelloRepository';
>>         package: 'ConfigurationOfMagma';
>>         load.
>>
>>     ((Smalltalk at: #ConfigurationOfMagma) project latestVersion) load
>>
>>
>> The error was a Sintax Error in
>>
>> lazyX
>>     ^ x ifNil: [x _ Period or right bracket expected ->42]
>>
>>
>> I attach screenshot. It seems the problem with the underscore as they are
>> not allowed anymore as asiggment in Pharo 1.1. In order to appear in Pharo
>> welcome workpsace this should be working.
>>
>> If someone makes the changes and updates de configuration please let me
>> know (sorry but I don't have time to do it myself). Otherwise, I will have
>> to remove it from Pharo 1.1 workspace as it doesn't work and makes
>> confusion.
>>
>> Thanks
>>
>> Mariano
>>
>
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Magma in Pharo 1.1

DavidWilson
After an afternoon of trying to install Magma, I find you also need to select the compiler option to allow assignments to block variables.

I still get dependency warnings, which I ignored by clicking on 'Proceed':
"This package depends on the following classes:
  FlapTab
You must resolve these dependencies before you will be able to load these definitions:
  FlapTab classSide>>maMaterializeFromGraph:using:
  FlapTab>>maAsStorageObject
  FlapTab>>maUsesStandardStorage"
and "This package depends on the following classes:
  FlapTab
You must resolve these dependencies before you will be able to load these definitions:
  FlapTab>>isImmutableInMagma"

The installation runs through now, but Magma doesn't work, the class 'MagmaRepositoryController' isn't there, and although I only want to run a 'single-user' image, the method "MagmaSession openLocal: " doesn't exist either.
Can anybody help?

David
Reply | Threaded
Open this post in threaded view
|

Re: Magma in Pharo 1.1

Miguel Cobá
El mié, 08-09-2010 a las 08:24 -0700, DavidWilson escribió:
> After an afternoon of trying to install Magma, I find you also need to select
> the compiler option to allow assignments to block variables.
>

You don't say how are you installing Magma, from the sar from the mcm,
from the metacello configuration. In general for Pharo, the official way
to install it is with the metacello configuration announced in

http://lists.squeakfoundation.org/pipermail/magma/2010-August/001587.html

Though that announce was made befor the renaming of the repositories
from UnivesreForPharoXX to MetaRepoForPharoXX. I just forgot to
reannounce the new workspace snippets :)

Anyway, the correct do its are:

Gofer new
        squeaksource: 'MetaRepoForPharo11';
        package: 'ConfigurationOfMagma';
        load.

and then, any of:

ConfigurationOfMagma project latestVersion load: 'Client'.
ConfigurationOfMagma project latestVersion load: 'Server'.
ConfigurationOfMagma project latestVersion load: 'Tester'.

depending of what level of magma you want. This will install Magma
1.1r2. If you want a previous version of Magma, you should do:

(ConfigurationOfMagma project version: '1.1r1') load: 'Client'.
(ConfigurationOfMagma project version: '1.1r1') load: 'Server'.
(ConfigurationOfMagma project version: '1.1r1') load: 'Tester'.

Cheers

--
Miguel Cobá
http://miguel.leugim.com.mx


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Magma in Pharo 1.1

DavidWilson
Hi Miguel

I'd tried all three methods I found (Monticello, Installer, and Gofer ).

Now I've done what you suggested and the install works perfectly.
And Magma seems to work.

Thanks for your help.

David