-
Notifications
You must be signed in to change notification settings - Fork 16
LeanInk can't install itself for brew-installed elan #21
Comments
I'm not sure if it even makes sense to keep the installation script. As LeanInk is very sensitive to the used Lean version, it makes much more sense as a local (dev) dependency of a package. |
Then the proper fix could be: add installation to lakefile and install LeanInk into |
Eh, I would like to avoid modifying installed toolchains. By local I really meant local to the package. |
I see, like the usage in https://github.com/leanprover/doc-gen4/blob/main/deploy_docs.sh#L26 : But in the doc of https://github.com/cpitclaudel/alectryon, there's no argument to specify where LeanInk is, so it still need to be on the |
I guess not, but the difference between |
Yes, it's superficial for a developer, but not so for an end user who could be using alectryon to literate lean authoring. I've checked the source of alectryon, there's no way to specify where LeanInk is (i.e. nothing like |
That does sound like a worthwhile addition you could create an issue for |
After a closer look at doc-gen4 ( the lakefile in particular ), now I see what you mean could actually be:
|
Yes, something like that. See also leanprover/lake#80 for a discussion relating to development-only dependencies. |
I've removed the troublesome install script in this PR: #31 and ported the run tests script to lakefile.lean so you can now run |
Description
LeanInk can't install itself for brew-installed elan, the error output is:
Under my
.elan
,ls
shows:no sign of
bin
.The
elan
in use is:Expected behaviour
LeanInk could detect if elan is intalled into
~/.elan
and act accordingly such as soft-lining from/usr/local/bin/
.Reproducing the issue
Environment information
Suggested fix
Two options:
ELAN_BIN="$HOME/.elan/bin/"
in https://github.com/leanprover/LeanInk/blob/main/install.sh that assumes "that lean is already installed as expected we can assume that the .elan folder already exists and is correctly linked."~/.elan
as well1 is more pratical.
Additional Notes
I've bypassed the issue by following https://github.com/leanprover/LeanInk#building-from-source and manually copy
leanInk
to/usr/local/bin
which seems to be working fine.The text was updated successfully, but these errors were encountered: