-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Escape default arrays and sequences the same other default values #620
base: rolling
Are you sure you want to change the base?
Conversation
As a regression test, I've added a new field to one of the test messages: ros2/test_interface_files#16 |
Rpr fails because ament/ament_cmake#352 has not been released. |
This is interesting. I can't predict if it will pass the IIUC
When re-encoded as rosidl/rosidl_parser/rosidl_parser/parser.py Line 660 in 36ed120
|
In fact there were test failures related to this that I missed locally: https://ci.ros2.org/job/ci_linux/15332/testReport/junit/rosidl_generator_py.test/test_interfaces/test_wstrings/ |
Fix #610 Apply the same encode/decode pattern and escaping as for other default values. Signed-off-by: Jacob Perron <jacob@openrobotics.org>
548af14
to
8253770
Compare
I think the issue was due to a difference in how we handled default values of arrays and sequences compared with other default values. See 8253770, which applies similar logic to array/sequence defaults as we do with other defaults, e.g. rosidl/rosidl_adapter/rosidl_adapter/msg/__init__.py Lines 78 to 79 in 36ed120
|
Fixes #610