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
Do not abort build on warnings #2061
Comments
One proposal: we add a new flag We could then add a separate build step in mathlib that checks if there are any warning messages in the persisted json files. |
The general plan sounds good, but why not a basic |
Yes, that's my concern. Besides, we need to persist the file anyhow so we might as well do that in Lean. |
I very much like this idea! 😄 I imagine the implementation would be in two parts: First, add this feature to Lean. Second, once it is released, update Lake to make use of it. Is that right? |
A very common experience in a large mathematics project is that the development can be at least partially "top-down". That is, you have a file with the big theorem in, and perhaps even a proof using lemmas imported from other files, but several of the import files will have Using |
For mathlib, we want the following two things simultaneously:
The only way to make (1) work at the moment is to set
warningAsError=true
, but that stops the build immediately. This situation is particularly annoying in interactive mode, where you can't work on a file if any of its imports produces a warning. Note that we want the build to continue in CI as well, both to see if there are any actual errors as well as to provide cached oleans.(In Lean 3, this happened to work nicely because all of the linters were run after the build, in a separate step.)
Several people (including me) would like this feature: https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/attr.20.3A.3D.20simp/near/323332282
The text was updated successfully, but these errors were encountered: