torch / trepl

A pure Lua-based, lightweight REPL for Torch.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`th` does not find `readline`

Atcold opened this issue · comments

On Mac both qlua and th work fine.
On Ubuntu only qlua is able to tab-complete.

I can confirm this is the case on my Ubuntu 14.04 installation as well.

Thank you @daydreamt.
My workaround is using luajit -lenv. But Ctrl + C will exit the program (whereas in th it stops only the current instruction's execution).
On Mac it works fine. I hope someone could have a look at this...

I believe I just fixed it. There was a conflict between the luajit readline and the one dynamically loaded from trepl.

Yup, well done, thank you!
Perhaps it would be nice integrating a reminder to the help, something like ? ? which would tell the user all the nice stuff trepl can do! What do you think about it?

Just pushed a basic help, on ?. Is that good enough?

I would suggest to add something like "type '?' to get help" or similar, right below the two websites. There is actually an empty line after "Scientific...", so we can push the two website addresses one line above and add the help on help.

And, furthermore, it would be nice encapsulating the output of ? in a less-like thing. If you type ? torch.Tensor... well, you have a lot coming out, and there is not always the chance to "scroll".

Well that's a bit more involved, but feel free to do it. Also that inline
help has been staggering for a while, I'm not even sure if it's still 100%
correctly parsed.

On Mon, Jul 7, 2014 at 4:59 PM, Alfredo Canziani notifications@github.com
wrote:

And, furthermore, it would be nice encapsulating the output of ? in a less-like
thing. If you type ? torch.Tensor... well, you have a lot coming out, and
there is not always the chance to "scroll".


Reply to this email directly or view it on GitHub
#3 (comment).

I think this fix just broke what was working on Mac... 😢