Zulip Chat Archive

Stream: general

Topic: lean4 development: use local files instead of stage1


Frederick Pu (Aug 31 2024 at 22:23):

I'm importing a local file I created called "src/Lean/Elab/Womp.lean"
And im getting the following error:

object file '/mnt/c/Users/pufre/Downloads/formal_proofs/lean4/build/release/stage0/../stage1/lib/lean/Lean/Elab/Womp.olean' of module Lean.Elab.Womp does not exist

How do I make lean/elan use the local folder for Lean/Elab?

Kim Morrison (Sep 01 2024 at 23:37):

Have you followed the instructions at https://lean-lang.org/lean4/doc/dev/index.html?

Frederick Pu (Sep 02 2024 at 22:47):

Kim Morrison said:

Have you followed the instructions at https://lean-lang.org/lean4/doc/dev/index.html?

I followed every step except for

curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh -s -- --default-toolchain none

since I already have elan installed.


Last updated: May 02 2025 at 03:31 UTC