gpt4 book ai didi

github - 从 GitHub 存储库安装 Smalltalk 项目

转载 作者:行者123 更新时间:2023-12-02 09:01:00 24 4
gpt4 key购买 nike

首先:我以前从未使用过 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'

关于github - 从 GitHub 存储库安装 Smalltalk 项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39605239/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com