You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On first use of elan it is complaining about a nonexistant lean version it cannot download.
I think I did a make install for lean4 maybe a month ago. I only installed elan today. It had complained that I had an existing installation of lean in /usr/local/bin so I deleted what lean things I had in /usr/local/bin and then (possibly after using vscode version management|setup|install elan) I installed elan from the command line with instructions for the development setup;
$ curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh -s -- --default-toolchain none
$ elan --help
elan 3.0.0 (cdb40bff5 2023-09-08)
...
$ elan show
info: downloading component 'lean'
Error(Download(HttpStatus(404)), State { next_error: None, backtrace: InternalBacktrace { backtrace: None } })
(error: could not download nonexistent lean version `lean4`, could not download file from 'https://github.com/leanprover/lean4/releases/expanded_assets/lean4' to '~/.elan/tmp/8pa8skdbpse1bjdz_file')
$ elan update
info: syncing channel updates for 'stable'
info: latest update on stable, lean version v4.4.0
info: checking for self-updates
leanprover/lean4:stable unchanged - Lean (version 4.4.0, commit ca7d6dadb9e1, Release)
$ lean --version
info: downloading component 'lean'
Error(Download(HttpStatus(404)), State { next_error: None, backtrace: InternalBacktrace { backtrace: None } })
error: could not download nonexistent lean version `lean4`
info: caused by: could not download file from 'https://github.com/leanprover/lean4/releases/expanded_assets/lean4' to '~/.elan/tmp/wkb9xgujj9pmi28v_file'
info: caused by: http request returned an unsuccessful status code: 404
$ elan default stable
info: syncing channel updates for 'stable'
info: latest update on stable, lean version v4.4.0
info: downloading component 'lean'
182.6 MiB / 182.6 MiB (100 %) 53.2 MiB/s ETA: 0 s
info: installing component 'lean'
info: default toolchain set to 'stable'
stable installed - Lean (version 4.4.0, commit ca7d6dadb9e1, Release)
$ elan update
info: syncing channel updates for 'stable'
info: latest update on stable, lean version v4.4.0
info: syncing channel updates for 'stable'
info: latest update on stable, lean version v4.4.0
info: checking for self-updates
stable unchanged - Lean (version 4.4.0, commit ca7d6dadb9e1, Release)
leanprover/lean4:stable unchanged - Lean (version 4.4.0, commit ca7d6dadb9e1, Release)
$ elan show
info: downloading component 'lean'
Error(Download(HttpStatus(404)), State { next_error: None, backtrace: InternalBacktrace { backtrace: None } })
installed toolchains
--------------------
stable (default)
leanprover/lean4:stable
active toolchain
----------------
(error: could not download nonexistent lean version `lean4`, could not download file from 'https://github.com/leanprover/lean4/releases/expanded_assets/lean4' to '~/.elan/tmp/h8u7t_gg0mikuuyb_file')
I have these in my profile;
$ type lean
lean is ~/.elan/bin/lean
$ type leanmake
leanmake is ~/.elan/bin/leanmake
$ type leanc
leanc is ~/.elan/bin/leanc
$ ls ~/.elan/bin
elan* lake* lean* leanc* leanchecker* leanmake* leanpkg*
I was then able to link so I'm good to go but those error messages had me worried that things were messed up;
$ elan toolchain link lean4 build/release/stage1
$ elan toolchain link lean4-stage0 build/release/stage0
$ elan show
installed toolchains
--------------------
stable (default)
lean4
lean4-stage0
leanprover/lean4:stable
active toolchain
----------------
lean4 (overridden by '~/.../lean4/lean-toolchain')
Lean (version 4.6.0, commit 73b87f255824, Release)
$ lake --version
Lake version 5.0.0-src (Lean version 4.6.0, commit 73b87f2558245e3e867d95e1948f4fdeca2ffbf4)
$ lean --version
Lean (version 4.6.0, commit 73b87f255824, Release)
On first use of
elan
it is complaining about a nonexistant lean version it cannot download.I think I did a
make install
for lean4 maybe a month ago. I only installedelan
today. It had complained that I had an existing installation of lean in/usr/local/bin
so I deleted what lean things I had in/usr/local/bin
and then (possibly after using vscodeversion management|setup|install elan
) I installed elan from the command line with instructions for the development setup;I have these in my profile;
The text was updated successfully, but these errors were encountered: