-
Notifications
You must be signed in to change notification settings - Fork 459
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
fix: resolve _root_
in macro
, syntax
, elab
#2239
base: master
Are you sure you want to change the base?
Conversation
An alternative solution would be to change |
Not so sure about using |
Ping on this one, it is the cause of a bug in mathport. How should I address the issue about name joining? |
Do you want to add such a function (possibly #2341)? Then I think this is good to go. Actually, why do we need the stage 0 update? |
|
@Kha perhaps the difference between the two CI runs answers your question about why the update-stage0 is needed. |
I see, it's a stage 2 failure. That makes sense in this case as we build it under |
This is not just a convenience feature: Because
_root_
is resolved indef
, if we do not also resolve it inmacro
there will be a mismatch between the syntax kind used for the definition and the one used for the parenthesizer / formatter. This comes up in practice forregister_simp_attr
, which is defined like:leading to a parser that puts the syntax kind
Lean.Meta._root_.Lean.Parser.Command.registerSimpAttr
on generated nodes, and a parenthesizer that is expecting to find syntax kindLean.Parser.Command.registerSimpAttr
.