fix(Util/CountHeartbeats): move elaboration in #count_heartbeats inside a namespace#21182
fix(Util/CountHeartbeats): move elaboration in #count_heartbeats inside a namespace#21182joneugster wants to merge 11 commits intomasterfrom
Conversation
…declaration already existing
PR summary 88bb6d226aImport changes for modified filesNo significant changes to the import graph Import changes for all files
|
adomani
left a comment
There was a problem hiding this comment.
This looks good to me and certainly an improvement over the previous version: thanks!
I am happy to merge this.
bors d+
|
✌️ joneugster can now approve this pull request. To approve and merge a pull request, simply reply with |
|
Sorry about the change of heart: I tried it out on the "obvious" file and it throws many more exceptions than I would like. It is still an improvement over the previous version, but not yet good to go! bors d- |
|
(By the way, bors delegate=[] |
|
Oh well, a failed experiment. 🤷 |
|
So, since it has come down to finding which hack is most successful, one approach that I would try is to "extend" the first This is still not very robust, but, because it is not messing with the namespace, it may fail less often. Recursive calls will likely still not work, and use the declaration that has just been added to the environment, as will declarations that contain |
Co-authored-by: damiano <[email protected]>
|
This pull request has conflicts, please merge |
|
Returning to this, I'm not fully aware of all the discussion linked at #23905 but it looks like the current implementation of (If there is a better re-implementation of the command, I'd be happy to review that and close this fix once a reimplementation has been merged.) |
|
This PR has been migrated to a fork-based workflow: #35413 |
Currently the
#count_heartbeatlinter reported the heartbeats until it concludederror: [declaration] has already been declaredinstead of re-elaborating the declaration.Zulip report