Setup Pier environment

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

Re: Setup Pier environment

Dale Henrichs-3
Dario,

If you load the latest version of Metacello[1] you can use the Metacello class. If you don't load up at least the Metacello Preview, then be aware that currentVersion may give you versions that are later than the one you loaded ...

I really recommend that you use the latest version of Metacello and get into the habit of doing `Metacello new` style loads for everytyhing...

Dale

On Thu, Oct 23, 2014 at 12:16 PM, [hidden email] <[hidden email]> wrote:
Dale,

thanks,
Dario,

The #currentVersion algorithm does a match between the packages loaded and the specifications and the match is based on "latest version matching" and this is an inexact science (as you've seen) ... Most likely in the case you are wondering about, the gemstone packges are identical between version 3.0.4 and 3.1.1 so the #currentVersion algorithm matches 3.1.1.

You've probably seen that these days I recommend using the scripting api where you would do
the load this way:

  Metacello new
    configuration: 'Pier3AddOns';
    version: '3.0.4';
    load.

but in my Pharo 2.0  #20628 image i don't have Metacello class!

I do:
Gofer new squeaksource: 'MetacelloRepository'; package: 'ConfigurationOfMetacello'; load. ( ConfigurationOfMetacello project version: #stable) load
But i don't found the relative class.


Ciao,
Dario


then print the following to check which version has been loaded:
 
  Metacello image
    configuration: 'Pier3AddOns;
    list.

With the scripting API, #currentVersion is loaded. Instead Metacello records the version (project spec) of the project that was actually loaded and is much more accurate ...

You do have to use the the `Metacello new` style load expressions to cause projects to be registered ...

Dale

On Thu, Oct 23, 2014 at 9:46 AM, [hidden email] <[hidden email]> wrote:
Ciao,

First i load:
Gofer new

     url: 'http://www.squeaksource.com/MetacelloRepository';

     package: 'ConfigurationOfPier3AddOns';

     load.

After i do :
 ( ConfigurationOfPier3AddOns project version: '3.0.4') load.

now i don't understund because after :

ConfigurationOfPier3AddOns project currentVersion.

answer  <>3.1.1 [ConfigurationOfPier3AddOns]

and not 3.0.4

Thanks,

Dario

 


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
12