Skip to content

(deprecation) warnings not shown when a tactic fails to apply #824

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

Open
hoheinzollern opened this issue Apr 4, 2025 · 1 comment
Open

Comments

@hoheinzollern
Copy link
Contributor

For example, a script like this:

#[deprecated(since = "0", note = "useless")]
Lemma one: False -> False.
Proof. auto. Qed.

Lemma two: False.
Proof. exact one.

would fail at exact one, but only the failure message is displayed in the interface, and the warning is not shown. This is the output by coqc:

File "./warning.v", line 8, characters 13-16:
Warning: Reference one is deprecated since 0. useless
[deprecated-reference-since-0,deprecated-since-0,deprecated-reference,deprecated,default]
File "./warning.v", line 8, characters 13-16:
Warning: Reference one is deprecated since 0. useless
[deprecated-reference-since-0,deprecated-since-0,deprecated-reference,deprecated,default]
File "./warning.v", line 8, characters 13-16:
Error:
The term "one" has type "False -> False" while it is expected to have type
 "False".

Ideally, I should be able to see the deprecation warning when a tactic fails to apply.

@hendriktews
Copy link
Collaborator

Thanks for the report. I can reproduce this with Coq 8.20 and current PG master.

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

No branches or pull requests

2 participants