jaywcjlove / jaywcjlove/loading-cli

Nothing print on terminal

Open
#5 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
56
Forks
5
PR merge metrics
No merged PRs in 30d

Description

I have a loop where i do some computation and I set load.text to a new value.
The problem nothing got printed. If I console.log(m) it print m.
But If I add "await new Promise((resolve) => setTimeout(resolve));" then it is print.
Has anyone ever have this error ?
I used this very usefull library in other part of my projects and no need for await.
So this is very strange.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the loop that updates load.text and compare terminal output with and without the setTimeout-based await. Inspect how the loading-cli instance handles repeated updates during computation. Done means the updated value prints reliably without requiring the extra await.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.