install leanprover/lean4 again and again
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 55/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- typescript, vscode
- Domain
- tooling
Research direction
Start with the VS Code extension's toolchain setup for the mathematics_in_lean project and the elan toolchain install leanprover/lean4:v4.30.0 command shown in the log. Trace why the existing /opt/elan/toolchains installation is not reused, then reproduce the behavior and confirm that the project opens without an unnecessary download or clearly reports the remaining prerequisite.
Written by the indexing model from the issue text.
Description
hi,
I have installed lean4 manually using elan-init.sh.
And I have set enviroment variable on linux
export ELAN_HOME=/opt/elan
export PATH=$ELAN_HOME/bin:$PATH
And I also downloaded toolchains from lean4, including version 4.33 and 4.30. Both the 2 versions are un-archeived to /top/elan/toolchains. And I can see they can be found by elan toolchain list:
It seems that my env-var and installation are successful.
However, when I open VSCode with Lean 4 extension installed, and open the cloned mathematics_in_learn. it start to down load and install lean-4.30.0-linux.tar.zst again. The log is shown below:
/home/schoenberg/work/study/lean/mathematics_in_lean> curl --version
curl 7.81.0 (x86_64-pc-linux-gnu) libcurl/7.81.0 OpenSSL/3.0.2 zlib/1.2.11 brotli/1.0.9 zstd/1.4.8 libidn2/2.3.2 libpsl/0.21.0 (+libidn2/2.3.2) libssh/0.9.6/openssl/zlib nghttp2/1.43.0 librtmp/2.3 OpenLDAP/2.5.18
Release-Date: 2022-01-05
Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS brotli GSS-API HSTS HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets zstd
/home/schoenberg/work/study/lean/mathematics_in_lean> git --version
git version 2.34.1
> elan toolchain install leanprover/lean4:v4.30.0
warning: could not check for elan self-update: error during download
info: downloading https://releases.lean-lang.org/lean4/v4.30.0/lean-4.30.0-linux.tar.zst
error: could not download file from 'https://releases.lean-lang.org/lean4/v4.30.0/lean-4.30.0-linux.tar.zst' to '/opt/elan/tmp/k_4b23rp_oa1f5f__file'
info: caused by: error during download
info: caused by: [60] SSL peer certificate or SSH remote key was not OK
=> Operation failed. Exit code: 1.
It is failed due to my bad network.
However, I have installed elan and lean on my PC already, why it comes out to download and install again?
- Dominant language
- TypeScript
- Stars
- 327
- Forks
- 109
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 12
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from leanprover/vscode-lean4
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
leanprover/vscode-lean4#841 ·
Maintainers usually reply within 2 days
-
Completion popup reopens after Esc in Lean files; caused by default quickSuggestionsDelay of 200Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
leanprover/vscode-lean4#800 · 1 comment ·
Maintainers usually reply within 2 days
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
leanprover/vscode-lean4#817 ·
Maintainers usually reply within 2 days
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 58/100
leanprover/vscode-lean4#799 ·
Maintainers usually reply within 2 days
-
RFC
Difficulty 5/5 Over a week Newbie friendliness 35/100
leanprover/vscode-lean4#790 · 1 comment · 1 reaction ·
Maintainers usually reply within 2 days
All issues in leanprover/vscode-lean4
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
laststance/design-world#98 ·
Maintainers usually reply within 1 day
-
Add: KCM True crimeOpenapproved check:passed streams:add
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
triage: failed
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
oxc-project/tsrs#1277 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ardia-browser/ardia#6798 ·
Maintainers usually reply within 1 day