Don't include redundant locs in wf-errors#1451
Don't include redundant locs in wf-errors#1451BenMusch wants to merge 1 commit intobrownplt:horizonfrom
Conversation
|
You missed the other sentence in the bug report, though: "There's a bunch of these ED.cmcode(self.loc) expressions in many of the wf-errors' render-reason methods." Take a quick look to spot other redundant ones, if you can. |
|
Will do. Is there an easy way to test |
|
That's used within CPO online, rather than at the command line.
…On Fri, May 24, 2019, 1:04 PM Ben Muschol ***@***.***> wrote:
Will do. Is there an easy way to test render-fancy-reason? I noticed some
that appear redundant there, but can't tell if they're potentially used to
parse the errors in the UI, so I held off from changing those
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1451?email_source=notifications&email_token=AAHAHQGG33UVFF36MA63FFLPXAN3TA5CNFSM4HPHNTIKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWF7M7Y#issuecomment-495711871>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAHAHQC6YMU4GNMH2FXKW7TPXAN3TANCNFSM4HPHNTIA>
.
|
|
As far as I can tell, all of the remaining duplicate loc's are in the Maybe it's worth keeping the duplicate locs since it seems like it makes the UI nicer? At least in the context of larger programs, the code block display seems handy |
|
Ideally we would use In the absence of such a mechanism, any appearance of |
|
Why wasn't this merged? |

Fixes #1436
No tests included because the test suite seems to check that
C.wf-errs are thrown, but not their specific contents. Happy to find a way include tests if y'all want themExample of an error message now:
cc @blerner