-
Notifications
You must be signed in to change notification settings - Fork 54
Open
Description
Any suggestions for debugging plans rejected by Validate with "Bad plan description!"
Looking at the source code, it looks like this could be either a failure in type checking or because the system has not been able to read the plan:
(!the_plan || !tc.typecheckPlan(the_plan))
the first disjunct comes from:
the_plan = dynamic_cast< plan * >(top_thing);
Which I'm afraid I don't follow. Am I right in assuming that this means that the format of the plan is incorrect?
If so, any reason why these two failures are conflated?
Also, looking at the type-checking, I see this:
bool TypeChecker::typecheckPlan(const plan *p) {
if (!isTyped) return true;
return p->end() == std::find_if(p->begin(), p->end(), badchecker(this));
};
Does the above miss an opportunity to tell the user what step of the plan is ill-typed?
Metadata
Metadata
Assignees
Labels
No labels