-
Notifications
You must be signed in to change notification settings - Fork 200
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
Kaitai-struct-compiler producing different files #903
Comments
If you use the stable Web IDE at https://ide.kaitai.io and the stable version of the local The JS code tab shows the code generated with the default configuration, i.e. with debug mode (#332) disabled. This is equivalent to running just The JS code (debug) tab shows the JS code generated in debug mode, i.e. as if you passed So make sure you use the right compiler/Web IDE version (there are two of them, see https://doc.kaitai.io/user_guide.html#web-ide) and the compiler options are the same. Also make sure that the |
@generalmimon .ksy files are same only. Web IDE is able to parse the file but when I am generating the parser with the same .ksy file in local, it is not able to parse. |
@arun-singhal I think the problem here is that seq:
- id: mz
type: mz_placeholder
instances:
pe:
pos: mz.ofs_pe
type: pe_header So please call the The laziness of instances is intended to save execution time and memory by parsing data that you actually don't need in your application. But yes, it poses a problem when you want to dump all fields because you need to specifically invoke the instances that you want to parse (this can be automated for a generic KS parser module using reflection, though). |
Thanks @generalmimon |
I was trying to parse a PE (executable) file via kaitai struct. When I tried to generate the code from .ksy for Javascript, I saw a difference in code between my local generated code and the code generated by webIDE.
Why there is a difference given that I am using the latest version only.
kaitai-struct-compiler version : 0.9
The text was updated successfully, but these errors were encountered: