Zulip Chat Archive

Stream: nightly-testing

Topic: quote4


Kim Morrison (Aug 08 2024 at 12:05):

@Eric Wieser, would you be able to look at this test failure in quote4?

https://github.com/leanprover-community/quote4/pull/48

Kim Morrison (Aug 08 2024 at 12:06):

This is me trying to bring quote4 up to the latest nightly; I have no idea at what point along the way this example stopped working, because we don't regularly update quote4.

Eric Wieser (Aug 08 2024 at 12:07):

Can you make a PR to bump to 4.10.0 or 4.11.0rc1, just to rule out the error being there?

Kim Morrison (Aug 08 2024 at 12:08):

Any chance you could? quote4 is pretty low priority for me, so if it's working for mathlib I'm happy. :-)

Eric Wieser (Aug 08 2024 at 12:09):

Just tested in the web editor; this test is already broken in the (version of Qq used by the) latest mathlib

Eric Wieser (Aug 09 2024 at 00:27):

run_cmd Elab.Command.lintersRef.set #[] fixes it

Eric Wieser (Aug 09 2024 at 00:27):

So the crash is coming from a core linter

Eric Wieser (Aug 09 2024 at 00:28):

So a feature request: can linters catch all error messages and prefix them with "the foo linter crashed:" before re-raising?

Eric Wieser (Aug 09 2024 at 00:32):

set_option linter.constructorNameAsVariable false

fixes it

Eric Wieser (Aug 09 2024 at 00:32):

Interestingly set_option linter.all false does not

Eric Wieser (Aug 09 2024 at 00:41):

Eric Wieser said:

Can you make a PR to bump to 4.10.0 or 4.11.0rc1, just to rule out the error being there?

Done in https://github.com/leanprover-community/quote4/pull/49, along with a temporary workaround that should unblock your nightly bump

Kim Morrison (Aug 09 2024 at 00:44):

Thanks!

Kim Morrison (Aug 09 2024 at 00:45):

The remaining things here are:

  • feature request for the linter framework to prefix errors from linters
  • finding a quote4-free minimization for the constructorNameAsVariable crash

Kim Morrison (Aug 09 2024 at 00:46):

Interested in doing either? :-)

Eric Wieser (Aug 09 2024 at 00:46):

Is the linter.all thing a bug too?

Kim Morrison (Aug 09 2024 at 00:46):

Oh, yes, possibly!

Eric Wieser (Aug 09 2024 at 00:47):

I might at some point get to 2; can you handle 1 and 3?

Kim Morrison (Aug 09 2024 at 00:57):

linter.all fix is #4966

Eric Wieser (Aug 09 2024 at 01:00):

lean4#4966

Kim Morrison (Aug 09 2024 at 01:11):

And prefixing the name is done at lean#4967


Last updated: May 02 2025 at 03:31 UTC