Skip to content

How to use a local Lean project? #38

@TitiSkywalker

Description

@TitiSkywalker

Hello! I have a customized local Lean project. I followed the README instructions:

project = LocalProject(
    directory="/path/to/my/project/", auto_build=False
)
config = LeanREPLConfig(project=project)

For REPL to work, I included it in my project's lakefile.toml

[[require]]
name = "REPL"
git = "https://github.com/leanprover-community/repl"

I already executed lake update successfully, so I turned off auto_build. However, the LeanREPLConfig line triggers the following error:

ValueError: An error occurred while preparing the Lean REPL. The requested Lean version `v4.28.0-rc1` does not match the fetched Lean version in the repository `v4.8.0-rc1`.Please open an issue on GitHub if you think this is a bug.

Is there a way to change the v4.8.0-rc1 setting? My local project is using Lean 4.28.0-rc1. 😺

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions