简体   繁体   English

如何在 Squeak 中加载 Metacello?

[英]How to load Metacello in Squeak?

It is known that Metacello first or main target was Pharo, but it seems now that Squeak 4 is supported .众所周知,Metacello 的第一个或主要目标是 Pharo,但现在似乎支持 Squeak 4 I've tried but fails due a missing method.我已经尝试过,但由于缺少方法而失败。 From the Transcript:从成绩单:

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

I am using Squeak 4.4-12327 image.我正在使用 Squeak 4.4-12327 图像。 Any help on this?这有什么帮助吗?

I just ran this (as proposed by the install doc on Github) in 4.4 and had no problems whatsoever:我刚刚在 4.4 中运行了这个(按照 Github 上的安装文档的建议)并且没有任何问题:

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

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

What code are you using?你用的是什么代码?

The above solution is no longer valid上述解决方案不再有效

u need to get it using this below code你需要使用下面的代码来获取它

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

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

FWIW, by now, the Metacello installation is integrated into Squeak since Squeak 5.3 (maybe earlier). FWIW,到目前为止,Metacello 安装已集成到 Squeak 中,因为 Squeak 5.3(可能更早)。

To load Metacello via the UI, open the Apps menu in the main docking bar, and choose the Preference Wizard.要通过 UI 加载 Metacello,请打开主停靠栏中的应用程序菜单,然后选择首选项向导。 Press Done and in the next view, choose Metacello for installation.按 Done,然后在下一个视图中,选择 Metacello 进行安装。

To load Metacello from code, evaluate Metacello new or Installer ensureRecentMetacello in any workspace/CodeHolder.要从代码加载 Metacello, Installer ensureRecentMetacello在任何工作区/CodeHolder 中评估Metacello newInstaller ensureRecentMetacello ensureRecentMetacello。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM