Skip to content

Rewatch: print 'Finished compilation' in watch plain_output mode#8372

Merged
jfrolich merged 1 commit intorescript-lang:masterfrom
jfrolich:watch-plain-output-finished
Apr 19, 2026
Merged

Rewatch: print 'Finished compilation' in watch plain_output mode#8372
jfrolich merged 1 commit intorescript-lang:masterfrom
jfrolich:watch-plain-output-finished

Conversation

@jfrolich
Copy link
Copy Markdown
Collaborator

Summary

When stdout isn't a TTY during rewatch watch, full rebuilds previously produced no completion message. Emit a plain Finished compilation line so parent processes and non-TTY log consumers can observe when a rebuild finishes.

Small UX fix split out of #8241.

Test plan

  • cargo build --release --manifest-path rewatch/Cargo.toml
  • Manual: pipe rewatch watch into cat, trigger a rebuild, confirm the line appears

🤖 Generated with Claude Code

When stdout isn't a TTY during `rewatch watch`, full rebuilds previously
produced no completion message. Emit a plain 'Finished compilation' line
so parent processes and non-TTY consumers can observe when a rebuild
finishes.
@jfrolich jfrolich enabled auto-merge (squash) April 19, 2026 12:47
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Apr 19, 2026

Open in StackBlitz

rescript

npm i https://pkg.pr.new/rescript@8372

@rescript/darwin-arm64

npm i https://pkg.pr.new/@rescript/darwin-arm64@8372

@rescript/darwin-x64

npm i https://pkg.pr.new/@rescript/darwin-x64@8372

@rescript/linux-arm64

npm i https://pkg.pr.new/@rescript/linux-arm64@8372

@rescript/linux-x64

npm i https://pkg.pr.new/@rescript/linux-x64@8372

@rescript/runtime

npm i https://pkg.pr.new/@rescript/runtime@8372

@rescript/win32-x64

npm i https://pkg.pr.new/@rescript/win32-x64@8372

commit: d5db87f

@jfrolich jfrolich merged commit 33bf3c2 into rescript-lang:master Apr 19, 2026
25 checks passed
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