New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
installation doesn't quite work as expected #308
Comments
Thanks for the suggestion. Voila: #309 |
I'm surely misunderstanding how this should work, but if I run Indeed, if I do the slightly perverse thing of alternating I guess my ultimate question is: which build command (or sequence thereof) is optimal for making e.g. vscode as responsive as possible while I edit files importing arbitrary parts of mathlib? |
You should only run |
@gebner As I noted above, the documentation agrees with what you just said, but I find it confusing. Would it be better to do the following, if the goal is to "compile all your dependencies once and for all"?
|
My apologies. I've been messing up. Because #309 just got merged. I would be very grateful if an expert could suggest wording that is not wrong. Because I clearly don't know what I'm doing. |
What about instead running
from your project directory? I've tried this on a brand-new project and it compiled all of mathlib and things seem to be working as intended, that is, I can now import mathlib files in my project and Lean uses the compiled version, and a subsequent |
I refer to the instructions here:
https://github.com/leanprover/mathlib/blob/master/docs/elan.md
These instructions say something a bit confusing, which appears almost contradictory:
Empirically, if you follow these instructions with an empty
./src
directory, nothing happens. I think perhaps the second item should be closer what's said here:(That's step 3 from https://github.com/ImperialCollegeLondon/xena-UROP-2018.)
Accordingly, I'd suggest the following rewording for that item:
If you want to play more, it's better to compile all your potential dependencies once and for all. You can do this by going into my_playground/_target/deps/mathlib/ and running leanpkg build.
The text was updated successfully, but these errors were encountered: