Zulip Chat Archive
Stream: lean4
Topic: elan update on Windows gives error
Avi Craimer (Oct 17 2023 at 02:52):
Hi,
I wanted to update my installation of Lean from 4.0 to 4.1.
On windows I opened an admin terminal and ran elan update
leanprover/lean4:nightly update failed - Lean (version 4.0.0-nightly-2022-06-09, commit d0499ebf4d92, Release)
error: could not remove 'elan-bin' file: 'C:\Users\myUserName\.elan\bin\elan.exe'
info: caused by: Access is denied. (os error 5)
Is there another way to update the Lean version on Windows?
Scott Morrison (Oct 17 2023 at 03:38):
I think someone just had this problem and closing VSCode first solved the problem. Could you try that?
Scott Morrison (Oct 17 2023 at 03:39):
but --- you don't actually need to do anything to elan to move from 4.0 to 4.1
Scott Morrison (Oct 17 2023 at 03:39):
you just edit the lean-toolchain file in your project
Avi Craimer (Oct 17 2023 at 12:01):
Ok, so I exited VSCode and ran the elan update
and it worked. It updated it to the nightly build 4.3.
I don't know yet about using project files. I've just been editing the code in individual .lean files.
Last updated: Dec 20 2023 at 11:08 UTC