首先:我之前从未与Smalltalk合作过,所以这对我来说有点文化震撼.我正在使用Squeak 5.1(32位).
现在问我的问题:我想从GitHub存储库安装一个Smalltalk项目.我使用此代码成功安装了Metacello,在Transcript中执行:
"Get the Metacello configuration (for Squeak users)"
Installer gemsource
project: 'metacello';
addPackage: 'ConfigurationOfMetacello';
install.
"Bootstrap Metacello Preview, using mcz files (#'previewBootstrap' symbolic version"
((Smalltalk at: #ConfigurationOfMetacello) project
version: #'previewBootstrap') load.
"Load the Preview version of Metacello from GitHub"
(Smalltalk at: #Metacello) new
configuration: 'MetacelloPreview';
version: #stable;
repository: 'github://dalehenrich/metacello-work:configuration';
load.
"Now load latest version of Metacello"
(Smalltalk at: #Metacello) new
baseline: 'Metacello';
repository: 'github://dalehenrich/metacello-work:master/repository';
get.
(Smalltalk at: #Metacello) new
baseline: 'Metacello';
repository: 'github://dalehenrich/metacello-work:master/repository';
load.
我还使用以下代码安装了Metacello Scripting API:
Installer gemsource
project: 'metacello';
install: 'ConfigurationOfMetacello'.
如果我现在想要从GitHub存储库安装项目,例如:
Metacello new
baseline: 'Animations';
repository: 'github://hpi-swa/animations/repository';
load.
然后我总是得到这个错误:
gofer repository error: 'GoferRepositoryError: UndefinedObject>>thisOSProcess'...ignoring
我错过了什么吗?
最佳答案 你是绝对正确的,这是行不通的. OSProcess尚未被标记为与Squeak 5.1兼容,即使它是,它也不会被Metacello吸收.我会向开发者报告.
同时您可以加载OSProcess
(Installer ss project: 'OSProcess') install: 'OSProcess-dtl.98'