4

首先:我以前从未与 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 

我错过了什么吗?

4

1 回答 1

2

你说的完全正确,这是行不通的。OSProcess 尚未被标记为与 Squeak 5.1 兼容,即使是,它也没有被 Metacello 引入。我会向开发人员报告这一点。

同时,您可以加载 OSProcess

(Installer ss project: 'OSProcess') install: 'OSProcess-dtl.98'
于 2016-09-21T17:09:21.357 回答