kaitai_struct_webide icon indicating copy to clipboard operation
kaitai_struct_webide copied to clipboard

Parse error (TypeError): ksyType.instancesByJsName is undefined

Open Mingun opened this issue 1 year ago • 0 comments

I have the following KEY in my local storage in WebIDE:

meta:
  id: int
  encoding: ASCII
types:
  int:
    -webide-representation: "{value:dec}"
    seq:
      - id: raw
        type: str
        size-eos: true
    instances:
      value:
        value: raw.to_i
  hex:
    -webide-representation: "{value:dec}"
    seq:
      - id: raw
        type: str
        size-eos: true
    instances:
      value:
        value: raw.to_i(16)

When I double-click it the following error is thrown to the Errors pane:

Parse error (TypeError): ksyType.instancesByJsName is undefined Call stack:

This is not happened when I double-click any other KSY, for example, default zip.ksy from the gallery. This happens both on a devel and a stable WebIDE

Mingun avatar Sep 01 '22 08:09 Mingun