Zulip Chat Archive
Stream: nightly-testing
Topic: test/Lint.lean failure
Ruben Van de Velde (Apr 07 2024 at 21:07):
Warning: test/Lint.lean:10:4: warning: The namespace 'add' is duplicated in the declaration 'add.add' [linter.dupNamespace]
Warning: test/Lint.lean:19:4: warning: The namespace 'Foo' is duplicated in the declaration 'Foo.Foo.foo' [linter.dupNamespace]
Probably related to the new dupNamespace linted in std?
Patrick Massot (Apr 07 2024 at 21:09):
It sounds like a fair warning.
Ruben Van de Velde (Apr 07 2024 at 21:15):
Yeah, it's testing that the existing linter in mathlib does show the warning
Damiano Testa (Apr 07 2024 at 22:01):
Sorry, I am not at a computer anymore, but I found that putting set_option ... false in set_option ... true in #guard_msgs in ...
tends to make #guard_msgs
silence the linters. Maybe this changed?
Mario Carneiro (Apr 07 2024 at 22:08):
this sounds like https://leanprover.zulipchat.com/#narrow/stream/348111-std4/topic/.23guard_msgs.20doesn't.20silence.20warnings , but it's not a new issue, how are we handling it currently?
Damiano Testa (Apr 07 2024 at 22:18):
Yes, I suspect it is the same and it was some report of that kind that motivated me to try the double set_option false in set_option true in
. I figured that by the time the #guard_msgs
issue was resolved, I would remove these workarounds.
Kim Morrison (Apr 07 2024 at 23:37):
I think the difference here is that Std doesn't check for silent tests, but Mathlib does.
Kim Morrison (Apr 07 2024 at 23:38):
I've temporarily disabled these two tests on nightly-testing
as I really want a green check so I can run the speed center to look at the overall impact of #3807.
Eric Wieser (Apr 07 2024 at 23:51):
Last updated: May 02 2025 at 03:31 UTC