<div dir="ltr"><div><div>Dario,<br><br></div>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 ...<br><br></div>I really recommend that you use the latest version of Metacello and get into the habit of doing `Metacello new` style loads for everytyhing...<br><br>Dale<br><div><br>[1] <a href="https://github.com/dalehenrich/metacello-work#pharo-older-than-pharo30">https://github.com/dalehenrich/metacello-work#pharo-older-than-pharo30</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 23, 2014 at 12:16 PM, <a href="mailto:dtrussardi@tiscali.it">dtrussardi@tiscali.it</a> <span dir="ltr"><<a href="mailto:dtrussardi@tiscali.it" target="_blank">dtrussardi@tiscali.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Dale,<br><div><br></div><div><span style="white-space:pre-wrap">        </span>thanks,<span class=""><br><blockquote type="cite"><div dir="ltr"><div><div><div><div><div><div><div><div><div>Dario,<br><br></div>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.<br><br></div>You've probably seen that these days I recommend using the scripting api where you would do <br></div>the load this way:</div></div></div></div></div></div></div></blockquote><br></span></div><div><span class=""><blockquote type="cite"><div dir="ltr"><div><div><div><div><div> Metacello new<br></div> configuration: 'Pier3AddOns';<br></div> version: '3.0.4';<br></div> load.<br></div></div></div></blockquote><div><br></div></span><div><div>but in my Pharo 2.0 #20628<span style="white-space:pre-wrap">        </span> image i don't have Metacello class!</div><div><br></div><div>I do:</div><div><span style="white-space:pre-wrap">        Gofer new
                        squeaksource: 'MetacelloRepository';
                        package: 'ConfigurationOfMetacello';
                        load.
( ConfigurationOfMetacello project version: #stable) load</span></div><div><span style="white-space:pre-wrap">        </span></div><div>But i don't found the relative class.</div><div><br></div><div><br></div><div>Ciao,</div><div><span style="white-space:pre-wrap">        </span></div><div><span style="white-space:pre-wrap">        </span>Dario</div></div><div><div class="h5"><br><blockquote type="cite"><div dir="ltr"><div><div><br></div>then print the following to check which version has been loaded:<br> <br></div><div> Metacello image<br></div><div> configuration: 'Pier3AddOns;<br></div><div> list.<br><br></div><div>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 ...<br><br></div><div>You do have to use the the `Metacello new` style load expressions to cause projects to be registered ...<br><br>Dale<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 23, 2014 at 9:46 AM, <a href="mailto:dtrussardi@tiscali.it" target="_blank">dtrussardi@tiscali.it</a> <span dir="ltr"><<a href="mailto:dtrussardi@tiscali.it" target="_blank">dtrussardi@tiscali.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Ciao,<div><br></div><div>First i load:</div><div><span style="white-space:pre-wrap">        </span></div><div><span style="white-space:pre-wrap">        </span>Gofer new</div><p class="MsoNormal"><span> <span style="white-space:pre-wrap">        </span></span>url: '<a href="http://www.squeaksource.com/MetacelloRepository'" target="_blank">http://www.squeaksource.com/MetacelloRepository'</a>;</p><p class="MsoNormal"><span> <span style="white-space:pre-wrap">        </span> </span>package: 'ConfigurationOfPier3AddOns';</p><p class="MsoNormal"><span> <span style="white-space:pre-wrap">        </span></span>load.</p><div><span style="white-space:pre-wrap">                </span></div><div>After i do :<span style="white-space:pre-wrap">        </span><br><span><div><span><span style="white-space:pre-wrap">        </span> </span>(
ConfigurationOfPier3AddOns project version: '3.0.4') load.</div></span><p class="MsoNormal">now i don't understund because after :</p><p class="MsoNormal"><span style="white-space:pre-wrap">        </span>ConfigurationOfPier3AddOns project currentVersion.
<span style="white-space:pre-wrap">        </span></p><p class="MsoNormal"><span style="white-space:pre-wrap">        </span>answer <span style="white-space:pre-wrap">                </span><>3.1.1 [ConfigurationOfPier3AddOns]</p><div><span style="white-space:pre-wrap">                </span>and not 3.0.4</div><div><br></div><div>Thanks,</div><div><br></div><div><span style="white-space:pre-wrap">        </span>Dario</div><p class="MsoNormal"><u></u> <u></u></p>
</div></div><br>_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
<br></blockquote></div><br></div>
_______________________________________________<br>seaside mailing list<br><a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a><br><a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br></blockquote></div></div></div><br></div><br>_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
<br></blockquote></div><br></div>