constructive
constructive copied to clipboard
Better information on reconstruction issues
I first though we could parse Waldo's messages and summarise but it's brittle, we can do better.
Whenever we do a reconstruction that we know will be inexact, e.g. reproducing an environment, or reproducing objects linked to env like functions, formulas, srcrefs, we update global variables, and we'll get a summary like :
- 2 functions couldn't be reliably reproduced because of their environment and their srcref
- 3 formulas couldn't be reproduced because of their environment
- 1 other environment couldn't be reproduced
The object will have an additional issues element next to code and compare
construct_issues() would reiterate those and add suggestions since some constructors might do the job better
{woof} might help but maybe a bit slow ? It could probably be made faster though since it's essentially parsing. https://github.com/moodymudskipper/woof