0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

elan toolchain updateがうまくできなかったときのメモ

Posted at

elanのnightlyをアップデートしようとしたらうまくできなかった。

PS > elan toolchain update leanprover/lean4:nightly
info: syncing channel updates for 'nightly'
info: latest update on nightly, lean version nightly-2023-11-03
info: downloading component 'lean'
180.7 MiB / 180.7 MiB (100 %)  23.1 MiB/s ETA:   0 s
info: installing component 'lean'
error: could not remove 'toolchain directory' directory: 'C:\Users\user\.elan\toolchains\leanprover--lean4---nightly'
info: caused by: アクセスが拒否されました。 (os error 5)

どうもVisual Studio CodeでLanguage Serverが動いていたからだめだった。
Visual Studio Codeを閉じたら問題なくelan toolchain updateが動いた。

PS > elan toolchain update leanprover/lean4:nightly
info: syncing channel updates for 'nightly'
info: latest update on nightly, lean version nightly-2023-11-03
info: downloading component 'lean'
180.7 MiB / 180.7 MiB (100 %)  23.2 MiB/s ETA:   0 s
info: installing component 'lean'

  leanprover/lean4:nightly updated - Lean (version 4.4.0-nightly-2023-11-03, commit e217ad3929ed, Release)
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?