Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ks-opaqe-types not working with imports #1203

Closed
ii8 opened this issue Dec 4, 2017 · 3 comments
Closed

ks-opaqe-types not working with imports #1203

ii8 opened this issue Dec 4, 2017 · 3 comments

Comments

@ii8
Copy link

ii8 commented Dec 4, 2017

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
Copy link
Member

GreyCat commented Dec 4, 2017

Yeah, that looks like a bug. The funny thing is that using --opaque-types=true as a CLI option works without problems.

@GreyCat
Copy link
Member

GreyCat commented Dec 4, 2017

Just realized it's compiler's project, moved it to main project, let's continue in #295.

@GreyCat GreyCat closed this as completed Dec 4, 2017
@ii8
Copy link
Author

ii8 commented Dec 4, 2017

oh, sorry, did not look at the readme.

@generalmimon generalmimon transferred this issue from kaitai-io/kaitai_struct_compiler Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants