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

Import issue with KSV #50

Open
nosajthenitram opened this issue Aug 12, 2022 · 3 comments
Open

Import issue with KSV #50

nosajthenitram opened this issue Aug 12, 2022 · 3 comments

Comments

@nosajthenitram
Copy link

nosajthenitram commented Aug 12, 2022

I'm attempting to import my 6th ksy file into my main ksy, but when I run ksv, the interface hangs. When I interrupt it with ctrl-c, it shows the following stack:

^CTraceback (most recent call last):
        11: from /usr/local/bin/ksv:23:in `<main>'
        10: from /usr/local/bin/ksv:23:in `load'
         9: from /var/lib/gems/2.7.0/gems/kaitai-struct-visualizer-0.7/bin/ksv:53:in `<top (required)>'
         8: from /var/lib/gems/2.7.0/gems/kaitai-struct-visualizer-0.7/lib/kaitai/struct/visualizer/visualizer.rb:13:in `run'
         7: from /var/lib/gems/2.7.0/gems/kaitai-struct-visualizer-0.7/lib/kaitai/struct/visualizer/parser.rb:25:in `load'
         6: from /var/lib/gems/2.7.0/gems/kaitai-struct-visualizer-0.7/lib/kaitai/struct/visualizer/ksy_compiler.rb:19:in `compile_formats'
         5: from /usr/lib/ruby/2.7.0/tmpdir.rb:89:in `mktmpdir'
         4: from /var/lib/gems/2.7.0/gems/kaitai-struct-visualizer-0.7/lib/kaitai/struct/visualizer/ksy_compiler.rb:39:in `block in compile_formats'
         3: from /usr/lib/ruby/2.7.0/open3.rb:101:in `popen3'
         2: from /usr/lib/ruby/2.7.0/open3.rb:219:in `popen_run'
         1: from /var/lib/gems/2.7.0/gems/kaitai-struct-visualizer-0.7/lib/kaitai/struct/visualizer/ksy_compiler.rb:40:in `block (2 levels) in compile_formats'
/var/lib/gems/2.7.0/gems/kaitai-struct-visualizer-0.7/lib/kaitai/struct/visualizer/ksy_compiler.rb:40:in `value': Interrupt

Is there a limit to the number of imports supported?

@generalmimon
Copy link
Member

generalmimon commented Aug 12, 2022

@nosajthenitram Can you please try compiling your .ksy file directly with kaitai-struct-compiler? Something like:

kaitai-struct-compiler --debug -t ruby --verbose file --outdir outdir/ root.ksy

@nosajthenitram
Copy link
Author

@generalmimon compiled does not hang, just KSV. Separate repo and issue to be created?

@generalmimon
Copy link
Member

Separate repo and issue to be created?

I can just transfer this one to https://github.com/kaitai-io/kaitai_struct_visualizer, hang on a second...

@generalmimon generalmimon transferred this issue from kaitai-io/kaitai_struct Aug 12, 2022
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