Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jmachowinski opened this issue Sep 2, 2014 · 2 comments
Open

Comments

@jmachowinski
Copy link
Member

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.

@marvin2k
Copy link
Contributor

Its a stack backtrace of an internal error? Its not supposed to happen that often? What would be the steps to reproduce the error?

@jmachowinski
Copy link
Member Author

To reproduce add this to your task definition :

operation('testFoo').
    argument('position', 'fooType')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants