fp-lean icon indicating copy to clipboard operation
fp-lean copied to clipboard

`lake exe fp-lean` fails with `bash: doug: command not found` and `Non-zero exit code from 'sort --shared < test-data'`

Open euprunin opened this issue 7 months ago • 3 comments

lake exe fp-lean fails with bash: doug: command not found and Non-zero exit code from 'sort --shared < test-data':

% git clone https://github.com/leanprover/fp-lean
% cd fp-lean
% lake exe fp-lean
✖ [336/348] Building FPLean.MonadTransformers.ReaderIO
error: FPLean/MonadTransformers/ReaderIO.lean:31:0: Non-zero exit code from 'doug' (127).
  Stdout:
  Stderr:
    bash: doug: command not found
error: Lean exited with code 1
✖ [340/348] Building FPLean.ProgramsProofs.InsertionSort
error: FPLean/ProgramsProofs/InsertionSort.lean:785:0: Mismatched commands output:
  $ expect -f ./run-usage # sort
- Expected single argument, either "--shared" or "--unique"
…
error: FPLean/ProgramsProofs/InsertionSort.lean:818:0: Non-zero exit code from 'sort --shared < test-data' (2).

Environment:

% sw_vers
ProductName:		macOS
ProductVersion:		15.1.1
BuildVersion:		24B2091
% which doug
doug not found
% which sort
/usr/bin/sort

euprunin avatar Jun 03 '25 06:06 euprunin

After checking .github/workflows/ci.yml, I found that running lake build and lake build subverso-extract-mod in the examples directory, then lake exe fp-lean in the book directory, resolves the issue.

zipfried avatar Jun 04 '25 12:06 zipfried

@zipfried Thanks! This seems to be working:

% git clone https://github.com/leanprover/fp-lean
% cd fp-lean/
% cd examples/
% lake build
% lake build subverso-extract-mod
% cd ../book/
% lake exe fp-lean
% open _out/html-multi/index.html

euprunin avatar Jun 04 '25 19:06 euprunin

Suggested fix in: https://github.com/leanprover/fp-lean/issues/197

euprunin avatar Jun 05 '25 06:06 euprunin