-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can not input in IDEA console #80
Comments
I've seen similar problems. I don't know the solution. I suspect that the environment is different inside Intellij versus in a terminal, but I don't know enough about terminals to know what that would be. SQLLine is powered by jline2, so it might be worth searching for jline2 problems and solutions; they would probably work for SQLLine too. |
I finally found that, the Debug Console in IntelliJ, is most likely not supported by Jline.
This function call is base on JNI call.
the width may be negetive number, so the cbuf may be an empty string. I can fix it by adding these command args:
It will make Sqlline output normal colorful texts in IDEA. I found the solution:
When you try to interact with Run/Debug Console, it works!. Thanks. |
Thanks for all of your research. Can you please add a section to https://github.com/julianhyde/sqlline/blob/master/HOWTO.md about how to run sqlline in Intellij? I think a lot of people would find it useful. I'm going to re-open this case until we have some documentation. |
Hello, I am using IntelliJ IDEA CE, I launch sqlline using Run/Debug.
When I type Enter. It just begin a new line, and the command doesn't response.
It is expected to show the tables in database.
When run it in Terminal, by:
The terminal works normal, it displays the tables list.
I know this is not a bug. I just want to make sure what the problem is.
Thanks a lot.
The text was updated successfully, but these errors were encountered: