can be a good solution mariano On Aug 23, 2010, at 10:43 AM, Mariano Martinez Peck wrote:
On Mon, Aug 23, 2010 at 10:36 AM, Tudor Girba <tudor.girba@gmail.com> wrote: Gofer is the base class with which you can load everything else. So, why would it not make sense to have a utility method to load Metacello from Gofer?
Maybe. But maybe the applications wants to decide how or what to load from Metacello. For example, in ConfigurationOfPharo I may want to bootstrap the whole Metacello (UI, tutorial, tests, etc) because I want them all for PharoDev. Others may just want the core. Of course, we can make Gofer to load the core, and I can put all the rest of the Metacello dependencies in a baseline of ConfigurationOfPharo rather than in #ensureMetacello. But still, maybe there are other problems, like versions. Maybe in a particular Conf you want an specific version of Metacello, or an specific repo (I don't know why, but suppose).
I think we can do a ensureMetacello delegated automatucally to gofer and to call it from ConfigurationOf. In addition, those who need special metacello packages or versions or whatever rather than the core (what will be done in Gofer), could be managed as any other dependency.
Dale what do you think?
Cheers
Mariano
Cheers, Doru
On 20 Aug 2010, at 23:17, Mariano Martinez Peck wrote:
On Fri, Aug 20, 2010 at 4:19 PM, Tudor Girba <tudor.girba@gmail.com> wrote: Indeed, now we could add this method in Gofer.
I didn't understand. Which method ? why in Gofer?
Cheers, Doru
On 20 Aug 2010, at 16:01, Mariano Martinez Peck wrote:
On Fri, Aug 20, 2010 at 3:54 PM, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
The problem is in ConfigurationOfRPackage as in #ensureMetacello is like this:
ensureMetacello Smalltalk at: #MetacelloProject ifAbsent: [ Gofer new disableRepositoryErrors; url: 'http://seaside.gemstone.com/ss/metacello'; package: 'ConfigurationOfMetacello'; load. (Smalltalk at: #ConfigurationOfMetacello) project latestVersion load: #('default' 'UI') ]
I hate the fact that we should copy all the code around.... what a crap.
This was discussed several, severaaaaal times. As I remember the problem was that otherwise you class depends on a base class that should be included in the image you are working on. But I guess we don't have problem to add such base class in PharoCore...if we have Gofer..
If you see, it is loading #('default' 'UI') of metacello..... UI -> OB.
change that to #('default') and wala
BTW, I would use the latest recommended #ensureMetacello:
http://code.google.com/p/metacello/wiki/EnsureMetacello
cheers
mariano
And stuck because OB does not load in 1.2 so I lost one hour...... boring.
Stef
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-- www.tudorgirba.com
"Live like you mean it."
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-- www.tudorgirba.com
"Every successful trip needs a suitable vehicle."
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project