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

Scope PromptLogger to MillBuildBootstrap#evaluate call to make prompt more intuitive #3632

Merged
merged 3 commits into from
Sep 30, 2024

Conversation

lihaoyi
Copy link
Member

@lihaoyi lihaoyi commented Sep 30, 2024

Now, if you use -w/--watch the prompt starts and ends after each evaluation (which is bounded) rather than around the entire watch (which may last forever). This is much more useful so you can see where each run started and ended and how long it took, v.s. previously where it just tells you how long you've been watching for overall which is usually not something you care about

Also fixed a race condition where the promptUpdaterThread was still running for one iteration even after PromptLogger#close(), causing extra prompts to sometimes be displayed overlapping other logs

@lihaoyi lihaoyi marked this pull request as ready for review September 30, 2024 15:33
@lihaoyi lihaoyi merged commit 49a2811 into com-lihaoyi:main Sep 30, 2024
24 checks passed
@lefou lefou added this to the 0.12.0-RC3 milestone Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants