-
Notifications
You must be signed in to change notification settings - Fork 465
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: make "use `set_option diagnostics true" message conditional on c…
…urrent setting (#4781) 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.
- Loading branch information
Showing
41 changed files
with
125 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
1102.lean:22:35-22:49: error: failed to synthesize | ||
DVR 1 | ||
use `set_option diagnostics true` to get diagnostic information | ||
Additional diagnostic information may be available by using the `set_option diagnostics true` command. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
2273.lean:9:8-9:14: error: failed to synthesize | ||
P 37 | ||
use `set_option diagnostics true` to get diagnostic information | ||
Additional diagnostic information may be available by using the `set_option diagnostics true` command. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
386.lean:9:2-9:46: error: failed to synthesize | ||
Fintype ?m | ||
use `set_option diagnostics true` to get diagnostic information | ||
Additional diagnostic information may be available by using the `set_option diagnostics true` command. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
448.lean:21:2-23:20: error: failed to synthesize | ||
MonadExceptOf IO.Error M | ||
use `set_option diagnostics true` to get diagnostic information | ||
Additional diagnostic information may be available by using the `set_option diagnostics true` command. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
attrCmd.lean:6:0-6:6: error: failed to synthesize | ||
Pure M | ||
use `set_option diagnostics true` to get diagnostic information | ||
Additional diagnostic information may be available by using the `set_option diagnostics true` command. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
defaultInstance.lean:20:20-20:23: error: failed to synthesize | ||
Foo Bool (?m x) | ||
use `set_option diagnostics true` to get diagnostic information | ||
Additional diagnostic information may be available by using the `set_option diagnostics true` command. | ||
defaultInstance.lean:22:35-22:38: error: typeclass instance problem is stuck, it is often due to metavariables | ||
Foo Bool (?m x) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
eagerUnfoldingIssue.lean:6:2-6:17: error: failed to synthesize | ||
MonadLog (StateM Nat) | ||
use `set_option diagnostics true` to get diagnostic information | ||
Additional diagnostic information may be available by using the `set_option diagnostics true` command. | ||
eagerUnfoldingIssue.lean:12:2-12:17: error: failed to synthesize | ||
MonadLog (StateM Nat) | ||
use `set_option diagnostics true` to get diagnostic information | ||
Additional diagnostic information may be available by using the `set_option diagnostics true` command. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
eraseInsts.lean:12:22-12:27: error: failed to synthesize | ||
HAdd Foo Foo ?m | ||
use `set_option diagnostics true` to get diagnostic information | ||
Additional diagnostic information may be available by using the `set_option diagnostics true` command. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
forErrors.lean:3:29-3:30: error: failed to synthesize | ||
ToStream α ?m | ||
use `set_option diagnostics true` to get diagnostic information | ||
Additional diagnostic information may be available by using the `set_option diagnostics true` command. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
kernelMVarBug.lean:5:15-5:20: error: failed to synthesize | ||
HAdd α α α | ||
use `set_option diagnostics true` to get diagnostic information | ||
Additional diagnostic information may be available by using the `set_option diagnostics true` command. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
openScoped.lean:1:7-1:14: error: unknown identifier 'epsilon' | ||
openScoped.lean:4:2-4:24: error: failed to synthesize | ||
Decidable (f = g) | ||
use `set_option diagnostics true` to get diagnostic information | ||
Additional diagnostic information may be available by using the `set_option diagnostics true` command. | ||
Classical.epsilon.{u} {α : Sort u} [h : Nonempty α] (p : α → Prop) : α | ||
openScoped.lean:15:7-15:14: error: unknown identifier 'epsilon' | ||
openScoped.lean:20:7-20:14: error: unknown identifier 'epsilon' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/-! | ||
# Mentioning `set_option diagnostics true` depends on it not already being set | ||
-/ | ||
|
||
/-- | ||
error: failed to synthesize | ||
Coe Nat Int | ||
Additional diagnostic information may be available by using the `set_option diagnostics true` command. | ||
-/ | ||
#guard_msgs in | ||
#synth Coe Nat Int | ||
|
||
set_option diagnostics true | ||
|
||
/-- | ||
error: failed to synthesize | ||
Coe Nat Int | ||
-/ | ||
#guard_msgs in | ||
#synth Coe Nat Int |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.