Skip to content

"Bad plan description"? #65

@rpgoldman

Description

@rpgoldman

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions