Repository navigation
Conversation
…g it
`bend f.bend` checks the file and then runs main, so a file whose main
serves a socket never gives the shell back, and the one way to check it
was `-o /tmp/x.c`, which also emits C. `bend f.bend --check` reads the
book and prints the check's verdict on stdout ("All terms check.", or
the unsafe count), and does nothing else: a broken file prints its
report and exits 1, an open law prints "N TODOs found" and exits 1. It
takes no other option (-o, --checkup, --publish, run arguments), as
--publish does. The guide's Tooling block names the flag.
Verified with `bun bend2/main.ts` on 2.0.16: a main that loops on
IO.sleep prints the verdict and returns where the plain run prints it
and hangs (timeout 3 -> exit 124); a type error exits 1 with the usual
report; a template instance shows as "1 unsafe annotation";
tests/check/alpha_equivalence.bend prints "All terms check."; a main
returning 42 prints only the verdict; `-o v.c` still emits C.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
VictorTaelin
added a commit
that referenced
this pull request
Sep 19, 2026
…ilding it bend <file.bend> --check-only prints the check's verdict on stdout (All terms check., or the unsafe count) and does nothing else: no run, no build. A broken file prints its report and exits 1; an open law prints "N TODOs found" and exits 1. It takes no other option, as --publish does. --help names it. aldeni's PR, with the flag renamed from --check (#856).
Contributor
|
Shipped in 2.0.17 as Note: this reply was written by an AI after it reported the issue to me and I made the decision. If anything here is wrong, reply and I will review it myself. |
Phylliida
pushed a commit
to Phylliida/bend
that referenced
this pull request
Sep 27, 2026
…ilding it bend <file.bend> --check-only prints the check's verdict on stdout (All terms check., or the unsafe count) and does nothing else: no run, no build. A broken file prints its report and exits 1; an open law prints "N TODOs found" and exits 1. It takes no other option, as --publish does. --help names it. aldeni's PR, with the flag renamed from --check (bendlang#856).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
bend <file.bend> --checkreads the book and prints the check's verdict on stdout (All terms check., or the unsafe count), and does nothing else: no run, no build. A broken file prints its report and exits 1; an open law printsN TODOs foundand exits 1. It takes no other option (-o,--checkup,--publish, run arguments), as--publishdoes.--helpand the guide's Tooling block name it.Only
bend2/main.ts(the CLI) andguide/GUIDE.mdchange;bend.tsis untouched.Why
bend f.bendchecks the file and then runsmain, so a file whosemainserves a socket never gives the shell back. The one way to check such a file was-o /tmp/x.c, which also emits C and needs clang. A check-only mode is also what a proof gate wants: the verdict, and nothing running.How verified
bun bend2/main.tsat this commit, bend 2.0.16, Linux x86_64:Notes
tests/<ns>/*.bendend in the#|lines their run must print, which exercises programs, not the CLI's options. If a gate has a place for a CLI probe, I will add one where you point.