Open vikramsubramanian opened 4 months ago
Summary: Kuzu Shell pasting cuts the query short randomly, especially in the VSCode terminal.
Based on the provided information, the issue seems to be related to pasting multi-line queries into the Kùzu shell, particularly when using the VSCode terminal. The end of some lines is being cut short, which suggests a problem with the handling of clipboard data or the input buffer in the shell interface.
To address this issue, consider the following steps:
kuzu shell
input handling, particularly how it processes pasted text. Look for functions like paste_query_into_shell
or process_shell_input
in the shell's source code.kuzu shell
that allows users to paste multi-line queries more reliably, possibly by providing a special paste mode that waits for the entire clipboard content to be processed before executing the query.None of the provided code snippets seem directly related to the kuzu shell
or its input handling mechanism. Therefore, the solution would involve writing or modifying the shell's code to handle pasted queries more robustly, which is not present in the snippets.
tools/nodejs_api/test/test_connection.js
This snippet includes tests for query execution which might be related to the issue of pasting queries into the shell and could contain logic for handling query strings.
tools/java_api/src/test/java/com/kuzudb/test/QueryResultTest.java
This snippet contains tests for query results which may be relevant to understand how query results are processed and if there's any issue related to cutting off query strings.
test/c_api/query_result_test.cpp
This snippet includes tests for query results in C API which might be relevant to the issue if the problem is related to the underlying C API handling of query strings.
I am pasting the following query into the kuzu shell:
This may not be a valid query (I'm using the shell to test if certain things are valid or not), but often times the shell cuts the end of some of the lines short. For example, the last line may be
LIMI
instead ofLIMIT 20
. This behaviour occurs very randomly.Update: it seems like this issue occurs rather frequently in the vscode terminal. )