You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I didn't expect much petty printing of expressions without a context, as how else would you show local variables. But for closed expressions and in particular global names it does make sense. Recovering the previous functionality in ofExpr is reasonable, do you want to prepare a PR for that?
This restores the behavior prior to
9f6bbfa
for `MessageData.ofSyntax` `MessageData.ofExpr`, and
`MessageData.ofLevel` while staying within the new `.ofLazy` paradigm.
Also adds some documentation to help developers understand the missing
context issue.
Closes#4432
---------
Co-authored-by: Joachim Breitner <[email protected]>
Prerequisites
Please put an X between the brackets as you perform the following steps:
https://github.com/leanprover/lean4/issues
Avoid dependencies to Mathlib or Batteries.
https://live.lean-lang.org/#project=lean-nightly
(You can also use the settings there to switch to “Lean nightly”)
Description
As of 4.9.0-rc1, specifically the change to
MessageData.ofExpr
in 9f6bbfa, the following no longer works:Feel free to close if this is intended behavior.
If not,
MessageData.ofExpr
(and similar functions) could be changed back to something like this:.Context
Batteries'
lake exe runLinter
is now printing "(invalid MessageData.lazy, missing context)" which is showing up in Batteries and Mathlib CI.leanprover-community/batteries#838
Steps to Reproduce
Try the above code in 4.9.0-rc1 vs 4.8.0.
Expected behavior: Prints "MessageData: foo"
Actual behavior: Prints "MessageData: (invalid MessageData.lazy, missing context)"
Versions
4.9.0-rc1
Impact
Add 👍 to issues you consider important. If others are impacted by this issue, please ask them to add 👍 to it.
The text was updated successfully, but these errors were encountered: