Lean 4.5.0 , not working
arademaker opened this issue · comments
I added the lines
require LeanCopilot from git "https://github.com/lean-dojo/LeanCopilot.git" @ v1.1.0
moreLinkArgs := #["-L./.lake/packages/LeanCopilot/.lake/build/lib", "-lctranslate2"]
In the end of a fresh lakefile.lean file, a new project!
ar@tranco puzzles % lean -v
Lean (version 4.5.0, commit 1a3021f98e55, Release)
ar@tranco puzzles % elan show
installed toolchains
--------------------
leanprover/lean4:nightly-2023-12-31
leanprover/lean4:stable (default)
active toolchain
----------------
leanprover/lean4:stable (overridden by '/Users/ar/r/puzzles/lean-toolchain')
Lean (version 4.5.0, commit 1a3021f98e55, Release)
ar@tranco puzzles % lake update LeanCopilot
error: ./lakefile.lean:14:78: error: unknown identifier 'v1'
error: ./lakefile.lean:14:82: error: invalid field notation, identifier or numeral expected
error: ./lakefile.lean:14:83: error: unexpected token; expected command
error: ./lakefile.lean: package configuration has errors
any idea?
Do I need to also add Mathlib to the project?
OK, solved
import Lake
open Lake DSL
package «puzzles» where
moreLinkArgs := #["-L./.lake/packages/LeanCopilot/.lake/build/lib", "-lctranslate2"]
lean_lib «Puzzles» where
-- add library configuration options here
@[default_target]
lean_exe «puzzles» where
root := `Main
require LeanCopilot from git "https://github.com/lean-dojo/LeanCopilot.git" @ "v1.1.0"