Skip to content
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

Writing a query in an interactive session before plugin messages have been output causes the session to jump to a new blank line #1085

Closed
MichaelBurgess opened this issue Nov 8, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@MichaelBurgess
Copy link
Contributor

MichaelBurgess commented Nov 8, 2021

Describe the bug
If you start a new interactive session (with steampipe query), it looks like we asychronously gather up any plugin messages to display. In my env I have all 51 plugins installed, including the CSV plugin which outputs a message paths must be configured.

If I start typing my query straight after launch e.g. > select * from aws., then once the messages are ready, they are written out and it causes the session input position to jump to a new indented blank line (which seems to be indented by more than the number of characters that I have already typed before this happened).

Welcome to Steampipe v0.9.0
For more information, type .help
> select * from aws.
paths must be configured
                    >

I have to re-type what I wrote before to proceed.

Steampipe version (steampipe -v)
Example: v0.9.0

To reproduce
As a minimum, install the csv plugin, ideally with a few more (I feel like this increases the amount of async work at startup?). Enter interactive session with steampipe query and start typing a query as soon as the session starts and you see the > character.

Expected behavior
The output of this message should not cause my typing to be interrupted and the session should not be pushed down to the next line that has lost all my previous input.

@MichaelBurgess MichaelBurgess added the bug Something isn't working label Nov 8, 2021
@MichaelBurgess
Copy link
Contributor Author

I do also see some jumping if you wait after launching interactive query session, even without entering a query/command:

Welcome to Steampipe v0.9.0
For more information, type .help
>
paths must be configured
  >

...note the new query line and the 2 blank spaces before the >.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant