-
Notifications
You must be signed in to change notification settings - Fork 32
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
pvxinfo also shows the null value for StoreType::Compound data types like any or union #46
Comments
Thank you for reporting this. I also think it is a bug that the element types of |
I think this issue should be addressed by 2a83e49.
When shown with values, all null/zero in this case.
|
After building the latest master branch of PVXS on Debian 10, pvxinfo and pvxget printed the expected result for the empty NTNDArray data. Thank you for fixing this. |
fyi. I had a look at https://github.com/wanglin86769/node-epics-pva/blob/master/wrapper/wrapper.cpp I would be interested in seeing a JSON output format (eg. |
Thanks for your interest in JSON format. If there is something that I can contribute, I will be glad to do it. |
I think the key point is to output pvxs::Value in valid JSON format, since JSON syntax is strict. For example, some problems I encountered were,
|
A "reversible" mapping would be best. That is, one which could be parsed to recover the original with no loss of information. I understand that this would likely be difficult as among other aspects, JSON has no direct analog to the PVD structure ID names (eg.
If not initially, at some point an option for JSON5 format would be helpful. fyi. epics-base has included a JSON5 aware parser since 7.0.5, which I would like in future to start using with PVXS. |
Describe the bug
The pvxinfo CLI tool also shows the null value for StoreType::Compound data types like any or union.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
pvxinfo prints info without value.
Information (please complete the following):
From the source code, it looks like null values are always printed no matter what fmt._showValue is,
https://github.com/mdavidsaver/pvxs/blob/master/src/datafmt.cpp
The text was updated successfully, but these errors were encountered: