by the-owlery · 11y ago · 0 comments
Two major show-stoppers for me right now though:
* In the Perl 6 repl, I can't use my up/down arrows, or ^p/^n to get at previous lines I typed, nor ^a/^e and alt-B/alt-F to navigate on the line.
* In the repl, I can't do `doc(some-func)` to get at docstrings.
Really? In they version I have access to arrow keys and ^p/^n/^a/^e all function.
I've just been informed that what you need is "panda install Linenoise" to install the Linenoise module to get this functionality.
I agree documentation in the language would be nice. A module could handle that nicely.
I'm just writing programs in proper files and executing them.
FYI, you can install p6doc with "panda install p6doc", which is the Perl 6 equivalent of perldoc. I don't believe it has in-language methods yet, but I imagine it wouldn't be that hard. For now, it's a CLI tool.
# p6doc Str.tclc
routine tclc
multi sub tclc(Str:D ) returns Str:D multi method tclc(Str:D:)
returns Str:D
Turns the first character to title case, and all other characters to lower case
(not implemented in Niecza) ==> Fetching p6doc
==> Building p6doc
==> Testing p6doc
# Failed test 'empty blocks argument gives undefined content'
# at t/pod-convenience.t line 31
# Looks like you failed 1 test of 7
# Failed test 'pod-with-title'
# at t/pod-convenience.t line 23
t/pod-convenience.t ..
Failed 2/10 subtests
t/pod-htmlify.t ...... ok
Method 'super' not found for invocant of class 'Array'
in sub visit at /home/me/.panda-work/1441386381_4/lib/Perl6/TypeGraph.pm:89
in sub visit at /home/me/.panda-work/1441386381_4/lib/Perl6/TypeGraph.pm:89
in method topo-sort at /home/me/.panda-work/1441386381_4/lib/Perl6/TypeGraph.pm:92
in method parse-from-file at /home/me/.panda-work/1441386381_4/lib/Perl6/TypeGraph.pm:82
in method new-from-file at /home/me/.panda-work/1441386381_4/lib/Perl6/TypeGraph.pm:30
in block <unit> at t/typegraph.t:8
t/typegraph.t ........
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 8/8 subtests
This is with a fresh (as of minutes ago) `rakudobrew build moar`: $ perl6 -v
This is perl6 version 2015.07.1-728-g9c5cb50 built on
MoarVM version 2015.07-108-g7e9f29eTry:
panda install Linenoise
If that doesn't work, post the response to `perl6 -v` and `perl6 -e '$*DISTRO.perl.say'`.You might want to visit the freenode IRC channel #perl6 to straighten things out.[1] In the meantime I'm going to install the glr branch and see what I find. It might be a few hours (at most a day I think) before I can get back to you.
rakudobrew build moar
rakudobrew build-panda
panda install Linenoise
Thanks.