Skip to Content
steep

reel check

Check tapes for errors without running them.

reel check [flags] <paths> ...

Parses and compiles tapes, and directories of *.tape files, without starting a shell or writing anything. It prints every error and warning of every tape, each starting with file:line:col: and followed by the line with a caret under the column, and fails with exit code 1 if any tape has errors. A misspelled command, setting, key, or theme gets a suggestion.

FlagIs
--strictAlso fails on warnings, such as a Set after the first command, which is ignored, or a Require program that isn't installed
--deny, --skipAs for reel run
--max-cellsChecks the terminal's size, at the start and after each Resize, against this limit, as reel run would

It reads Source tapes and checks Require programs, but writes no Output or Screenshot. A tape without an Output passes, as it may be a test, or be run with -o. Tapes may use the commands of reel test, such as Snapshot.

$ reel check demos/
demos/install.tape:4:1: error: unexpected "Typ" after Set, did you mean "Type"?
  4 | Typ "make install" Enter
    | ^
demos/install.tape:9:5: warning: Set Width after the first command is ignored, as in VHS; move it to the top
  9 | Set Width 1400
    |     ^
error: 1 of 3 tapes failed the check

See Check tapes.

Last updated on