rebol - 尝试运行任何简单的 r3-gui Rebol 脚本但仅在预下载时出错

标签 rebol rebol3

所以我下载了适用于 32 位 Linux 的 Saphir's Rebol 3(我有 Mint 17)。 (正如 draegtun 指出的,不,我没有。他们目前似乎没有提供 Linux 版本。)

如果test.r包含:

load-gui
view [text "Hello World!"]

...我按预期得到一个窗口,这是:

$ ./r3-32-view-linux test.r 
Fetching GUI...

但是如果 test.r 包含:

do %r3-gui.r3
view [text "Hello World!"]

...我明白了:

$ ./r3-32-view-linux test.r 
** Script error: / does not allow none! for its value2 argument
** Where: do resize-panel actor all foreach do-actor either -apply- apply case view do either either either -apply-
** Near: do bind bind/copy [
    size: viewport-box/bottom-right
    ...

r3-gui.r3 文件,我从 http://development.saphirion.com/resources/r3-gui.r3 下载每these instructions ,与 test.r 位于同一目录中,这是我运行的 cd 。 IIUC,两个结果之间不应该有任何差异......显然,我没有。

最佳答案

这可能最终更像是一个查询而不是答案,但这里就是!

从 Rebol 控制台尝试以下操作:

$ ./r3-32-view-linux

>> source load-gui

load-gui: make function! [[
    {Download current Spahirion's R3-GUI module from web.}
    /local data
][
    print "Fetching GUI..."
    either error? data: try [load http://www.atronixengineering.com/r3/r3-gui.r3] [
        either data/id = 'protocol [print "Cannot load GUI from web."] [do err]
    ] [
        do data
    ]
    exit
]]

以上是我使用 Atronix 的 Rebol View 看到的内容。如果您使用的是 Saphirion Rebol View,那么您将看到正在加载不同的 r3-gui.r3(应该是您在问题中下载的那个)。

Atronix r3-gui.r3(日期为 2014 年 2 月 19 日/14:39:59-5:00)早于 Saphirion 版本(日期为:2014 年 5 月 19 日/18 年) :13:14+2:00)。然而,Atronix Rebol View 及其 r3-gui.r3 对我来说一切都很好。

控制台中的下一步:

>> write %r3-gui.r3 read http://www.atronixengineering.com/r3/r3-gui.r3

现在您可以使用此%r3-gui.r3再次尝试您的脚本。但是,如果您确实使用 Saphirion 二进制文件,那么它可能不起作用,我建议从 http://atronixengineering.com/downloads.html 下载 Atronix Rebol 二进制文件。并尝试一下。

希望有帮助吗?

关于rebol - 尝试运行任何简单的 r3-gui Rebol 脚本但仅在预下载时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26492123/

相关文章:

database - Rebol 的 PostgreSQL 驱动程序?

html - 如何自定义 Power-Mezz 的 HTML 过滤器?

parsing - Rebol:如何将字符串拆分为字符

rebol - 使用 parse 复制数据时最小化命名空间污染

asynchronous - 同步读/写端口时避免递归?

rebol - 如何在另一个命名模块中使用单词?

REBOL 布局 : How to create layout words automatically - word has no context?

reflection - 为什么 Rebol 3 不尊重括号中的引用函数参数?

Rebol 收集 : keep the order of the source data in a loop

binding - 关于Rebol 2和3之间的绑定(bind)行为差异的总结是什么?