kaitai_struct_compiler
kaitai_struct_compiler copied to clipboard
Java: add ability to report positions relative to root stream and add PositionInfo interface
New interface PositionInfo
introduced to allow to get position information without reflective access in generic way. Closes https://github.com/kaitai-io/kaitai_struct_java_runtime/issues/27
Store offset of streams from begin of root stream in offset
field. Fixes https://github.com/kaitai-io/kaitai_struct_java_runtime/issues/26
Depends on runtime changes from https://github.com/kaitai-io/kaitai_struct_java_runtime/pull/28 and test changes in https://github.com/kaitai-io/kaitai_struct_tests/pull/77
Examples of message, file, generated before this PR and after (with --debug
key): messages.zip
List of all related issues/PRs:
- [ ] https://github.com/kaitai-io/kaitai_struct_java_runtime/issues/26 -- issue with feature description
- [ ] this one for compiler
- [ ] https://github.com/kaitai-io/kaitai_struct_java_runtime/pull/28 for runtime
- [ ] https://github.com/kaitai-io/kaitai_struct_tests/pull/77 for tests
Can you review this please? I want to move on in improving kaitai_struct_gui, but this and #191 are now blockers for that.
Let me remind you of myself again. I would be happy if these changes were merged before 0.9 release.
@GreyCat , @generalmimon I would be super grateful if this feature was included in the 0.9 release
I would be super grateful if this feature was included in the 0.9 release
Unfortunately, this is no longer possible - we released 0.9 the day before yesterday (on October 16, 2020; see https://kaitai.io/news/2020/10/16/kaitai-struct-v0.9-released.html).
I would also like to retrospectively add a couple of things to the 0.9 version (I especially regret breaking backward compatibility on the contents
key with repeat
and the disappearance of contents
in the Graphviz output: comparison), but you just can't delay the release to the point when all bugs are resolved or all nice-to-have features are fully implemented (because that's never gonna happen). We've already waited 2.7 years and that had been already quite embarrassing.
Well, no one forces wait 3 years until version 0.10. It can be released more quickly :)
So, what's the verdict on my PRs? Can I expect any comments in them?
Come on, guys! Is there no one interested in the development of Java backend?