如何在Squeak中加载Metacello?

时间:2013-01-01 20:09:03

标签: smalltalk squeak repository metacello

众所周知,Metacello的第一个或主要目标是Pharo,但现在看来Squeak 4 is supported。我已经尝试但由于缺少方法而失败。从成绩单:

Starting atomic load
    Loaded -> OSProcess-dtl.65 --- http://www.squeaksource.com/OSProcess --- cache
Finished atomic load
BaselineOf>>projectClass (MetacelloMCBaselineProject is Undeclared) 
ConfigurationOf>>versionNumberClass (MetacelloSemanticVersionNumber is Undeclared) 
Loaded -> Metacello-Base-dkh.103 --- http://seaside.gemstone.com/ss/metacello --- cache
MetacelloProjectRegistration>>version (MetacelloMCBaselineProject is Undeclared) 
MetacelloBaselineSpecGenerator>>projectSpecCreationBlock (MetacelloMCBaselineProject is Undeclared) 
Loaded -> Metacello-Core-dkh.667 --- http://seaside.gemstone.com/ss/metacello --- cache
Loaded -> Metacello-MC-dkh.666 --- http://seaside.gemstone.com/ss/metacello --- cache
Loaded -> Metacello-ToolBox-dkh.131 --- http://seaside.gemstone.com/ss/metacello --- cache
Loaded -> Metacello-FileTree-dkh.29 --- http://seaside.gemstone.com/ss/metacello --- cache
Loaded -> Metacello-GitHub-dkh.22 --- http://seaside.gemstone.com/ss/metacello --- cache
Evaluated -> 1.0-beta.32 [ConfigurationOfMetacello] >> metacelloPrimeRegistry
...finished 1.0-beta.32
...RETRY->ConfigurationOfMetacelloPreview
...RETRY->ConfigurationOfMetacelloPreview
gofer repository error: 'GoferRepositoryError: My subclass should have overridden #downloadFile:to:'...ignoring
...FAILED->ConfigurationOfMetacelloPreview

我正在使用Squeak 4.4-12327图片。对此有何帮助?

3 个答案:

答案 0 :(得分:1)

我刚刚在4.4中运行了这个(由Github上的安装文档提出)并且没有任何问题:

Installer gemsource
project: 'metacello';
install: 'ConfigurationOfMetacello'. 

((Smalltalk at: #ConfigurationOfMetacello) project 
  version: '1.0-beta.32') load.

您使用的代码是什么?

答案 1 :(得分:1)

以上解决方案不再有效

你需要使用下面的代码来获取它

(Installer monticello http:'http://seaside.gemtalksystems.com/ss')
project: 'metacello';
install: 'ConfigurationOfMetacello'. 

((Smalltalk at: #ConfigurationOfMetacello) project 
  latestVersion) load.

答案 2 :(得分:0)

FWIW,从Squeak 5.3(可能更早)开始,现在Metacello安装已集成到Squeak中。

要通过UI加载Metacello,请打开主停靠栏中的“应用程序”菜单,然后选择“首选项向导”。按“完成”,然后在下一个视图中选择要安装的Metacello。

要从代码加载Metacello,请在任何工作空间/ CodeHolder中评估Metacello newInstaller ensureRecentMetacello