2017-09-23 91 views
2

我决定尝试一些Pharo并找到https://www.peteruhnak.com/blog/2016/07/25/how-to-use-git-and-github-with-pharo/Pharo GitFileTree SubscriptOutOfBounds添加存储库时

然而,当我试图按照步骤添加存储库,我得到一个错误,每当我试图做到以下几点:

A file dialog will appear (left new File Dialog, right old Morphic File Dialog). Note that you should navigate into the target directory, so in both images you have to go one level deeper into the repository directory.

我有一个地方(从GitHub克隆)的git下库~/development/Pharo/PharoGitTest/它看起来像这样:

.git 
repository # folder 
    (empty) 
.gitignore 
LICENSE 
README.md 
test.md 

这没有什么区别,当我浏览到PharoGitTest一个或PharoGitTest/repository,在这两种情况下,我无法通过单击OK添加存储库菲罗:

enter image description here

我得到的错误:

enter image description here

基本上一些阵列似乎是空的,但预计将有至少1项:

enter image description here

的堆栈帧的代码中显示的git命令的结果来自堆栈跟踪的顶部(见下面的截图)

enter image description here

是:

[12:38:37]:[~/development/Pharo/PharoGitTest]: git rev-parse --is-inside-work-tree 
true 

repository子文件夹内:

[12:39:22]:[~/development/Pharo/PharoGitTest/repository]: git rev-parse --is-inside-work-tree 
true 

看来东西在破稳定版本的GitFileTree或我遵循的指南是错误的。 我该如何解决这个问题?我在Github上看到过其他Pharo或Smalltalk项目,但我还找不到合适的地方,将其作为GitFileTree的一个问题发布。也许这也不是,我在这里做错了事。

附加信息

  • 我菲罗的版本是:pharo6.1-64,上Xubuntu 16.04.3运行。
  • 我的git版本是:git version 2.7.4
+0

您使用的是哪个版本的Pharo? –

+0

@MaxLeske哦对,我应该已经添加了这个信息!我将它添加到帖子中! – Zelphir

+0

@Zelphir isGitRepository中git命令的结果是什么:(在堆栈中,从顶部开始第四个) –

回答

1

(书面9月2017,我应该将固定在未来)

的原因错误是底层库访问的git(OSSubprocess)尚不支持在64位菲罗。

因此,解决方案是使用32位Pharo,因为这仍然是规范发布。

至于gitfiletree本身,新推荐的使用git的方法是使用冰山而不是https://github.com/pharo-vcs/iceberg

相关问题