Zulip Chat Archive

Stream: lean4

Topic: Lean -o confusing error message


Eric Wieser (Dec 23 2022 at 12:12):

What is this error message telling me to do?

$ ~/.elan/bin/lean -o Mathlib/Algebra/Ring/Pi.lean
Expected exactly one file name

Patrick Massot (Dec 23 2022 at 12:14):

Maybe Mac applied his favorite rounding convention as discussed in https://leanprover.zulipchat.com/#narrow/stream/341532-lean4-dev/topic/.5BRFC.5D.20Int.2Ediv.20convention.

Reid Barton (Dec 23 2022 at 12:19):

I think -o is expecting the output file name

Mac (Dec 23 2022 at 20:35):

@Eric Wieser As Reid notes, -o consumes a single argument (the output filename), which means lean is left with no file names to process, hence the error. The same error occurs if you run lean without any arguments.


Last updated: Dec 20 2023 at 11:08 UTC