Skip to content

Cache.IO #172

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
arademaker opened this issue May 29, 2025 · 1 comment
Open

Cache.IO #172

arademaker opened this issue May 29, 2025 · 1 comment

Comments

@arademaker
Copy link

arademaker commented May 29, 2025

I got an error during the setup. Any idea? In the lakefile.toml I added

[[require]]
name = "LeanCopilot"
git  = "https://github.com/lean-dojo/LeanCopilot.git"
rev  = "main"

moreLinkArgs = ["-L./.lake/packages/LeanCopilot/.lake/build/lib", "-lctranslate2"]

This is my environment and the error:

% uname -a
Darwin MacBook-Pro-14-2025.local 24.5.0 Darwin Kernel Version 24.5.0: Tue Apr 22 19:54:43 PDT 2025; root:xnu-11417.121.6~2/RELEASE_ARM64_T8132 arm64

% elan -V
elan 4.1.2 (58e8d545e 2025-05-26)

% cat lean-toolchain
leanprover/lean4:v4.20.0-rc3%

% lake update LeanCopilot
info: toolchain not updated; already up-to-date
info: mathlib: running post-update hooks
✖ [4/12] Building Cache.IO
trace: .> LEAN_PATH=/Users/ar/r/emap-20251-taa/fad/.lake/packages/Cli/.lake/build/lib/lean:/Users/ar/r/emap-20251-taa/fad/.lake/packages/Qq/.lake/build/lib/lean:/Users/ar/r/emap-20251-taa/fad/.lake/packages/proofwidgets/.lake/build/lib/lean:/Users/ar/r/emap-20251-taa/fad/.lake/packages/importGraph/.lake/build/lib/lean:/Users/ar/r/emap-20251-taa/fad/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/Users/ar/r/emap-20251-taa/fad/.lake/packages/plausible/.lake/build/lib/lean:/Users/ar/r/emap-20251-taa/fad/.lake/packages/batteries/.lake/build/lib/lean:/Users/ar/r/emap-20251-taa/fad/.lake/packages/aesop/.lake/build/lib/lean:/Users/ar/r/emap-20251-taa/fad/.lake/packages/mathlib/.lake/build/lib/lean:/Users/ar/r/emap-20251-taa/fad/.lake/packages/LeanCopilot/.lake/build/lib/lean:/Users/ar/r/emap-20251-taa/fad/.lake/build/lib/lean /Users/ar/.elan/toolchains/leanprover--lean4---v4.20.0-rc3/bin/lean /Users/ar/r/emap-20251-taa/fad/.lake/packages/mathlib/Cache/IO.lean -R /Users/ar/r/emap-20251-taa/fad/.lake/packages/mathlib -o /Users/ar/r/emap-20251-taa/fad/.lake/packages/mathlib/.lake/build/lib/lean/Cache/IO.olean -i /Users/ar/r/emap-20251-taa/fad/.lake/packages/mathlib/.lake/build/lib/lean/Cache/IO.ilean -c /Users/ar/r/emap-20251-taa/fad/.lake/packages/mathlib/.lake/build/ir/Cache/IO.c --json
error: /Users/ar/r/emap-20251-taa/fad/.lake/packages/mathlib/Cache/IO.lean:132:11: unknown identifier 'initSrcSearchPath'
error: Lean exited with code 1
Some required builds logged failures:
- Cache.IO
error: build failed
@Peiyang-Song
Copy link
Member

Hi @arademaker , thanks for the report. From reading the error log, I see that the error is from a mathlib file (namely mathlib/Cache/IO.lean). Lean Copilot does not depend on mathlib, so I suspect that error is not from Lean Copilot itself. Most likely your project has mathlib as a dependency, and somehow it is throwing errors here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants