-
Notifications
You must be signed in to change notification settings - Fork 45
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
It may make sense to display KS type and length in the Extractor
for each item
#110
Comments
Ok, the keys being used in the extractor are just the names of generic |
|
yeah, there are definitely some weaknesses with how decoupled plugins are. It's possible that the rangehighlight strings could have a syntax like "[val1, val2, val3]" that is readable on its own by a dumb plugin, but then also parse-able into columns by the extractor or the KS plugin itself. I'll start with just the single-column compound string for now. |
Type and value display on the screenshot looks OK, what is missing is displaying of size of arrays. Also a yet another issue - it doesn't work for me locally, |
Ok, adding an array type should be pretty straightforward. The type column will be empty unless the type is an Enum or a KaitaiStruct - I can't find a way to see the other types (u4, u1, etc) in the parsed data, and saying the Python type ("int", "float", ""bytes", etc) seems like it might be noisy. Maybe not though? |
I'd rather hold off on adding a parser for the KS YAML - I'll submit the issue for it to be included in the _debug data somehow. |
I took a minute to think about this, and I guess we can infer primitives from the size, the Python type, and an evaluation of the actual data chunk (for signed-ness and endianness), so we wouldn't need to parse the KSY for most (all?) cases except the binary one you bring up in kaitai-io/kaitai_struct#896 Am I missing something? |
Looks like that that's all for the fields. There are also value-instances, for which no Also I remember there was an issue about making KSC embed into code info in machine-readable form having not involved into parsing directly ( |
# [0.51.0](Mahlet-Inc/hobbits@v0.50.0...v0.51.0) (2021-08-22) ### Bug Fixes * [core] BitArray fromString parsing error reports ([4b176de](Mahlet-Inc/hobbits@4b176de)) * improve kaitai parser parser [#119](Mahlet-Inc/hobbits#119) ([e1efaa2](Mahlet-Inc/hobbits@e1efaa2)) ### Features * big fixes and improvements to kaitai [#110](Mahlet-Inc/hobbits#110) [#119](Mahlet-Inc/hobbits#119) ([34bbc4d](Mahlet-Inc/hobbits@34bbc4d))
No description provided.
The text was updated successfully, but these errors were encountered: