Zulip Chat Archive

Stream: new members

Topic: error: unknown command '+leanprover-community/mathlib4:lean-


Jens Petersen (Sep 05 2024 at 05:28):

Seems worth addressing this mathlib4 readme "bug": https://github.com/leanprover-community/mathlib4/issues/11031 ?

$ lake +leanprover-community/mathlib4:lean-toolchain new your_project_name math
error: unknown command '+leanprover-community/mathlib4:lean-toolchain'

Jens Petersen (Sep 05 2024 at 05:32):

Or is it better open a separate issue for https://github.com/leanprover-community/mathlib4/issues/11031#issuecomment-2008319725 ?

Jens Petersen (Sep 07 2024 at 10:41):

Perhaps it would be better to move this to #mathlib documentation say?

Sebastian Ullrich (Sep 07 2024 at 15:55):

How did you set up Lean? It seems you're not using elan, but you should

Jens Petersen (Sep 07 2024 at 15:59):

Ah thank you - you are right: my lean4 wasn't installed with elan, I built it myself (it is a package for Fedora). Mm, perhaps the error message could make this clearer?

Well if this works for 90%+ of users then I suppose it is not a big deal.


Last updated: May 02 2025 at 03:31 UTC