tt icon indicating copy to clipboard operation
tt copied to clipboard

`tt` connection console hangs during typing commands if delimiter is set

Open psergee opened this issue 2 years ago • 1 comments

Steps to reproduce:

$ tt connect <uri>

> \set delimiter ;

> print('123456');

Console is hanging during typing print('123456'); line. This is due to invocation of the completion handler lua code. After setting a delimiter tarantool expects the code to end with the specified delimiter. But tt built-in lua code does not have this delimiter at the end and the code is not invoked on the server side, so the console waits for 3 sec for each symbol. And it hangs completely after ; and enter. Probably due to the same reason.

psergee avatar Dec 21 '23 16:12 psergee

Stumbled upon the same issue on tt 2.1.0.

tt-user@ubuntu-server:~/testapp$ tt version
Tarantool CLI version 2.1.0, linux/amd64. commit: d7bce7d

After entering \set delimiter ;, the tt console doesn't execute anything including \quit and doesn't respond to ctrl+c and ctrl+d. The only thing that helps is tt restart from another terminal.

image

p7nov avatar Jan 16 '24 09:01 p7nov

Steps to reproduce

dmyger avatar Sep 18 '24 11:09 dmyger