本文介绍了raku REPL 在 WINdows 8 下的“cygwin"上似乎没有响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Windows 8 下有 cygwin 并且我已经安装并运行了 raku,我理解它只是 Perl6.我想打印一些字符串和数字,但 say 并没有完成这项工作(请参阅下面的黑色片段)它只是与此处描述的不同:

I have cygwin under Windows 8 and I've installed and run raku which I understand to be just Perl6.I wanted to print some strings and numbers but say doesn't do the job (please see the black snippet below) it just do nothing unlike it is described here:

hynek0@hynek /cygdrive/c/Users/hynek0/Desktop/FU
$ raku --version
This is Rakudo version 2020.05.1 built on MoarVM version 2020.05
implementing Raku 6.d.

编辑 2

编辑 3

推荐答案

这可能与 https://github.com/rakudo/rakudo/issues/4378.看起来 Raku 认为键盘后面没有人($*IN.t 返回 False),因此切换到从 STDIN 执行程序.

This is probably the same bug as reported with https://github.com/rakudo/rakudo/issues/4378 . It looks like Raku thinks there's nobody behind the keyboard ($*IN.t returning False) and thus switches to slurping the program to execute from STDIN.

此时,我只能看到一个解决方法:使用 raku -e 执行示例代码.

At this point, I can only see a workaround: execute you example code with raku -e.

这篇关于raku REPL 在 WINdows 8 下的“cygwin"上似乎没有响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-14 18:36