kaitai_struct icon indicating copy to clipboard operation
kaitai_struct copied to clipboard

ks-opaque-types not working with imports

Open GreyCat opened this issue 7 years ago • 3 comments

Moved from https://github.com/kaitai-io/kaitai_struct_compiler/issues/120, originally submitted by @ii8:

ks-opaque-types: true seems to have no effect whenever there is an imports directive, even if they are completely unrelated.

Example:

filea.ksy:

meta:
  id: filea
  ks-opaque-types: true
  imports:
    - fileb

seq:
  - id: a
    type: i_am_opaque

fileb.ksy:

meta:
  id: fileb

command:

λ /usr/local/Cellar/kaitai-struct-compiler/0.7/bin/kaitai-struct-compiler --target graphviz filea.ksy

/seq/0: unable to find type 'i_am_opaque', searching from filea

GreyCat avatar Dec 04 '17 13:12 GreyCat

Any progress with it? It affects npy format.

KOLANICH avatar Jul 24 '19 22:07 KOLANICH

Seeing the same problem, is there any progress on this?

Puyodead1 avatar Dec 28 '22 01:12 Puyodead1

@Puyodead1, it seems that opaque types specified in meta don't work without providing the CLI flag to the compiler.

KOLANICH avatar Jan 03 '23 09:01 KOLANICH