Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: make "use `set_option diagnostics true" message conditional on current setting #4781

Merged
merged 2 commits into from
Jul 31, 2024

Conversation

kmill
Copy link
Collaborator

@kmill kmill commented Jul 18, 2024

It is confusing that the message suggesting to use the diagnostics option is given even when the option is already set. This PR makes use of lazy message data to make the message contingent on the option being false.

It also tones down the promise that there is any diagonostic information available, since sometimes there is nothing to report.

Suggested by Johan Commelin.

…urrent setting

It is confusing that the message suggesting to use the `diagnostics` option is given even when the option is already set. This PR makes use of lazy message data to make the message contingent on the option being false.

It also tones down the promise that there is any diagonostic information available, since sometimes there is nothing to report.

Suggested by Johan Commelin.
@github-actions github-actions bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label Jul 18, 2024
@leanprover-community-mathlib4-bot
Copy link
Collaborator

Mathlib CI status (docs):

  • ❗ Batteries/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase 490d16c80d7bdf96a43345d9b307c21d8fbb6a16 --onto ba3565f441a4533490c339ead6d9ee5b1220110b. (2024-07-18 05:23:14)

@semorrison semorrison added this pull request to the merge queue Jul 31, 2024
Merged via the queue into leanprover:master with commit d5e7dba Jul 31, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants