Skip to content

ks-opaque-types not working with imports #295

Closed
kaitai-io/kaitai_struct_compiler
#267

Description

@GreyCat

Moved from #1203, 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

Activity

  1. KOLANICH commented on Jul 24, 2019

    @KOLANICH

    Any progress with it? It affects npy format.

  2. self-assigned this
    on Jun 11, 2020
  3. Puyodead1 commented on Dec 28, 2022

    @Puyodead1

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

  4. KOLANICH commented on Jan 3, 2023

    @KOLANICH

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

  5. added this to the v0.11 milestone on Apr 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions