kaitai_ide_vscode icon indicating copy to clipboard operation
kaitai_ide_vscode copied to clipboard

Runtime errors are not properly propagated

Open Wyverex42 opened this issue 4 years ago • 1 comments

While working on reverse-engineering a file format, I noticed that the extension sometimes just stops working. After undoing change after change I found out that the issues was a missing case in a type switch, I simply had not implemented the case yet. But the extension never told me that there was an issue with an invalid type. It just stopped working and VSCode reported it hanging after a while.

Is there a way to get proper runtime errors as they would be generated by the Kaitai runtime when parsing a file? At least I assume that you'd get an error for a missing case when parsing a file in your target language? (I haven't gotten that far yet with my file format)

Wyverex42 avatar Dec 29 '20 09:12 Wyverex42

I've just recently started poking around the extension and understanding how things work, that's just to explain why I'm responding so late after this was submitted.

Although I can probably create some test files to reproduce the issue, do you have an affected .ksy and data file that you could share to help me get going on this issue quicker?

BryceBarbara avatar Nov 08 '21 00:11 BryceBarbara