Navigation Menu

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

Listr breaks if number of tasks overflow the terminal height #150

Open
wsams opened this issue Oct 19, 2020 · 2 comments
Open

Listr breaks if number of tasks overflow the terminal height #150

wsams opened this issue Oct 19, 2020 · 2 comments

Comments

@wsams
Copy link

wsams commented Oct 19, 2020

I'm working on a CLI that has a lot of tasks. I noticed that when the number of tasks increases to the point that they overflow the height of the terminal window, Listr cannot update the tasks on the window accordingly. Basically there aren't enough lines in my window to hold every task. (Note, the commands still work, just the UI is broken.)

I'm expecting a spinner on each task that turns to a green check mark after it completes successful, and then proceeds to the next task. But what I'm seeing are tasks duplicating in the list output. Some of them have a dead spinner. Some are checked. And some tasks don't have a spinner or check mark (or X if failed).

To reproduce, create more tasks than there are lines in your visible terminal window and run the command.

It looks like #53 may resolve this issue. Or maybe support scrolling of long lists that go out of the terminal window. Any thoughts or suggestions?

Thanks,
Weldon

I'm on versions:

"@oclif/command": "1.5.19",
"@oclif/config": "1.13.3",
"@oclif/plugin-help": "2.2.3",
"@oclif/dev-cli": "1.22.2",
@fara-nak
Copy link

we are seeing this issue as well that UI is broken, any plan to fix it?

@futpib
Copy link

futpib commented Jul 26, 2022

I use this renderer as a workaround https://www.npmjs.com/package/@tryghost/listr-smart-renderer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants