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
Set maybe_placeholders to False for lark 1.+ compatibility #664
Conversation
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
CI (build: |
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.
So looking at https://ci.ros2.org/view/nightly/job/nightly_linux_debug/2210/, for instance, I don't see a failing test. Do we need to add one to trigger this?
(otherwise, the fix itself looks good to me)
No. The |
Ah, I figured it out. That job seems to be installing lark from pip instead of apt.
rosidl/rosidl_parser/package.xml Line 15 in 3cfdb4c
|
OK, I'm able to reproduce the problem locally as well. Oh, I think I know what the problem is. CI is installing |
One more thing, it looks like the PyPI package is now |
PR job test failure seems unrelated - maybe a bug in osrf_testing_tools_cpp?
|
Ah, no. cppcheck 2.x on Jammy is broken. I have a patch into ament_lint that fixes it, but we haven't done a release of that yet. I'll do that soon. |
CI LGTM 🎉 |
Fixes #663
This set's
maybe_placeholders
toFalse
. It's default value changed toTrue
in lark-parser 1.0.In the grammar annotation applications are given as
The square brackets
[ ... ]
say "maybe there will be parentheses with parameters for the annotation application". Ifmaybe_placeholders
is set toTrue
, then the AST will contain the valueNone
when there aren't any parentheses or parameters. This sets it toFalse
so that the AST does not contain anything in that case.