-
Notifications
You must be signed in to change notification settings - Fork 127
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
The translation from XMIR to EO throws misleading error messages #2801
Comments
@maxonfjvipon Could you take a look, please? |
It's kinda urgent |
@volodya-lombrozo could you please provide an xmir you try to print? |
<o base="opcode" line="999" name="LDC-1">
<o base="int" data="bytes">00 00 00 00 00 00 00 12</o>
<o base="string" data="bytes">62 79 65</o>
</o> Here the entire java code, final String text = new Xembler(this.toXmir(), new Transformers.Node()).xmlQuietly();
System.out.println(text);
return new Xmir.Default(new XMLDocument(text)).toEO(); |
Same for |
@volodya-lombrozo your examples are not valid. There's no |
@maxonfjvipon, could you also ensure their validity, please? At least, they used to be valid with the old 'XMIR' implementation, and I don't see any reason why they wouldn't be valid. Moreover, it's strange that you check validity during printing |
@volodya-lombrozo old |
@volodya-lombrozo I could add validation to |
@volodya-lombrozo And I think we definitely need to add some human readable message if something is wrong |
@maxonfjvipon What if I need to print only part of the |
I believe it's better to remove the validation here. Or give a chance to use some other class without validation. |
@yegor256 We need adults here |
@volodya-lombrozo I'm on the XSD side here: XMIR is a data format that has certain limitations, for example it starts with |
Ok. Anyway, I believe
|
Needs #2804 |
@volodya-lombrozo seems to be a duplicate of #3370? |
@volodya-lombrozo usually, it's better to give titles to tickets such that they (the titles) explain the entire problem. A reader should understand what's wrong and what needs to be fixed. Here, I would use a title like "error messages are misleading" or "better error messages are needed" (you can make up a better one, but it has to explain what's wrong) |
@yegor256 is it better now? |
I'm trying to print
eo
by using the following commandnew Xmir.Default(new XMLDocument(xml)).toEO(),
and it gives me the following error:The full stacktrace:
I don't know what to do with it and how to fix my xmir. Could you please add more human-readable message?
The text was updated successfully, but these errors were encountered: