`kicad-cli jobset run` printed output doesn't increment job numbers
Description
When you run kicad-cli jobset run
on a jobset, it prints a numbered table of the jobs it will run, then prints each job as it's running, but the running numbering refers to every job as "job 1" instead of the incrementing number from the table.
|--------------------------------
| Performing jobs for output 3873e56c-afac-41f9-b5d1-d1ce473a8572
|--------------------------------
|No. | Description
|1 | Execute command
|2 | Execute command
|--------------------------------
|--------------------------------
| Running job 1, Execute command
|--------------------------------
Job successful
|--------------------------------
| Running job 1, Execute command
|--------------------------------
Job successful
2 jobs succeeded, 0 job failed
Steps to reproduce
- have a jobset file with multiple jobs: cli-jobset-test.kicad_jobset (output paths may need to be changed for your system, but shouldn't matter for this issue)
- run
kicad-cli jobset run -f cli-jobset-test.kicad_jobset --output 3873e56c-afac-41f9-b5d1-d1ce473a8572 <some project>.kicad_pro
- See every job is called "job 1"
KiCad Version
Application: kicad-cli arm64 on arm64
Version: 9.0.0, release build
Libraries:
wxWidgets 3.2.6
FreeType 2.13.3
HarfBuzz 10.2.0
FontConfig 2.15.0
libcurl/8.7.1 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.12 nghttp2/1.61.0
Platform: macOS Sonoma Version 14.7.2 (Build 23H311), 64 bit, Little endian, wxBase
Build Info:
Date: Feb 19 2025 13:05:44
wxWidgets: 3.2.6 (wchar_t,wx containers)
Boost: 1.87.0
OCC: 7.8.1
Curl: 8.7.1
ngspice: 44.2
Compiler: Clang 16.0.0 with C++ ABI 1002
KICAD_IPC_API=ON