Skip to content
This repository has been archived by the owner on Oct 14, 2023. It is now read-only.

Default recover_from_error to false for most commands #1448

Closed
wants to merge 2 commits into from

Conversation

Kha
Copy link
Member

@Kha Kha commented Mar 9, 2017

No description provided.

@@ -1,6 +1,6 @@
type_error_at_eval_expr.lean:3:0: error: eval_expr failed due to type error
nested exception message:
type mismatch at definition '_eval_expr.16.423', has type
type mismatch at definition '_eval_expr.16.436', has type
list ℕ
but is expected to have type
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test is quite flaky

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@leodemoura Should we just replace integral name parts with _ or something by default? Of course, ideally users should never see private names at all (by default).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a good idea. BTW, we should have an option for disabling this kind of cleanup. The option is mostly for ourselves when debugging crazy bugs.

@Kha
Copy link
Member Author

Kha commented Mar 9, 2017

It can be argued whether commands such as eval should change the exit code, but I don't think any of these need error recovery per se.

@gebner
Copy link
Member

gebner commented Mar 13, 2017

I think that for now this change is fine. But in the long term, we want to have error recovery wherever possible, so that we can do type-directed autocompletion (e.g. of projector notations).

If I see it correctly, the motivating issue for this change was that we didn't fail on errors in run_cmd, right? This will be fixed when we merge #1405. Are there any other reasons to avoid error recovery?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants