-
Notifications
You must be signed in to change notification settings - Fork 285
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
Interactive console becomes unresponsive after ";" query #700
Comments
@aidansteele Thank you for the detailed information on the issue. This will be a great help when debugging the issue We recently did a major refactor of the This must have crept in then. We will take a look into this and publish a fix. |
@aidansteele many thanks for digging into this issue. I have released a fix in version Steampipe version 0.7.1 As @binaek89 mentioned, we have been overhauling the interactive prompt and there is a little more rationalisation still required. The fix you identified is the good tactical solution and that is essentially what I have implemented for now. Medium term, I will be looking at simplifying the result streamer to remove underlying issue. |
Co-authored-by: misraved <[email protected]>
Description: When I enter a line of only a semicolon into the interactive query console, it becomes unresponsive. Ctrl+C and Ctrl+D no longer work. The only option is to Ctrl+Z and then manually SIGKILL the
steampipe
andpostgres
processes.Potential cause:
This code is executed when a query is only the semicolon character:
steampipe/interactive/interactive_client.go
Lines 411 to 415 in b7aa42c
It appears to shortcircuit the typical query execution path, so the main REPL hangs here forever:
steampipe/interactive/interactive_client.go
Lines 121 to 123 in b7aa42c
A workaround: Elsewhere in the file there is a workaround to return control back to the main REPL. Pasting this workaround (
c.resultsStreamer.Done()
) in the first code excerpt does appear to "fix" this bug:steampipe/interactive/interactive_client.go
Lines 153 to 155 in b7aa42c
Discussion: To be honest, I'm not 100% sure what the purpose of the "do nothing and restart interactive session" functionality is - so I can't submit a PR that I'm confident is the correct way to fix this. Hope this bug report helps nonetheless.
The text was updated successfully, but these errors were encountered: