nxadm/rakudo-pkg

REPL dependency check for Readline

ToddAndMargo opened this issue · 4 comments

Dear nxadm,

Fedora 31
https://github.com/nxadm/rakudo-pkg/releases

$ rpm -qa rakudo
rakudo-pkg-2019.07.1-03.x86_64

Would you please consider the following Request for Enhancement?

When running REPL and Readline has not been installed, when you use your arrow keys, which I use a lot, you get a lot of

my $history^[[A^[[A
a todd special booboo^[[D^[[D^[[D^[[D^[[D

Would you please consider informing the user that Readline is missing and give zef install Readline as an example of how to install it.

Maybe even consider adding Readline to the package!

Thank you for your consideration,
-T

nxadm commented

Thanks, @ToddAndMargo, I'll leave the issue open while I think about it. Your input is of course welcome.

The only problem I have is that both readline and linenoise integration have been rather spotty with their binary dependencies, so If we do it, we have to make sure we do it on a maintainable way.

I just installed the package (on Debian) and when I went into the REPL the first time I got a message about installing either Readline or Linenoise with zef.

At first I blindly tried that inside the REPL. I should have known better, but a person new to Raku may not know that. After I left the REPL, installed Readline, and re-entered the REPL, there was no more message.

Great packaging, @nxadm! Thanks so much. I now have my four active servers set up so keeping up with future releases will be a breeze thanks to your efforts. Previously I was installing from source, a bit of a pain for my old, home-grown solution, so I hadn't upgraded since early last year!

nxadm commented

I had a look at the REPL "wrappers" and they don't look stable enough to be added as a dependency. So for now, I will leave it to the users.