Zulip Chat Archive
Stream: lean4
Topic: section name mismatch
Yury G. Kudryashov (Jun 04 2023 at 19:54):
Hi, when I'm trying to close a section/namespace with wrong name, the error message says "invalid end, name mismatch" but doesn't tell me what are the conflicting names.
Kevin Buzzard (Jun 04 2023 at 21:33):
On the other hand you have the breadcrumbs at the top telling you this
Yury G. Kudryashov (Jun 04 2023 at 23:47):
Not in case of an unnamed section (at least in Emacs).
Yury G. Kudryashov (Jun 04 2023 at 23:47):
In my case, it was noncomputable section
inserted by mathport
.
Mario Carneiro (Jun 04 2023 at 23:51):
it should say <section>
for an unnamed section
Yury G. Kudryashov (Jun 05 2023 at 00:36):
IMHO, error messages should be informative without an editor session.
Yury G. Kudryashov (Jun 05 2023 at 00:37):
At least, if it's easy to make them informative.
Mario Carneiro (Jun 05 2023 at 00:45):
Apparently there is a CompletionInfo.endSection
which would in theory give you a ctrl-space completion support, but it does not seem to be implemented
Mario Carneiro (Jun 05 2023 at 01:13):
David Thrane Christiansen (Jun 05 2023 at 10:35):
While interactive editors are great, I agree with @Yury G. Kudryashov - error messages occur in many other contexts, such as CI systems, where the reader needs to reconstruct context in their heads. Of course there's a balance between distracting verbosity and useful information, but "I expected a thing, but I won't tell you what it is" seems to err on the side of too little information to me.
Last updated: Dec 20 2023 at 11:08 UTC