Zulip Chat Archive

Stream: lean4

Topic: failed to delete .olean


Jovan Gerbscheid (Dec 13 2023 at 12:38):

I'm on a new laptop, and run into the following issue: I'm working in B.lean which imports A.lean. I then make a change in A.lean and reload B.lean. Then I get this error:

error: stderr:
failed to delete '.\build\lib\A.olean': 5

I can manually delete the oleans, but that is quite inconvenient. (When I do so, it tells me I can't move them to the bin, but have to permanently delete them instead). Is there a fix?

Kevin Buzzard (Dec 13 2023 at 13:00):

What is your OS?

Mario Carneiro (Dec 13 2023 at 13:01):

windows

Mario Carneiro (Dec 13 2023 at 13:04):

the error message is ERROR_ACCESS_DENIED, so this means your folder is write-protected or the process was not run with enough permission to modify the folder

Jovan Gerbscheid (Dec 13 2023 at 13:57):

Thanks, the folder was indeed set to read-only


Last updated: Dec 20 2023 at 11:08 UTC