【问题标题】:Installing Smalltalk project from GitHub Repository从 GitHub 存储库安装 Smalltalk 项目
【发布时间】:2016-09-20 23:26:36
【问题描述】:

首先:我以前从未使用过 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 脚本 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 包似乎丢失了。您正在开发什么操作系统?
  • 我已经重复了您在 Mac 的全新安装中描述的相同步骤,并且效果很好。
  • @MaxLeske 我在 Windows 上工作,我使用 Squeak 的一体化版本(应该在 Windows、Mac 和 Linux 上运行)。

标签: github smalltalk squeak metacello


【解决方案1】:

你说得对,那是行不通的。 OSProcess 尚未被标记为与 Squeak 5.1 兼容,即使是,它也没有被 Metacello 引入。我会向开发者报告。

与此同时,您可以使用

加载 OSProcess
(Installer ss project: 'OSProcess') install: 'OSProcess-dtl.98'

【讨论】:

  • 谢谢,你帮了很多忙。现在我可以加载上面给出的 repo。你知道如何加载这个repo吗?它似乎错过了 BaselineOf 目录。
  • 空间清理不是 Metacello 项目。你应该这样做:(1)​​克隆回购; (2) 在 Squeak 中添加一个 Monticello Filetree 存储库并使用 repo 的 'packages' 目录 (3) 通过 monticello 手动加载包(这里的字母顺序似乎很好)
  • @Tobias 谢谢指导 :)
猜你喜欢
  • 1970-01-01
  • 2021-12-27
  • 2013-04-28
  • 2014-01-18
  • 2020-09-19
  • 2021-01-17
  • 2021-05-09
  • 1970-01-01
  • 2022-12-04
相关资源
最近更新 更多