-
Notifications
You must be signed in to change notification settings - Fork 44
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
Add warnings for reserved Python keywords in interface members #96
Conversation
e32b31e
to
4a77ab9
Compare
@samiamlabs is this still a WIP? |
I have not added error-prints for services or actions yet. If you think this PR makes sense I can fix that before merging. Alternatively, we could just merge this PR and I can make a new one for actions and services. |
I'd advise you to fix it up to check in actions and services too before removing the WIP, but that's up to you. I do think this pr makes sense in general. @dirk-thomas do you think so too? My one concern is that this will warn on messages that already exist and cannot easily be changed, but maybe we already fixed that. I don't remember. |
ping @dirk-thomas Also, @samiamlabs do you think you'll have time to follow up on this? No pressure but it would help us triaging things to know. |
I will try to find some time to work on this at the start of next week :) |
c4451cf
to
a2e61ce
Compare
Finally got around to do some more work on this.
I also set up a VSCode "Dev Container" for the nightly ROS2 docker image in case anyone is interested: https://github.com/samiamlabs/ros2-nightly-vscode/tree/reserved-keyword-warnings |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, I'll run CI.
@wjwwood friendly ping. Is this ready? Does something have to be addressed? |
There are unresolved linter failures, see: #96 (comment) |
I pushed a fix for the linter issues a while back @wjwwood |
We noticed that using "from" in a message caused a runtime syntax error for python when importing the message. |
IMO, that could be fixed if we use everywhere in the generated files |
@samiamlabs Can you rebase? Most of the test failures are resolved in master. |
Signed-off-by: Samuel <samuel@dynorobotics.se>
Signed-off-by: Samuel Lindgren <samuel@dynorobotics.se>
Signed-off-by: Samuel Lindgren <samuel@dynorobotics.se>
612f361
to
4afae40
Compare
I pushed a rebase with upstream master just now. Hope that helps with CI :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, @ivanpauno should we merge this or run CI again (since the interactive markers issues have been fixed)?
CI failure seems unrelated, merging! |
This is a temporary fix related to issue #95. Until a language-specific name mangling is implemented to avoid keywords as described in ros2/design#172, a warning would be nice.
I can add stderr prints for services and actions also if this pull request seems like a good idea.
Example build output from colcon: