Petr Pučil

Results 327 comments of Petr Pučil

@ZEkA10000: > but how it can be done in local machine? As I said, when you're happy with how the spec works in the Web IDE (i.e. after making the...

This has been on my radar for a while, but for adding common location info to JS exceptions (i.e. `io` to pull the byte offset from, and `srcPath` - the...

@Mingun: > While this is a good idea, I don't see how it is block the current problem. The information about offset and a path can be > > *...

The current KSC (0.9-SNAPSHOT) generates incorrect code when `valid` is used on an optional field (with `if`). The validation check is executed outside the `if` clause instead of inside it....

AFAIK, this feature is basically implemented (all `valid` sub-keys described in https://github.com/kaitai-io/kaitai_struct/issues/435#issue-323332353 work), but no proper type checks if the `type` of the attribute can be compared with the type...

> I remember there was an example using `any-of` on enum values @armijnhemel uses them extensively in his https://github.com/armijnhemel/binaryanalysis-ng repo, just [search for `any-of`](https://github.com/armijnhemel/binaryanalysis-ng/search?q=any-of). For example: [`src/parsers/filesystem/qcow2/qcow2.ksy:26-32`](https://github.com/armijnhemel/binaryanalysis-ng/blob/a493eb79b8ead0985952bcabc08884769febea8d/src/parsers/filesystem/qcow2/qcow2.ksy#L26-L32) ```ksy - id:...

I'm with @KOLANICH here, I think that the first two are totally OK. Some people may prefer padding numbers to the right to achieve some look, for example: ```ksy seq:...

@Mingun: > What the means to define a bit-order of one-bit field? I highly recommend reading https://doc.kaitai.io/user_guide.html#_bit_sized_integers. Note that in the context of Kaitai Struct, the term `bit-endian` dictates the...

@kjczarne Thanks for reporting! I found out that a simple comparison of an enum value converted to integer using `to_i` and an integer literal is enough to reveal the bug:...