-
Notifications
You must be signed in to change notification settings - Fork 9
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
AST created with tree_from_a2l() does not contain layout for measurements. #22
Comments
When comparing protobuf/A2L.proto to the ANTLR definition, the measurement type is missing the 4 properties:
The same is true for the AxisPts and Characteristic Types (physUnit & symbolLink) |
might close here and reopen in the a2l-grpc repo. |
Hi @LuDubies , thanks for the detailed feedback and the time, I'm on it :) Indeed those nodes are present in the grammar but not in the exchange protocol. The reason for that is because I'm used to have A2Ls with older ASAP2 version, where those nodes are not defined. I will fix it, and will close this issue once you will be able to parse your input as expected, is it ok for you? |
@LuDubies it should be fixed in version 0.1.1. Could you confirm please? Thanks in advance for your feedback! |
Hey @Sauci, thank you for the quick work. I will check out your 0.1.1 release on wednesday and then we can close this. |
Checking out the diffs for b9c4627, it looks like it should fix my issue and more. Can propably close this without me testing it again :) Thanks again for your work, appreciate the project! |
Working with pya2l version 0.1.1 now, the issue has been fixed as predicted. |
Missing LAYOUT property for measurements
When parsing A2L measurement objects, the ast does not contain layout information.
The property seems correctly defined in a2l-grpc/grammar/A2L.g4
Reproduce
When using the A2LParser.tree_from_a2l() on the attached dumb.txt (convert to .a2l), the properties of the "Dumbo" measurement contain no LAYOUT.
dumb.txt
This happens with a newly build pya2l and newest artifacts from a2l-grpc
The text was updated successfully, but these errors were encountered: