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

Multiple SingleBar instances override each others options #64

Closed
BigBrainAFK opened this issue Mar 31, 2020 · 4 comments
Closed

Multiple SingleBar instances override each others options #64

BigBrainAFK opened this issue Mar 31, 2020 · 4 comments
Labels
bug validated issue validated by maintainer

Comments

@BigBrainAFK
Copy link

When I instantiate multiple SingleBar isntances with different formats like

const progBar = new cliProgress.SingleBar({
	format: 'Adding files: [{bar}] {percentage}% | ETA: {eta}s | {value}/{total} files'
}, cliProgress.Presets.shades_classic);

and

const progBar2 = new cliProgress.SingleBar({
	format: 'Getting folders: [{bar}] {percentage}% | ETA: {eta}s | {value}/{total} folders'
}, cliProgress.Presets.shades_classic);

then progBar will also display the format chosen for progBar2 so both act like having format: 'Getting folders: [{bar}] {percentage}% | ETA: {eta}s | {value}/{total} folders'.

Node: 13.10.1
cli-progress: 3.6.0

@AndiDittrich
Copy link
Member

thanks, i'll check this

@AndiDittrich AndiDittrich changed the title [Bug] Multiple SingleBar instances override each others format Multiple SingleBar instances override each others options Mar 31, 2020
@BigBrainAFK
Copy link
Author

BigBrainAFK commented Mar 31, 2020

Heres a test fiile if you want one.

@AndiDittrich
Copy link
Member

the issue is caused by the options caching - an artifact which has to be removed

@AndiDittrich
Copy link
Member

fixed in v3.6.1

@AndiDittrich AndiDittrich added validated issue validated by maintainer and removed validation-pending labels Mar 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug validated issue validated by maintainer
Projects
None yet
Development

No branches or pull requests

2 participants