apache / daffodil-vscode

Apache Daffodil™ Extension for Visual Studio Code
https://daffodil.apache.org/
Apache License 2.0
11 stars 19 forks source link

No warning given when data left over after parse. #974

Open lrbarber opened 7 months ago

lrbarber commented 7 months ago

When running daffodil from the command line, if a schema parse completes, but does not parse the entire data file, a warning message about there being left over data is issued. When this occurs inside Visual Studio, there is no such warning message. There may be other similar messages that are not being presented by the debugger.

lrbarber commented 6 months ago

Example of error message:

[error] Left over data. Consumed 1280 bit(s) with at least 64 bit(s) remaining.
Left over data (Hex) starting at byte 161 is: (0x3ff278eabbeb1a00...)
Left over data (UTF-8) starting at byte 161 is: (?�x��␚␀...)

Other types of messages are also not being displayed:

[warn] Schema Definition Warning: In expression Message_Identifier, result type (unsignedInt) should be manually cast to the expected type (NonEmptyString) with the appropriate constructor.Performing deprecated automatic conversion. (id: deprecatedExpressionResultCoercion)
Schema context: choice[1] Location line 41 column 18 in file:/vagrant/test.dfdl.xsd