Open kwisatz opened 8 years ago
This would be very helpful in diagnosing where problems are happening. As a quick and dirty solution I simply added the following at the beginning of the createManiphestTask
function (currently line 507 of Wizard.php), so I could at least see which issue was causing failures:
print_r($issue);
@andymstone could you specify which problems were occurring. Actually, any unhandled problems should cause an exception to be thrown or at least an error message to be displayed.
Thanks, the problem I was having was issue #19 which you've already dealt with.
I just left a comment here in case anyone else came looking for a quick way of adding some basic progress tracking. The exceptions are useful for knowing what is going wrong, but I couldn't see the Redmine issue number anywhere in the stack trace so I had no idea which issue was causing the exception.
OK, thanks. I'll see if I can't add that kind of information to some of the exceptions. For the progress iterator, it'll have to wait a little, I think it would make more sense for me to replace the entire CLI part (using an existing implementation, e.g. symfony/cconsole) then attempting to re-invent the wheel. But console integration doesn't appear to be trivial.
Add a progress indicator to see what and if something is happening.