This PR improves the consistency of error message formatting by rendering addenda of several existing error messages as labeled notes and hints.
53 lines
1.8 KiB
Text
53 lines
1.8 KiB
Text
{"version": 1,
|
|
"uri": "file:///4880.lean",
|
|
"diagnostics":
|
|
[{"source": "Lean 4",
|
|
"severity": 1,
|
|
"range":
|
|
{"start": {"line": 16, "character": 12},
|
|
"end": {"line": 17, "character": 0}},
|
|
"message":
|
|
"could not synthesize default value for field 'h1' of 'B' using tactics",
|
|
"fullRange":
|
|
{"start": {"line": 16, "character": 12},
|
|
"end": {"line": 20, "character": 0}}},
|
|
{"source": "Lean 4",
|
|
"severity": 1,
|
|
"range":
|
|
{"start": {"line": 16, "character": 12},
|
|
"end": {"line": 17, "character": 0}},
|
|
"message":
|
|
"failed to synthesize\n A\n\nHint: Additional diagnostic information may be available using the `set_option diagnostics true` command.",
|
|
"fullRange":
|
|
{"start": {"line": 16, "character": 12},
|
|
"end": {"line": 20, "character": 0}}},
|
|
{"source": "Lean 4",
|
|
"severity": 1,
|
|
"range":
|
|
{"start": {"line": 22, "character": 17},
|
|
"end": {"line": 22, "character": 20}},
|
|
"message":
|
|
"could not synthesize default value for parameter '_h1' using tactics",
|
|
"fullRange":
|
|
{"start": {"line": 22, "character": 17},
|
|
"end": {"line": 22, "character": 20}}},
|
|
{"source": "Lean 4",
|
|
"severity": 1,
|
|
"range":
|
|
{"start": {"line": 22, "character": 17},
|
|
"end": {"line": 22, "character": 20}},
|
|
"message":
|
|
"failed to synthesize\n A\n\nHint: Additional diagnostic information may be available using the `set_option diagnostics true` command.",
|
|
"fullRange":
|
|
{"start": {"line": 22, "character": 17},
|
|
"end": {"line": 22, "character": 20}}},
|
|
{"source": "Lean 4",
|
|
"severity": 1,
|
|
"range":
|
|
{"start": {"line": 34, "character": 13},
|
|
"end": {"line": 35, "character": 0}},
|
|
"message": "unsolved goals\n⊢ A",
|
|
"leanTags": [1],
|
|
"fullRange":
|
|
{"start": {"line": 34, "character": 13},
|
|
"end": {"line": 36, "character": 0}}}]}
|