-
Notifications
You must be signed in to change notification settings - Fork 6
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
[Bug] Boolean args not supported for arguments #1407
Conversation
* Updated precedence so the grammar checks for booleans before identifiers to generate the tree correctly.
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.
If I add the GENERIC
command dictionary from /e2e-tests/data/command-dictionary.xml
, create a parcel using it, and then create a sequence with C FSW_CMD_0 "ON" false 1
, I'm still seeing the message in the "Selected Command" panel for the boolean_arg_0
as "Unexpected value for definition".
Also, I don't see any linting errors regardless of whether I pass false
, FALSE
, "FALSE"
, or "false"
. Should I be seeing any?
@duranb should be good now. I added a boolean argument to the command panel and updated the linter |
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.
Unless @joswig has anything to say about the true/false
needing to also be uppercase, I'm good with this! Thanks!
* Added boolean to arg grammar * Updated precedence so the grammar checks for booleans before identifiers to generate the tree correctly. * Import boolean args correctly to seqN * Export boolean arg in seqJSON correctly * Hook up boolean arg to Command Panel * Add boolean check to linter
Closes #1395
Previously missing boolean argument support has been added to args, along with corresponding updates to seqJSON and seqN import/export functions. I have updated the e2e test as well