neurolabs / henplus

HenPlus is a SQL shell that can handle multiple sessions in parallel. The commandline interface with the usual history functions features TAB-completion for commands, tables and columns. Database connect via JDBC.
GNU General Public License v2.0
97 stars 51 forks source link

Tab completition troubles #36

Closed ochaloup closed 10 years ago

ochaloup commented 10 years ago

Hi,

as I'm not able to find some contact on devs I'm putting this as a bug here. Thanks for the henplus. It's very nice tool.

To my problem: in short tab completion does not work for me. I've tried to investigate a bit around and the problem is that readline library on call here https://github.com/neurolabs/henplus/blob/master/src/henplus/HenPlus.java#L400 returns all the time empty string. It does not matter what resides on the input line.

I'm not sure whether there is not some settings in my environment that could stop the readline proceeding correctly. Or just things changed after the last readline release?

I'm running Fedora 20, KDE.

Thanks for any hint Ondra

neurolabs commented 10 years ago

Hi,

currently, I'm the only maintainer and I don't have the time to take care of henplus. All I probably can do is review and merge patches. So I'm sorry, but I can't help you out. Any help is appreciated.

I might be able to try to reproduce the bug in the next weeks.

Regards,

Ole

ochaloup commented 10 years ago

yeap, I see. Thank you for the info. I will try to check my troubles on other system configurations and I will see. In case that I will found something I let you know. Otherwise I will probably have to live with not working tab completion functionality :(

magro commented 10 years ago

Hi, I'm using henplus on fedora and I'm using a custom libreadline-java to get completion working. I'll provide the rpm when I'm back at my computer (writing on my mobile right now).

ochaloup commented 10 years ago

@magro: That would great. Looking forward. Thanks a lot!

magro commented 10 years ago

@ochaloup I uploaded the rpm and src rpm to dropbox: https://dl.dropboxusercontent.com/u/1439289/libreadline-java-0.8.0-11jpp.x86_64.rpm https://dl.dropboxusercontent.com/u/1439289/libreadline-java-0.8.0-11jpp.src.rpm IIRC you have to install the rpm with rpm -Uvh --oldpackage libreadline-java-0.8.0-11jpp.x86_64.rpm to replace to version provided by fedora.

In my /usr/bin/henplus the LD_LIBRARY_PATH and CLASSPATH vars look like this:

LD_LIBRARY_PATH=$THISDIR/../lib64:$LD_LIBRARY_PATH
CLASSPATH=$CLASSPATH:/usr/lib/java/libreadline-java.jar

HTH, Martin

ochaloup commented 10 years ago

Perfect. It started to work as if by magic. Once again thanks a lot! Now the user experience of using henplus improved by 100%.

I expect that you don't mind when I close the issue.