leanprover-community / leanprover-community/mathlib4

Doc bug: "Using mathlib4 as a dependency" tutorial command failed

Open
#11,031 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lean
Stars
4.1k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

Hi there!

I tried the command recommended here:

lake +leanprover-community/mathlib4:lean-toolchain new my_project_name math

And it failed with

info: downloading component 'lean'
Error(Download(HttpStatus(404)), State { next_error: None, backtrace: InternalBacktrace { backtrace: None } })
error: could not download nonexistent lean version `leanprover-community-mathlib4-lean-toolchain`
info: caused by: could not download file from 'https://github.com/leanprover-community/mathlib4/releases/expanded_assets/lean-toolchain' to '/home/james/.elan/tmp/6thtp_96151it0z7_file'
info: caused by: http request returned an unsuccessful status code: 404

I was able to workaround by just creating an empty project and using the "In an existing project" instructions instead.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open the linked wiki page, especially the “In a new project” section, and reproduce the listed lake command to confirm the 404 and nonexistent toolchain error. Compare it with the working “In an existing project” instructions; the documentation is done when the new-project command uses a valid toolchain and succeeds.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.