Zulip Chat Archive

Stream: lean4

Topic: Lake deleted my stuff


Max Nowak 🐉 (Jan 10 2025 at 16:30):

This is technically user error on my part, but I did the following in my lakefile: require stuff from "../Stuff", ran lake update, and the next thing I see is my entire Stuff folder getting deleted, including its .git subdirectory. I'm on Lean 4.12. I imagine those files are now unrecoverable?

Henrik Böving (Jan 10 2025 at 16:33):

Those files should certainly be recoverable. A mere rm does not actually touch the content on disk but just marks it as "overwriteable if required" so unless you continued doing a lot of writes afterwards and have bad luck we should certainly be able to recover stuff. I would recommend to shutdown your system and boot from a live distro, then run recovery tools such as photorec to try and see if they are still on your drive.

Max Nowak 🐉 (Jan 10 2025 at 16:35):

Ah, oof. I lost my last commit, but I think it'll be less effort to just re-do that by hand. Thanks though

Junyan Xu (Jan 10 2025 at 16:53):

The second time this bug was rediscovered recently. I assume no server is still distributing the buggy lake version now, but it might still be present on many people's local machines? I forgot whether and when this appeared in the #announce channel; maybe the topic should be pinned to remind everyone to check their lake version?


Last updated: May 02 2025 at 03:31 UTC