lean icon indicating copy to clipboard operation
lean copied to clipboard

exceptions when saving oleans are not user-visible

Open collares opened this issue 2 years ago • 0 comments

Prerequisites

  • [x] Put an X between the brackets on this line if you have done all of the following:
    • Checked that your issue isn't already filed.
    • Reduced the issue to a self-contained, reproducible test case.

Description

The olean compilation process emits user-friendly messages for several failure scenarios, such as https://github.com/leanprover-community/lean/blob/v3.45.0/src/library/module_mgr.cpp#L128. However, the failure is not notified to the user. This includes heartbeat exception reporting, as in #749.

Steps to Reproduce

  1. Create an empty olean and remove write permissions
  2. Use lean --make to compile something that would overwrite the above file

Expected behavior: Non-zero exit code and a message

Actual behavior: No reported error

Reproduces how often: 100%

Versions

Lean (version 3.45.0, commit 22b09be35ef6, Release)

collares avatar Jul 29 '22 12:07 collares