-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Revert "RFC: prettier IR-show for line number and inlining information" #29118
Conversation
Why? |
In #28390 in response to your merge:
I agree. I loved the previous |
Because you merged it without getting consensus or addressing the many objections to the change. That's not acceptable and immediate reversion is the appropriate response. |
There seem to be two main purposes to use these macros. One is where you want to get an overview of what the code actually end up doing. And another when you want to pinpoint exactly where in the source code a specific instruction came from. I typically use it for the first purpose where these verbose line annotations is mostly noise. So some option flag to toggle between these two modes might be suitable. And as a reference, when looking at code_warntype, I typically paste it into an editor and use some regex filtering to remove all line annotations. |
I can understand why others feel it's too verbose by default, but I find the verbose pretty-printing really useful for my purposes (which are probably similar to Jameson's). Is it possible that instead of reverting this entirely, we can hide the additional verbosity behind a flag or something? It makes debugging things via looking at the IR way easier IMO. |
That is the wrong order. The correct order is to revert this and then the author makes a new PR that adds that verbosity option. |
The verbosity option is already present ( |
All the code introspection tools need to be switched back to reasonably concise, readable output by default and then you can add back the option to ask for more verbose output. |
We're also not going to reward the bad behavior of merging a controversial PR unilaterally without addressing the objections people have with it by not reverting it and doing the work to fix it. Someone who finds this extremely verbose, noisy output useful can make a PR that is actually acceptable. |
This is not a sufficient interface to control this. Excessive output should also not be the default. |
OK, so what you're saying is that we should go back to the v0.6 level of information in printing? |
Yes, with options for more advanced output. |
…formation" (JuliaLang#29118)" This reverts commit 6caabc9.
…formation" (JuliaLang#29118)" This reverts commit 6caabc9.
Reverts #28390