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
Data race in bubbletea.NewProgram.WithColorCache.func1() #910
Comments
Same for me can someone take a look at this Click here for the race condition log
we wanted to use the pack for our fiber cli: to support our project with a cli reproducible with test command: go test ./... -race would also say that you should activate race detection when running your bubbletea/.github/workflows/build.yml Line 36 in 1c6e74d
thank you, great work on the project |
It looks like this race condition is being caused by the |
can you share a reproducible? I can then take a look... thanks! |
FWIW, I believe that in tests, you'll need to set a different output/input for each test. Also might worth a look: https://github.com/charmbracelet/x/tree/main/exp/teatest |
Describe the bug
Data race when runnig test code with
-race
Trace
Code here isn't doing anything just calling into bubbletea code, this can be workarounded by using
tea.WithOutput(os.Stdout)
so thattermenv.WithColorCache
is not called.The text was updated successfully, but these errors were encountered: