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

Wrong path in 2.4 "Meow!"

Open lunaticabs opened this issue 1 year ago • 1 comments

Please quote the text that is incorrect:

echo "It works!" | ./build/bin/feline

In what way is this incorrect?

The path in here should be ./.lake/build/bin/feline. Because the current path should be in root directory in a project folder in general.

lunaticabs avatar Mar 15 '24 12:03 lunaticabs

The book is currently targeting a version of Lean that's a couple of months old. But this will indeed need fixing the next time I update it to the current version (which needs doing soon, much has changed!).

Thanks!

david-christiansen avatar Mar 21 '24 22:03 david-christiansen

The problem still to be still present. Section 2.3 says: After a number of build commands scroll by, the resulting binary has been placed in build/bin. Running ./build/bin/greeting results in Hello, world!. The prefix .lake/ is missing.

fpottier avatar Apr 13 '25 15:04 fpottier

This is now fixed in the update to Lean 4.18 that just came out. Thank you!

david-christiansen avatar Apr 24 '25 14:04 david-christiansen