Zulip Chat Archive

Stream: general

Topic: Mathlib compiling despite oleans


view this post on Zulip Adam Topaz (Feb 19 2021 at 15:18):

I think my lean installation is broken :( (see animated gif). Mathlib seems to always want to compile even with a fresh project where oleans are present. Any help / suggestions toward diagnosing the issue would be much appreciated.
test.gif

view this post on Zulip Bryan Gin-ge Chen (Feb 19 2021 at 15:23):

Random thought: is it possible that you inadvertently made changes to core Lean?

view this post on Zulip Adam Topaz (Feb 19 2021 at 15:24):

I don't even know how I would go about doing that, so I don't think that's the issue.

view this post on Zulip Rob Lewis (Feb 19 2021 at 15:25):

You could have jumped to a definition in core and accidentally changed it, maybe

view this post on Zulip Kevin Buzzard (Feb 19 2021 at 15:26):

You right-click on a definition, it opens up a core Lean file, you sneeze and accidentally hit the space bar, then you close your VS Code.

view this post on Zulip Rob Lewis (Feb 19 2021 at 15:26):

Does elan update fix this? I'm not sure

view this post on Zulip Adam Topaz (Feb 19 2021 at 15:26):

Let me try.

view this post on Zulip Adam Topaz (Feb 19 2021 at 15:26):

How do I purge a version of lean using elan?

view this post on Zulip Adam Topaz (Feb 19 2021 at 15:26):

I can purge 3.26.0 and reinstall, I guess.

view this post on Zulip Kevin Buzzard (Feb 19 2021 at 15:27):

That was how Patrick managed to fix up someone else who had did this recently.

view this post on Zulip Adam Topaz (Feb 19 2021 at 15:28):

Do I just remove the .elan/leanprover-community-lean-3.26.0 folder? Or is there an elan flag that does this?

view this post on Zulip Bryan Gin-ge Chen (Feb 19 2021 at 15:29):

You can use elan uninstall, I don't know why it doesn't show up in the help...

view this post on Zulip Rob Lewis (Feb 19 2021 at 15:29):

I'd do it through elan. elan toolchain uninstall

view this post on Zulip Adam Topaz (Feb 19 2021 at 15:29):

Gotcha.

view this post on Zulip Adam Topaz (Feb 19 2021 at 15:30):

yeah it doesn't show up in the elan help menu

view this post on Zulip Rob Lewis (Feb 19 2021 at 15:30):

elan toolchain help

view this post on Zulip Rob Lewis (Feb 19 2021 at 15:30):

There are subcommands

view this post on Zulip Adam Topaz (Feb 19 2021 at 15:30):

Ah!

view this post on Zulip Bryan Gin-ge Chen (Feb 19 2021 at 15:30):

Right, I guess elan uninstall is just short for elan toolchain uninstall.

view this post on Zulip Rob Lewis (Feb 19 2021 at 15:30):

Yeah, it's a little confusing, heh

view this post on Zulip Adam Topaz (Feb 19 2021 at 15:33):

Okay, that seemed to fix it! Thanks everyone!

view this post on Zulip Sebastian Ullrich (Feb 19 2021 at 15:38):

There was a suggestion once to have elan make Lean's files read-only on installation, but it hasn't found somebody willing to implement it so far

view this post on Zulip Adam Topaz (Feb 19 2021 at 15:40):

I did look at the quotient.lean file recently... I must have sneezed like Kevin said :rofl:

view this post on Zulip Johan Commelin (Feb 19 2021 at 16:08):

Sebastian Ullrich said:

There was a suggestion once to have elan make Lean's files read-only on installation, but it hasn't found somebody willing to implement it so far

I just saw it is on the frontpage of my todolist again :oops:

view this post on Zulip Sebastian Ullrich (Feb 19 2021 at 16:12):

...how many pages does your todolist have that it has a frontpage?

view this post on Zulip Johan Commelin (Feb 19 2021 at 16:14):

5 items per page... its on my phone

view this post on Zulip Johan Commelin (Feb 19 2021 at 16:35):

https://github.com/Kha/elan/pull/27

view this post on Zulip Johan Commelin (Feb 19 2021 at 16:35):

This seems to compile. But I've never used rust before... so it might be complete garbage

view this post on Zulip Sebastian Ullrich (Feb 19 2021 at 16:44):

So you didn't test it?

view this post on Zulip Kevin Buzzard (Feb 19 2021 at 16:54):

he never tested his perfectoid spaces either

view this post on Zulip Johan Commelin (Feb 19 2021 at 17:43):

Sebastian Ullrich said:

So you didn't test it?

Nope :see_no_evil:


Last updated: May 16 2021 at 20:13 UTC