Skip to content

Internal Error instead of normal error message on wrong type #9

@jmachowinski

Description

@jmachowinski

Hey,
if you give a wrong type on an Operation you will get :
scotch@Machowinski-Desktop:~/coyote/coyote/orogen/faster_scout_tcp_client/build$ make regen
Scanning dependencies of target regen
===== Internal error =======
Please report the following error to the orogen developers
/home/scotch/coyote/tools/orogen/lib/orogen/gen/typekit.rb:882:in build': cannot find /base/Vector3 in registry (Typelib::NotFound) from /home/scotch/coyote/tools/orogen/lib/orogen/gen/typekit.rb:882:inbuild'
from /home/scotch/coyote/tools/orogen/lib/orogen/gen/typekit.rb:882:in rescue in find_type' from /home/scotch/coyote/tools/orogen/lib/orogen/gen/typekit.rb:864:infind_type'
from /home/scotch/coyote/tools/orogen/lib/orogen/gen/project.rb:571:in rescue in find_type' from /home/scotch/coyote/tools/orogen/lib/orogen/gen/project.rb:566:infind_type'
from /home/scotch/coyote/tools/orogen/lib/orogen/gen/project.rb:529:in find_interface_type' from /home/scotch/coyote/tools/orogen/lib/orogen/spec/operation.rb:97:infind_interface_type'
from /home/scotch/coyote/tools/orogen/lib/orogen/spec/operation.rb:117:in argument' from faster_scout_tcp_client.orogen:117 from /home/scotch/coyote/tools/orogen/lib/orogen/gen/project.rb:1002:ininstance_eval'
from /home/scotch/coyote/tools/orogen/lib/orogen/gen/project.rb:1002:in block in task_context' from /home/scotch/coyote/tools/orogen/lib/orogen/gen/project.rb:1033:ininstance_eval'
from /home/scotch/coyote/tools/orogen/lib/orogen/gen/project.rb:1033:in external_task_context' from /home/scotch/coyote/tools/orogen/lib/orogen/gen/project.rb:1000:intask_context'
from faster_scout_tcp_client.orogen:78
from /home/scotch/coyote/tools/orogen/lib/orogen/gen/project.rb:1348:in load' from /home/scotch/coyote/tools/orogen/bin/orogen:164:inblock in

'
from /home/scotch/coyote/tools/orogen/lib/orogen/base.rb:472:in beautify_loading_errors' from /home/scotch/coyote/tools/orogen/bin/orogen:154:in'
make[3]: *** [CMakeFiles/regen] Error 1
make[2]: *** [CMakeFiles/regen.dir/all] Error 2
make[1]: *** [CMakeFiles/regen.dir/rule] Error 2
make: *** [regen] Error 2

This should be a error message only pointing to the wrong line
in the orogen file.

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