Zulip Chat Archive
Stream: general
Topic: New project setup
Eric Rodriguez (Nov 14 2023 at 11:23):
I'm creating a new project, and I'm just wondering if this error message is to be expected?
mathlib: running post-update hooks
could not execute external process '/Users/ericr/.elan/bin/elan'
error: mathlib: failed to fetch cache
Mario Carneiro (Nov 14 2023 at 11:24):
no, that looks bad
Mario Carneiro (Nov 14 2023 at 11:25):
is /Users/ericr/.elan/bin/elan
missing or does it have the wrong permissions?
Eric Rodriguez (Nov 14 2023 at 11:25):
> ls ~/.elan/
settings.toml tmp toolchains update-hashes
Eric Wieser (Nov 14 2023 at 11:26):
which elan
?
Eric Rodriguez (Nov 14 2023 at 11:26):
/usr/local/bin/elan
Mario Carneiro (Nov 14 2023 at 11:27):
this is what mine looks like:
$ ls ~/.elan
bin env settings.toml tmp toolchains update-hashes
Eric Wieser (Nov 14 2023 at 11:27):
I think this will be fixed by #8401
Mario Carneiro (Nov 14 2023 at 11:27):
elan --version
?
Eric Wieser (Nov 14 2023 at 11:28):
I suspect this is a package-manager install rather than an elan shell script install
Eric Rodriguez (Nov 14 2023 at 11:28):
Mario Carneiro said:
elan --version
?
elan 1.4.2 ( )
which is mildly confusing
Mario Carneiro (Nov 14 2023 at 11:29):
I have elan 3.0.0 (cdb40bff5 2023-09-08)
Mario Carneiro (Nov 14 2023 at 11:30):
probably you should follow other Eric's suggestion and uninstall this elan and use the shell script instead
Mario Carneiro (Nov 14 2023 at 11:31):
what is getElan?
doing in #8401, is this just a bad function?
Mario Carneiro (Nov 14 2023 at 11:32):
apparently it is elan
from the path, unless ELAN_HOME
environment var is set in which case it uses that
Mario Carneiro (Nov 14 2023 at 11:33):
so I guess #8401 is the right fix in the case when the .elan
directory doesn't have the bin in it
Sebastian Ullrich (Nov 14 2023 at 11:34):
There is already a discussion at #mathlib4 > lake update: invalid toolchain name
Last updated: Dec 20 2023 at 11:08 UTC