the progress bar length is always changing when the idea console output.
- 主要語言
- Scala
- 星號
- 36
- 分支
- 12
- PR 合併指標
- 30 天內沒有已合併 PR
描述
4798 / 36850 [=====>---------------------------------------] 13.02 % 1506/s 21s
17718 / 36850 [========================================>--------------------------------------------] 48.08 % 2040/s 9s
this length is always changing.
```scala
val a=Array(1,2,3,4,5,6,7,8,9,10)
var pb = new ProgressBar(a.length)
//pb.showSpeed = true//默认true
for (_ <- 1 to a.length) {
pb.add(1)
Thread.sleep(1500)
}
println("done")
```
```xml
jitpack.io
https://jitpack.io
com.github.matfax
pb-scala
v0.3.2
```
```
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
此 issue 顯示了一個長度會在輸出過程中變化的進度列。查看 repository 中的 ProgressBar 類別,以了解進度列是如何渲染的。檢查計算進度列長度及更新顯示的邏輯。執行提供的 Scala 程式碼片段以重現此問題,然後修改渲染邏輯,讓進度列長度保持穩定。
由索引模型根據 Issue 內容生成。
評估
- 領域
- cli
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100